No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/logscount?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": {
"logsCount": [
{
"timestamp": "2023-11-07T05:31:56Z",
"logsCount": 100,
"severity": "SEVERITY_UNSPECIFIED",
"priority": "PRIORITY_UNSPECIFIED"
}
]
},
"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/logscount?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": {
"logsCount": [
{
"timestamp": "2023-11-07T05:31:56Z",
"logsCount": 100,
"severity": "SEVERITY_UNSPECIFIED",
"priority": "PRIORITY_UNSPECIFIED"
}
]
},
"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/logscount?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": {
"logsCount": [
{
"timestamp": "2023-11-07T05:31:56Z",
"logsCount": 100,
"severity": "SEVERITY_UNSPECIFIED",
"priority": "PRIORITY_UNSPECIFIED"
}
]
},
"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/logscount?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": {
"logsCount": [
{
"timestamp": "2023-11-07T05:31:56Z",
"logsCount": 100,
"severity": "SEVERITY_UNSPECIFIED",
"priority": "PRIORITY_UNSPECIFIED"
}
]
},
"error": {
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}
}