No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/daily/evaluation_tokens';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"range":"RANGE_UNSPECIFIED","dateRange":{"fromDate":"2021-01-01T00:00:00.000Z","toDate":"2021-01-01T00:00:00.000Z"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"tokens": [
{
"statsDate": "2023-11-07T05:31:56Z",
"totalTokens": {
"value": 123
},
"evaluations": [
{
"evaluatorName": "<string>",
"evaluationTokens": {
"value": 123
}
}
]
}
]
}
API key authentication
A successful response.
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/daily/evaluation_tokens';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"range":"RANGE_UNSPECIFIED","dateRange":{"fromDate":"2021-01-01T00:00:00.000Z","toDate":"2021-01-01T00:00:00.000Z"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"tokens": [
{
"statsDate": "2023-11-07T05:31:56Z",
"totalTokens": {
"value": 123
},
"evaluations": [
{
"evaluatorName": "<string>",
"evaluationTokens": {
"value": 123
}
}
]
}
]
}
No description available
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/daily/evaluation_tokens';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"range":"RANGE_UNSPECIFIED","dateRange":{"fromDate":"2021-01-01T00:00:00.000Z","toDate":"2021-01-01T00:00:00.000Z"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"tokens": [
{
"statsDate": "2023-11-07T05:31:56Z",
"totalTokens": {
"value": 123
},
"evaluations": [
{
"evaluatorName": "<string>",
"evaluationTokens": {
"value": 123
}
}
]
}
]
}
API key authentication
A successful response.
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/daily/evaluation_tokens';
let options = {
method: 'POST',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"range":"RANGE_UNSPECIFIED","dateRange":{"fromDate":"2021-01-01T00:00:00.000Z","toDate":"2021-01-01T00:00:00.000Z"}}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
{
"tokens": [
{
"statsDate": "2023-11-07T05:31:56Z",
"totalTokens": {
"value": 123
},
"evaluations": [
{
"evaluatorName": "<string>",
"evaluationTokens": {
"value": 123
}
}
]
}
]
}