From 075f4af3d72cd65cb97754ac20beb0fb873fd7bf Mon Sep 17 00:00:00 2001 From: OndrejSedlacek Date: Tue, 19 Dec 2023 15:09:16 +0100 Subject: [PATCH] Docs: Telemetry API endpoint. --- docs/api.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/api.md b/docs/api.md index 8b1b1a0c..ad17315c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -15,6 +15,7 @@ There are several API endpoints: - [`POST /entity///ttl`](#extend-ttls): extend TTLs of the specified entity - [`GET /entities`](#entities): list entity configuration - [`GET /control/`](#control): send a pre-defined action into execution queue. +- [`GET /telemetry/sources_validity`](#telemetry): get information about the validity of the data sources --- @@ -417,4 +418,21 @@ You can learn more about the actions in the [Actions](configuration/control.md#a "detail": "OK" } ``` +## Telemetry +Returns information about the validity of the data sources, i.e. when the last datapoint was received from each source. + +### Request + +`GET /telemetry/sources_validity` + +### Response + +```json +{ + "module1@collector1": "2023-10-03T11:59:58.063000", + "module2@collector1": "2023-12-06T09:09:37.165000", + "module3@collector2": "2023-12-08T15:52:55.282000", + ... +} +```