Authorizations
API key authentication
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/slo/slos:batchExecute';
let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"matchingResponses": [
{
"createSloResponse": {
"slo": {
"createTime": "2023-11-07T05:31:56Z",
"creator": "test@domain.com",
"description": "A brief description of my SLO",
"grouping": {
"labels": [
"<any>"
]
},
"id": "b11919d5-ef85-4bb1-8655-02640dbe94d9",
"labels": [
{
"key": "<any>",
"value": "<any>"
}
],
"name": "Example Slo Name",
"requestBasedMetricSli": {
"goodEvents": {
"query": "<any>"
},
"totalEvents": {
"query": "<any>"
}
},
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"sloTimeFrame": "SLO_TIME_FRAME_UNSPECIFIED",
"targetThresholdPercentage": 99.999,
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
}
}
}
],
"status": {
"details": [
{
"key": "<string>",
"value": "<string>"
}
],
"message": "<string>",
"statusCode": "OK"
}
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v1/slo/slos:batchExecute';
let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"matchingResponses": [
{
"createSloResponse": {
"slo": {
"createTime": "2023-11-07T05:31:56Z",
"creator": "test@domain.com",
"description": "A brief description of my SLO",
"grouping": {
"labels": [
"<any>"
]
},
"id": "b11919d5-ef85-4bb1-8655-02640dbe94d9",
"labels": [
{
"key": "<any>",
"value": "<any>"
}
],
"name": "Example Slo Name",
"requestBasedMetricSli": {
"goodEvents": {
"query": "<any>"
},
"totalEvents": {
"query": "<any>"
}
},
"revision": {
"revision": 1,
"updateTime": "2023-11-07T05:31:56Z"
},
"sloTimeFrame": "SLO_TIME_FRAME_UNSPECIFIED",
"targetThresholdPercentage": 99.999,
"type": "request",
"updateTime": "2023-11-07T05:31:56Z"
}
}
}
],
"status": {
"details": [
{
"key": "<string>",
"value": "<string>"
}
],
"message": "<string>",
"statusCode": "OK"
}
}
API key authentication
Was this page helpful?