Resources usage
This page shows you how to get started using the resources usage mediarithmics API.
Each datamart resource (segments, exports, imports...) that lead to write or read access on mediarithmics platform are tracked and their consumption are measured.
Thanks to this API you can get a report of your datamart consumption that match:
- the cost of each query executed on the platform
- the amount of data ingested
post
https://api.mediarithmics.com
/v1/platform_monitoring/resources_usage
Here is a sample body payload with all the important properties:
{
// Retrieve the data in the specified date range
// Mandatory
"date_ranges": [
{
"start_date": "2021-10-10T00:00:00",
"end_date": "2021-10-25T23:59:59"
}
],
// List of dimensions to retrieve
"dimensions": [
{
"name": "date_time"
},
{
"name": "community_id"
},
{
"name": "source"
},
{
"name": "scan_cost"
}
],
// Filters on dimensions
"dimension_filter_clauses": {
"operator": "AND",
"filters": [
{
"dimension_name": "community_id",
"operator": "EXACT",
"expressions": [
100
]
}
]
},
// List of metrics to retrieve
"metrics": [
{
"expression": "scan_cost"
}
]
}
These aggregated stats are kept for two years.
This endpoint is a mediarithmics Data cube. You can find documentation on how data cubes work and which data cubes are available in the specific documentation section.
Last modified 10mo ago