Get metric latest record

Retrieve latest records for a list of metrics

Description

This endpoint facilitates the retrieval of the most recent data points for a specified set of metric keys. It effectively provides access to the current values of the metrics.

Endpoint

GET https://sentry.aleno.ai/metrics/records/latest

Query parameters

Payload

No payload.

CURL example

curl -X GET \
  'https://sentry.aleno.ai/metrics/records/latest?keys=eth_token_total_tvl_0xb8b295df2cd735b15be5eb419517aa626fc43cd5' \
  -H 'Authorization: YOUR_API_KEY'

Result

Returns a list of Record Objects representing the latest record for the given keys. A Record is represented by:

{
    "data": [
        {
            "key": "eth_token_total_tvl_0xb8b295df2cd735b15be5eb419517aa626fc43cd5",
            "point": {
                "value": 56257.67581756109,
                "timestamp": 1713191291
            }
        },
        {
            "key": "eth_token_total_supply_0xb8b295df2cd735b15be5eb419517aa626fc43cd5",
            "point": {
                "value": 1569071.7668599708,
                "timestamp": 1713191291
            }
        }
    ]
}

Last updated