Retrieve metrics for a specific pipeline based on the provided parameters.
This endpoint returns latest metrics data for a given pipeline ID
time_interval to define the granularity (e.g., 1 hour, 2 days).2025-03-02T07:10:15Z). Defaults to 24 hours before the current time if not provided.read:pipeline_metrics permission.PipelineLatestMetricsWithMetadata: latest metrics.https://api.streamkap.com/pipelines/67bca128e1519efb914e6b51/metrics?time_interval=2&time_unit=hour×tamp_from=2025-03-02T07:10:15Z×tamp_to=2025-03-04T07:10:15Z
{
"data": {
"latency": 1,
"recordsLag": 0,
"status": "Active"
},
"metadata": {
"latency": {
"name": "Pipeline Latency",
"unit": "milliseconds"
},
"status": {
"name": "Pipeline Status",
"unit": "milliseconds"
},
"recordsLag": {
"name": "Lag in Events",
"unit": "count"
}
}
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The interval between each metrics data point.
1
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.
minute, hour, day, week, month "hour"
Start time of the metrics data in UTC timezone. If not provided, start time is set to 24 hours before the current time.
"2025-03-02T07:10:15Z"
End time of the metrics data in UTC timezone. If not provided, end time is set to the current time.
"2025-03-04T07:10:15Z"