curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/5/slo/slos/v1/all/execute \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"createSloRequest": {
"slo": {
"requestBasedMetricSli": {
"goodEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
},
"totalEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
}
},
"apmSliMetadata": {
"latencyConfig": {
"quantile": {
"percentile": 0.95
},
"threshold": 500,
"timeWindow": "WINDOW_SLO_WINDOW_UNSPECIFIED"
},
"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"
]
}
},
"productType": "SLO_PRODUCT_TYPE_UNSPECIFIED",
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"sloTimeFrame": "SLO_TIME_FRAME_UNSPECIFIED",
"sloType": "SLO_TYPE_REQUEST",
"targetThresholdPercentage": 99.999,
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
},
"silenceDataValidations": true
}
}
]
}
'{
"matchingResponses": [
{
"createSloResponse": {
"slo": {
"requestBasedMetricSli": {
"goodEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
},
"totalEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
}
},
"apmSliMetadata": {
"latencyConfig": {
"quantile": {
"percentile": 0.95
},
"threshold": 500,
"timeWindow": "WINDOW_SLO_WINDOW_UNSPECIFIED"
},
"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"
]
}
},
"productType": "SLO_PRODUCT_TYPE_UNSPECIFIED",
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"sloTimeFrame": "SLO_TIME_FRAME_UNSPECIFIED",
"sloType": "SLO_TYPE_REQUEST",
"targetThresholdPercentage": 99.999,
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
}
}
}
],
"status": {
"statusCode": "OK",
"details": {},
"message": "<string>"
}
}No description available
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/5/slo/slos/v1/all/execute \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"createSloRequest": {
"slo": {
"requestBasedMetricSli": {
"goodEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
},
"totalEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
}
},
"apmSliMetadata": {
"latencyConfig": {
"quantile": {
"percentile": 0.95
},
"threshold": 500,
"timeWindow": "WINDOW_SLO_WINDOW_UNSPECIFIED"
},
"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"
]
}
},
"productType": "SLO_PRODUCT_TYPE_UNSPECIFIED",
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"sloTimeFrame": "SLO_TIME_FRAME_UNSPECIFIED",
"sloType": "SLO_TYPE_REQUEST",
"targetThresholdPercentage": 99.999,
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
},
"silenceDataValidations": true
}
}
]
}
'{
"matchingResponses": [
{
"createSloResponse": {
"slo": {
"requestBasedMetricSli": {
"goodEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
},
"totalEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
}
},
"apmSliMetadata": {
"latencyConfig": {
"quantile": {
"percentile": 0.95
},
"threshold": 500,
"timeWindow": "WINDOW_SLO_WINDOW_UNSPECIFIED"
},
"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"
]
}
},
"productType": "SLO_PRODUCT_TYPE_UNSPECIFIED",
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"sloTimeFrame": "SLO_TIME_FRAME_UNSPECIFIED",
"sloType": "SLO_TYPE_REQUEST",
"targetThresholdPercentage": 99.999,
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
}
}
}
],
"status": {
"statusCode": "OK",
"details": {},
"message": "<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
Request to batch execute multiple SLO operations.
Request for executing an SLO operation.
Show child attributes
Response containing the results of batch executed SLO operations.
Was this page helpful?