curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/slo/validated/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"windowBasedMetricSli": {
"query": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
},
"threshold": 0.95
},
"apmSliMetadata": {
"latencyConfig": {
"quantile": {
"percentile": 0.95
},
"threshold": 500
},
"filters": [
{
"key": "environment",
"value": "production",
"values": [
"500"
]
}
],
"groupingKeys": [
"environment",
"region"
],
"services": [
"my-service",
"payment-service"
]
},
"createTime": "2023-11-07T05:31:56Z",
"creator": "test@domain.com",
"description": "A brief description of my SLO",
"grouping": {
"labels": [
"<string>"
]
},
"id": "b11919d5-ef85-4bb1-8655-02640dbe94d9",
"labels": {},
"name": "Example Slo Name",
"ownershipTags": {
"environment": {
"labelKeys": [
"deployment_environment",
"k8s_namespace"
],
"staticValues": [
"checkout-api"
]
},
"service": {
"labelKeys": [
"deployment_environment",
"k8s_namespace"
],
"staticValues": [
"checkout-api"
]
},
"team": {
"labelKeys": [
"deployment_environment",
"k8s_namespace"
],
"staticValues": [
"checkout-api"
]
}
},
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"targetThresholdPercentage": 99.999,
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
}
'{
"alertsValidationResult": [
{
"alertVersionId": "<string>",
"errorMessage": "<string>",
"id": "<string>",
"name": "<string>"
}
]
}No description available
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/5/slo/validated/v1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"windowBasedMetricSli": {
"query": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
},
"threshold": 0.95
},
"apmSliMetadata": {
"latencyConfig": {
"quantile": {
"percentile": 0.95
},
"threshold": 500
},
"filters": [
{
"key": "environment",
"value": "production",
"values": [
"500"
]
}
],
"groupingKeys": [
"environment",
"region"
],
"services": [
"my-service",
"payment-service"
]
},
"createTime": "2023-11-07T05:31:56Z",
"creator": "test@domain.com",
"description": "A brief description of my SLO",
"grouping": {
"labels": [
"<string>"
]
},
"id": "b11919d5-ef85-4bb1-8655-02640dbe94d9",
"labels": {},
"name": "Example Slo Name",
"ownershipTags": {
"environment": {
"labelKeys": [
"deployment_environment",
"k8s_namespace"
],
"staticValues": [
"checkout-api"
]
},
"service": {
"labelKeys": [
"deployment_environment",
"k8s_namespace"
],
"staticValues": [
"checkout-api"
]
},
"team": {
"labelKeys": [
"deployment_environment",
"k8s_namespace"
],
"staticValues": [
"checkout-api"
]
}
},
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"targetThresholdPercentage": 99.999,
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
}
'{
"alertsValidationResult": [
{
"alertVersionId": "<string>",
"errorMessage": "<string>",
"id": "<string>",
"name": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.coralogix.com/llms.txt
Use this file to discover all available pages before exploring further.
API key authentication
Definition of an SLO
Definition of a window-based SLI based on metrics
Show child attributes
Definition of an APM-based SLI with automatic query generation
Show child attributes
"test@domain.com"
"A brief description of my SLO"
Definition of the SLO grouping fields
Show child attributes
"b11919d5-ef85-4bb1-8655-02640dbe94d9"
Show child attributes
"Example Slo Name"
Service, environment, and team ownership for the SLO group. At most one SloOwnershipTag per dimension; omit a dimension when unset.
Show child attributes
SLO_PRODUCT_TYPE_UNSPECIFIED, SLO_PRODUCT_TYPE_APM The revision of the slo, used to differentiate between different versions of the same SLO
Show child attributes
SLO_TIME_FRAME_UNSPECIFIED, SLO_TIME_FRAME_7_DAYS, SLO_TIME_FRAME_14_DAYS, SLO_TIME_FRAME_21_DAYS, SLO_TIME_FRAME_28_DAYS SLO_TYPE_REQUEST, SLO_TYPE_WINDOW 99.999
"request"
Response with validated alerts before replacing an existing SLO.
Show child attributes
Was this page helpful?