curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/metering/meters \
--header 'Authorization: Bearer <token>' \
--header 'cdf-version: <cdf-version>'{
"items": [
{
"meterId": "atlas.monthly_ai_tokens",
"datapoints": []
},
{
"meterId": "files.storage_bytes",
"datapoints": []
},
{
"meterId": "functions.concurrent_executions",
"datapoints": []
}
],
"nextCursor": "string"
}Required capabilities:
projectsAcl:LIST
Lists all available meter IDs for a specific project.
start and numberOfDatapoints: Returns meter metadata.start and numberOfDatapoints: Returns historical time-series data with averaged values.curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/metering/meters \
--header 'Authorization: Bearer <token>' \
--header 'cdf-version: <cdf-version>'{
"items": [
{
"meterId": "atlas.monthly_ai_tokens",
"datapoints": []
},
{
"meterId": "files.storage_bytes",
"datapoints": []
},
{
"meterId": "functions.concurrent_executions",
"datapoints": []
}
],
"nextCursor": "string"
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
20230101-alpha Cursor to use for paging through results.
Return up to this many results.
x <= 1000Start timestamp (inclusive) for historical data, in milliseconds since epoch.
When provided along with numberOfDatapoints, returns time-series data.
If not provided, only the meter metadata is returned.
End timestamp (inclusive) for historical data, in milliseconds since epoch. Defaults to the current time if not provided.
Number of data points to return between start and end.
The time range is divided into equal periods to match the number of datapoints requested.
If not provided, only the meter metadata is returned.
0 <= x <= 600A list of meters. Returns meter metadata unless 'start' and 'numberOfDataPoints' are provided. When they are provided, includes historical time-series data with averaged values.
Was this page helpful?