getMetrics
getMetrics
| Query Parameters |
|---|
entityType string — REQUIREDPossible values: [ Type of entity to get metrics for |
entityId string — REQUIREDID of the entity |
from string — REQUIREDStart date (inclusive) in YYYY-MM-DD format |
to string — REQUIREDEnd date (exclusive) in YYYY-MM-DD format |
metrics string — REQUIREDComma-separated list of metric names to retrieve. Each metric name must be one of the valid values defined in the introduction section. |
| Header Parameters |
|---|
PubNub-Version string — REQUIREDPossible values: [ |
| Responses | ||
|---|---|---|
200Successful metrics query
| ||
400Bad request - invalid parameters
|
* required
PubNub-Version*2025-11-15]* required
entityType*entityId*from*to*metrics*metricsExample:
[{"publish":{"2024-04-03":1234,"2024-04-04":1567,"2024-04-05":2134},"subscribe_msgs":{"2024-04-03":5678,"2024-04-04":6234,"2024-04-05":7890}},{"mtd_uuid":{"2024-04-30":20480259}}]