Metrics
[BETA] Get aggregated metered connections for a given time period.
Changed onEnterprise feature
[BETA] This API is in beta state, which means it may change or be removed in the future.
Gets metered connections count for the selected period, either aggregated by day or by month.
get/api/admin/metrics/connection
Request
- Base URLhttps://app.unleash-instance.example.com
- URLhttps://app.unleash-instance.example.com/api/admin/metrics/connection
- Auth
- API key in header Authorization
- or HTTP bearer
Query parameters
grouping'daily' | 'monthly' required
Example:daily
Whether to aggregate the data by month or by day
fromstring date required
Example:2024-01-01
The starting date of the traffic data usage search in IS:yyyy-MM-dd format
tostring date required
Example:2024-01-31
The starting date of the traffic data usage search in IS:yyyy-MM-dd format
Response
meteredConnectionsSchema
Example response
{
"grouping": "monthly",
"dateRange": {
"from": "2023-04-01",
"to": "2023-04-30"
},
"apiData": [
{
"meteredGroup": "default",
"dataPoints": [
{
"period": "2023-04-01",
"connections": 10.5
}
]
}
]
}Changes
- info
api tag
Metricsadded - info
api tag
Unstableremoved
- info