Get metric history
Retrieve the historical records for a specific metric.
Last updated
Retrieve the historical records for a specific metric.
Last updated
This endpoint enables the retrieval of historical data for a specified metric key, covering a period of up to 7 days. It grants access to recent data points for the targeted metric. When a granularity parameter is specified, the endpoint returns the average values of the data points, aggregated over the specified time intervals.
GET https://sentry.aleno.ai/metrics/records/range
Name | Required | Type | Description |
---|---|---|---|
Valid Granularity Values
4h
- Data points are averaged over four-hour intervals.
1h
- Data points are averaged over one-hour intervals.
15m
- Data points are averaged over fifteen-minute intervals.
5m
- Data points are averaged over five-minute intervals.
1m
- Data points are averaged over one-minute intervals.
No payload.
Returns the key of the required metric and the list of requested points as
Name | Type | Description |
---|---|---|
key
Required
string
Target metric keys for which to retrieve current value. (each metric is defined with a unique key).
fromTimestamp
Optional
number
Unix timestamp indicating the earliest record to fetch from the data source
toTimestamp
Optional
number
Unix timestamp indicating the latest record to fetch from the data source.
granularity
Optional
string
A string that specifies the time intervals over which data points should be averaged. This parameter allows for the aggregation of data points into specified time buckets, facilitating the analysis of trends over different intervals.
key
string
Target metric key
point
Point list
A list of values and timestamps representing the records for the specified key.