No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/spanscount?dateRange.fromDate=SOME_STRING_VALUE&dateRange.toDate=SOME_STRING_VALUE&resolution=SOME_STRING_VALUE&filters.application=SOME_ARRAY_VALUE&filters.subsystem=SOME_ARRAY_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));
{
"result": {
"spansCount": [
{
"timestamp": "2021-01-01T00:00:00.000Z",
"successSpanCount": 100,
"errorSpanCount": 10,
"lowSuccessSpanCount": 50,
"lowErrorSpanCount": 5,
"mediumSuccessSpanCount": 200,
"mediumErrorSpanCount": 20
}
]
},
"error": {
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}
}
API key authentication
Aggregation resolution with second precision.
Resolution must be between 1 second and date_range interval
A successful response.(streaming responses)
The response is of type object
.
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/spanscount?dateRange.fromDate=SOME_STRING_VALUE&dateRange.toDate=SOME_STRING_VALUE&resolution=SOME_STRING_VALUE&filters.application=SOME_ARRAY_VALUE&filters.subsystem=SOME_ARRAY_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));
{
"result": {
"spansCount": [
{
"timestamp": "2021-01-01T00:00:00.000Z",
"successSpanCount": 100,
"errorSpanCount": 10,
"lowSuccessSpanCount": 50,
"lowErrorSpanCount": 5,
"mediumSuccessSpanCount": 200,
"mediumErrorSpanCount": 20
}
]
},
"error": {
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/spanscount?dateRange.fromDate=SOME_STRING_VALUE&dateRange.toDate=SOME_STRING_VALUE&resolution=SOME_STRING_VALUE&filters.application=SOME_ARRAY_VALUE&filters.subsystem=SOME_ARRAY_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));
{
"result": {
"spansCount": [
{
"timestamp": "2021-01-01T00:00:00.000Z",
"successSpanCount": 100,
"errorSpanCount": 10,
"lowSuccessSpanCount": 50,
"lowErrorSpanCount": 5,
"mediumSuccessSpanCount": 200,
"mediumErrorSpanCount": 20
}
]
},
"error": {
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}
}
API key authentication
Aggregation resolution with second precision.
Resolution must be between 1 second and date_range interval
A successful response.(streaming responses)
The response is of type object
.
Was this page helpful?
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/spanscount?dateRange.fromDate=SOME_STRING_VALUE&dateRange.toDate=SOME_STRING_VALUE&resolution=SOME_STRING_VALUE&filters.application=SOME_ARRAY_VALUE&filters.subsystem=SOME_ARRAY_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));
{
"result": {
"spansCount": [
{
"timestamp": "2021-01-01T00:00:00.000Z",
"successSpanCount": 100,
"errorSpanCount": 10,
"lowSuccessSpanCount": 50,
"lowErrorSpanCount": 5,
"mediumSuccessSpanCount": 200,
"mediumErrorSpanCount": 20
}
]
},
"error": {
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}
}