You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param usage_type: Usage type to retrieve. Usage types are in the format ``<usage_type>_usage``.
1282
+
Example: ``infra_host_usage``
1283
+
To obtain the complete list of active usage types that can be used to replace
1284
+
``<usage_type>`` in the field names, make a request to the `Get usage attribution types API <https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types>`_.
1285
+
:type usage_type: str
1291
1286
:param end_hr: Datetime in ISO-8601 format, UTC, precise to hour: ``[YYYY-MM-DDThh]`` for usage ending
To obtain the complete list of usage attribution types that can be used to replace
1449
+
``<usage_type>`` in the field names, make a request to the `Get usage attribution types API <https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types>`_.
1450
+
:type fields: str
1454
1451
:param end_month: Datetime in ISO-8601 format, UTC, precise to month: ``[YYYY-MM]`` for usage ending this month.
1455
1452
:type end_month: datetime, optional
1456
1453
:param sort_direction: The direction to sort by: ``[desc, asc]``.
:param sort_name: The field to sort by. Sort fields are in the format ``<usage_type>_usage``.
1456
+
Example: ``infra_host_usage``
1457
+
To obtain the complete list of usage attribution types that can be used to replace
1458
+
``<usage_type>`` in the field names, make a request to the `Get usage attribution types API <https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types>`_.
1459
+
:type sort_name: str, optional
1462
1460
:param tag_breakdown_keys: Comma separated list of tag keys used to group usage. If no value is provided the usage will not be broken down by tags.
1463
1461
1464
1462
To see which tags are available, look for the value of ``tag_config_source`` in the API response.
To obtain the complete list of valid usage types, make a request to the `Get usage attribution types API <https://docs.datadoghq.com/api/latest/usage-metering/#get-usage-attribution-types>`_.
0 commit comments