Slos Service

Replace Slo Pre-Validate Alerts

Validates and updates an SLO.

put/slo/validated/v1

Request

  • Base URL: https://api.eu1.coralogix.com/mgmt/openapi/5
  • URL: https://api.eu1.coralogix.com/mgmt/openapi/5/slo/validated/v1
  • Auth: API key in header Authorization

Request body

OR
OR

Example request

{
  "apmSli": {
    "filters": [
      {
        "key": "environment",
        "value": "production",
        "values": [
          "500"
        ]
      }
    ],
    "groupingKeys": [
      "environment",
      "region"
    ],
    "latencyConfig": {
      "quantile": {
        "percentile": 0.95
      },
      "threshold": 500
    },
    "services": [
      "my-service",
      "payment-service"
    ]
  },
  "apmSliMetadata": {
    "filters": [
      {
        "key": "environment",
        "value": "production",
        "values": [
          "500"
        ]
      }
    ],
    "groupingKeys": [
      "environment",
      "region"
    ],
    "latencyConfig": {
      "quantile": {
        "percentile": 0.95
      },
      "threshold": 500
    },
    "services": [
      "my-service",
      "payment-service"
    ]
  },
  "creator": "test@domain.com",
  "description": "A brief description of my SLO",
  "id": "b11919d5-ef85-4bb1-8655-02640dbe94d9",
  "name": "Example Slo Name",
  "ownershipTags": {
    "environment": {
      "labelKeys": [
        "deployment_environment",
        "k8s_namespace"
      ],
      "resolvedValues": [
        "checkout-api",
        "production",
        "staging",
        "payments-ns"
      ],
      "staticValues": [
        "checkout-api"
      ]
    },
    "service": {
      "labelKeys": [
        "deployment_environment",
        "k8s_namespace"
      ],
      "resolvedValues": [
        "checkout-api",
        "production",
        "staging",
        "payments-ns"
      ],
      "staticValues": [
        "checkout-api"
      ]
    },
    "team": {
      "labelKeys": [
        "deployment_environment",
        "k8s_namespace"
      ],
      "resolvedValues": [
        "checkout-api",
        "production",
        "staging",
        "payments-ns"
      ],
      "staticValues": [
        "checkout-api"
      ]
    }
  },
  "requestBasedMetricSli": {
    "goodEvents": {
      "query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
    },
    "totalEvents": {
      "query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
    }
  },
  "revision": {
    "revision": 1
  },
  "targetThresholdPercentage": 99.999,
  "type": "request",
  "windowBasedMetricSli": {
    "query": {
      "query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
    },
    "threshold": 0.95
  }
}

Response

Changes

No recorded changes to this operation across all 1 revision of this API.