Skip to main content
GET
Get Metrics For Source

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

source_id
string
required

Query Parameters

time_type
enum<string>
default:latest

Type of the metrics.

Available options:
timeseries,
timesummary,
latest
Example:

"latest"

time_interval
integer
default:1

The interval between each metrics data point.

Example:

1

time_unit
enum<string>
default:hour

The unit of the time interval. Combined with time_interval to determine the interval between each metrics data point. For example, if time_interval=1 and time_unit=hour, the interval between each metrics data point is 1 hour.

Available options:
minute,
hour,
day,
week,
month
Example:

"hour"

timestamp_from
string<date-time> | null

Start time of the metrics data in UTC timezone. If not provided, start time is set to 24 hours before the current time.

Example:

"2025-03-02T07:10:15Z"

timestamp_to
string<date-time> | null

End time of the metrics data in UTC timezone. If not provided, end time is set to the current time.

Example:

"2025-03-04T07:10:15Z"

Response

Successful Response

data
SourceTimeseriesMetrics · object
required

Source timeseries metrics.

Example:
metadata
Metadata · object
required