ModifyPrometheusRoute#

Description#

Request to modify a route for Prometheus service.

Request Parameters#

  • parameters — The route parameters.

    • Type: Dict

    • Required: Yes

  • routeId — The route ID.

    • Type: String

    • Required: Yes

  • serviceId — The PaaS service ID.

    • Type: String

    • Required: Yes

Response Elements#

Examples#

Managing PaaS services in NGN Cloud via API requires a customized version of the boto3 library:

import boto3

session = boto3.Session(
    aws_access_key_id="<AWS_ACCESS_KEY_ID>",
    aws_secret_access_key="<AWS_SECRET_ACCESS_KEY>",
    region_name="ngn",
)

paas_client = session.client(
    'paas',
    endpoint_url='https://paas.cloud.ngn.com.tr/',
)

route = paas_client.modify_prometheus_route(
    serviceId='fm-cluster-1ACD3963',
    routeId="prometheus-route-39F03EAF",
    parameters={
        "matchers": [
            "severity = error"
        ],
        "receiver": "telegram1",
        "continue": False,
    }
)

Or c2-paas utility from CROC Cloud API Client software suite:

c2-paas ModifyPrometheusRoute serviceId fm-cluster-1ACD3963 routeId prometheus-route-39F03EAF parameters.matchers.0 "severity = warning" parameters.receiver telegram1 parameters.continue false