List group billing usage in a given period
List the request, compute, sync, and data transfer usage in a given period for billing purposes.
Path parameters
-
An Atlas Project/Group ID.
Query parameters
-
The ISO 8601 date and time of the start of the query period. Default is 00:00:00 UTC on the first day of the current month.
-
The ISO 8601 date and time of the end of the query period. Default is 23:59:59 UTC on the last day of the current month.
-
Specifies the granularity of the query period, either P31D (31 day) or PT1H (1 hour). Default is P31D.
Values are
P31D
orPT1H
.
GET
/groups/{groupId}/measurements
curl \
--request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/measurements' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"start": "string",
"end": "string",
"granularity": "string",
"group_id": "string",
"measurements": [
{
"name": "request_count",
"units": "<empty string>",
"data_points": [
{
"timestamp": "string",
"value": 42.0
}
]
}
]
}
Response examples (400)
{
"error": "string",
"error_code": "string"
}