Authorizations
API key authentication
Response
This data structure is used to return spans count.
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/dataplans/data-usage/v2/spans:count';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"spansCount": [
{
"errorSpanCount": 10,
"lowErrorSpanCount": 5,
"lowSuccessSpanCount": 50,
"mediumErrorSpanCount": 20,
"mediumSuccessSpanCount": 200,
"successSpanCount": 100,
"timestamp": "2021-01-01T00:00:00.000Z"
}
]
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/dataplans/data-usage/v2/spans:count';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"spansCount": [
{
"errorSpanCount": 10,
"lowErrorSpanCount": 5,
"lowSuccessSpanCount": 50,
"mediumErrorSpanCount": 20,
"mediumSuccessSpanCount": 200,
"successSpanCount": 100,
"timestamp": "2021-01-01T00:00:00.000Z"
}
]
}
API key authentication
This data structure is used to return spans count.
Show child attributes
Was this page helpful?