OK
const response = await fetch('https://cloud-api.calyptia.com/v1/aggregator_metrics/{aggregatorID}', {
method: 'GET',
headers: {
"Authorization": "Bearer <token>"
},
});
const data = await response.json();
{
"measurements": {
"fluentbit_filter": {
"metrics": {
"drop_records": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.003028413Z",
"value": 119
}
],
"emit_records": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.003028413Z",
"value": 119
}
]
},
"totals": {
"drop_records": [
{
"time": "2022-02-07T12:55:04.78743322Z",
"value": 119
}
],
"emit_records": [
{
"time": "2022-02-07T12:55:04.787434277Z",
"value": 119
}
]
}
},
"fluentbit_input": {
"metrics": {
"bytes": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.029124832Z",
"value": 4760
}
],
"records": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.029124832Z",
"value": 119
}
]
},
"totals": {
"bytes": [
{
"time": "2022-02-07T12:55:04.787450155Z",
"value": 4760
}
],
"records": [
{
"time": "2022-02-07T12:55:04.787450155Z",
"value": 119
}
]
}
},
"fluentbit_output": {
"metrics": {
"bytes": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.059227599Z",
"value": 4560
}
],
"records": [
{
"time": "2022-02-07T11:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:00:00Z",
"value": 0
},
{
"time": "2022-02-07T12:55:20.059227599Z",
"value": 114
}
]
},
"totals": {
"bytes": [
{
"time": "2022-02-07T12:55:00.785234434Z",
"value": 4560
}
],
"records": [
{
"time": "2022-02-07T12:55:00.785234434Z",
"value": 114
}
]
}
}
}
}