/logstash/nodes/kpis
Returns overall average KPIs of all nodes in logstash (events in and events out).
Request
GET http://unravel-host
:3000/api/v1/logstash/nodes/kpis?start_time={date}
&end_time={date}
&metric={value}
Path parameters
None
Query parameters
Name | Type | Description |
---|---|---|
| string | Start date for report. Format: YYYY-MM-DD |
| string | End date for report. Format: YYYY-MM-DD |
metrics | string |
|
Response body
Name | Type | Description | ||
---|---|---|---|---|
metric | array | list metric | ||
| timestamp | Timestamp | ||
| int | Value of the metric in a given timestamp. | ||
| int |
Examples
Requestbody:
Metric: kpi_event_in:
curl -X GET "http://node.mycompany.com:3000/api/v1/logstash/nodes/kpis?start_time=2020-01-01&end_time=2020-04-01&metrics=kpi_events_in" -H; "accept: application/json" -H "Authorization: JWT token
Response body:
{ "events_in": [ { "ts": 1585720800000, "val": 0, "deriv_val": 0 } ] }
Request:
Metric: kpi_event_out:
curl -X GET "http://node.mycompany.com:3000/api/v1/logstash/nodes/kpis?start_time=2020-01-01&end_time=2020-04-01&metrics=kpi_events_out" -H; "accept: application/json" -H "Authorization: JWT token
Response body:
{ "events_out": [ { "ts": 1585720800000, "val": 0, "deriv_val": 0 } ] }