Skip to main content
GET
/
topics
/
{topic_id}
/
raw-metrics
Get latest raw metrics for a topic
curl --request GET \
  --url https://api.streamkap.com/topics/{topic_id}/raw-metrics \
  --header 'Authorization: Bearer <token>'
{
  "topic_id": "<string>",
  "since": "2023-11-07T05:31:56Z",
  "source": {
    "connector": "<string>",
    "ch_topic": "<string>",
    "metrics": [
      {
        "metric_name": "<string>",
        "partition": "<string>",
        "task": "<string>",
        "context": "<string>",
        "value": 123,
        "updated_at": "2023-11-07T05:31:56Z"
      }
    ]
  },
  "destinations": [
    {
      "destination_id": "<string>",
      "connector": "<string>",
      "ch_topic": "<string>",
      "metrics": [
        {
          "metric_name": "<string>",
          "partition": "<string>",
          "task": "<string>",
          "context": "<string>",
          "value": 123,
          "updated_at": "2023-11-07T05:31:56Z"
        }
      ],
      "pipeline_id": "<string>",
      "transform_id": "<string>"
    }
  ],
  "qa": [
    {
      "metric_name": "<string>",
      "connector_ctx": "<string>",
      "connector_id": "<string>",
      "value": 123,
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

topic_id
string
required

Query Parameters

since
string
default:15m

Lookback window. Accepts '' where unit ∈ {s,m,h,d}. Defaults to 15m, capped at 3d (raw-table TTL).

metric_names
string | null

Comma-separated metric_name filter. Omit to return every metric_name seen in the window.

include_destinations
boolean
default:true
include_qa
boolean
default:true

Response

Successful Response

topic_id
string
required
since
string<date-time>
required
source
TopicRawConnectorMetrics · object
required
destinations
TopicRawDestinationMetrics · object[]
qa
TopicRawQaRow · object[]