post--v1-analytics-usage-metrics
Query Mailgun account usage metrics to analyze email validation, processing, and monitoring statistics with customizable date ranges and dimensions.
Instructions
Query account usage metrics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | A start date (default: 7 days before current time). Must be in RFC 2822 format: https://datatracker.ietf.org/doc/html/rfc2822.html#page-14 | |
| end | No | An end date (default: current time). Must be in RFC 2822 format: https://datatracker.ietf.org/doc/html/rfc2822.html#page-14 | |
| resolution | No | A resolution in the format of 'day' 'hour' 'month'. Default is day. | |
| duration | No | A duration in the format of '1d' '2h' '2m'. If duration is provided then it is calculated from the end date and overwrites the start date. | |
| dimensions | No | Attributes of the metric data such as 'subaccount'. See [dimensions](https://documentation.mailgun.com/docs/mailgun/user-manual/reporting/dimensions) | |
| metrics | No | Name of the metrics to receive the stats for such as 'processed_count'. | |
| filter | No | ||
| include_subaccounts | No | Include stats from all subaccounts. | |
| include_aggregates | No | Include top-level aggregate metrics. |