Authorizations
API key authentication
Query Parameters
This data structure represents a date range.
This data structure represents a filter for scopes.
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?date_range=SOME_OBJECT_VALUE&resolution=SOME_STRING_VALUE&filters=SOME_OBJECT_VALUE';
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?date_range=SOME_OBJECT_VALUE&resolution=SOME_STRING_VALUE&filters=SOME_OBJECT_VALUE';
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 represents a date range.
Show child attributes
This data structure represents a filter for scopes.
Show child attributes
This data structure is used to return spans count.
Show child attributes
Was this page helpful?