curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/latest/v1/slo/slos/validate \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Example Slo Name",
"targetThresholdPercentage": 99.999,
"createTime": "2023-11-07T05:31:56Z",
"creator": "[email protected]",
"description": "A brief description of my SLO",
"grouping": {
"labels": [
"<string>"
]
},
"id": "b11919d5-ef85-4bb1-8655-02640dbe94d9",
"labels": {},
"requestBasedMetricSli": {
"goodEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
},
"totalEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
}
},
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"sloTimeFrame": "SLO_TIME_FRAME_UNSPECIFIED",
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
}
'{
"alertsValidationResult": [
{
"alertVersionId": "<string>",
"errorMessage": "<string>",
"id": "<string>",
"name": "<string>"
}
]
}No description available
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/latest/v1/slo/slos/validate \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Example Slo Name",
"targetThresholdPercentage": 99.999,
"createTime": "2023-11-07T05:31:56Z",
"creator": "[email protected]",
"description": "A brief description of my SLO",
"grouping": {
"labels": [
"<string>"
]
},
"id": "b11919d5-ef85-4bb1-8655-02640dbe94d9",
"labels": {},
"requestBasedMetricSli": {
"goodEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
},
"totalEvents": {
"query": "sum(rate(http_requests_total{status=\"200\"}[5m]))"
}
},
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"sloTimeFrame": "SLO_TIME_FRAME_UNSPECIFIED",
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
}
'{
"alertsValidationResult": [
{
"alertVersionId": "<string>",
"errorMessage": "<string>",
"id": "<string>",
"name": "<string>"
}
]
}API key authentication
Definition of an SLO
"Example Slo Name"
99.999
"A brief description of my SLO"
"b11919d5-ef85-4bb1-8655-02640dbe94d9"
Definition of a request-based SLI based on metrics
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 "request"
Was this page helpful?