Retrieve messages sent by Event Streaming Processor
Use this API to retrieve the number of messages sent by the Event Streaming Processor for each destination topic during specific time intervals. The response includes message counts grouped by topic name and timestamp.
HTTP method and endpoint
POST /statistics-reporting/{tenantId}/API/eventStreamingProcessor/sentMessages
Replace {tenantId} with the ID of the target tenant.
Request headers
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Authorization | Bearer {access_token} | Yes |
Request body
| Parameter | Type | Required | Description | Accepted values / Default |
|---|---|---|---|---|
from (1) | Long | Yes | Start time in epoch milliseconds | — |
to (1) | Long | Yes | End time in epoch milliseconds | — |
env | String | Yes | Target environment | Example: prod, qa, dev Default: none |
resolution | Integer | Yes | Time resolution in milliseconds for aggregating data | — |
Note:
| ||||
Example request
curl -X POST https://{baseUrl}/statistics-reporting/{tenantId}/API/eventStreamingProcessor/sentMessages \
-H "Authorization: Bearer YOUR_BEARER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"from": 1698134400000,
"to": 1698138000000,
"env": "prod",
"resolution": 60000
}'
Response fields
| Field | Subfield | Type | Description |
|---|---|---|---|
timestamp | Long | Numeric value representing the start time of the interval in milliseconds | |
values | Array | Array containing one or more name-value pairs | |
| — | name | String | The identifier for the destination/topic |
| — | value | Integer | The count of messages sent to that destination during that time interval |
Example response
[
{
"timestamp": 1698134400000,
"values": [
{
"name": "7d8e8db_topic_na07-prod-datapipeline",
"value": 11257
}
]
},
{
"timestamp": 1698134460000,
"values": [
{
"name": "7d8e8db_topic_na07-prod-datapipeline",
"value": 11011
}
]
}
]