Skip to content

datadog get-custom-metrics-hourly-usage

Get hourly usage for custom metrics

Description

Get hourly usage for custom metrics

Synopsis

datadog get-custom-metrics-hourly-usage
    [--site <site>]
    --start <start>
    [--end <end>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

start - (time)

     For usage beginning at this hour
     Example: --start "2019-10-12T07:20:50.52Z"
     Default: 5 hours ago      Attributes: required

end - (time)

     For usage ending before this hour
     Example: --end "2019-10-12T07:20:50.52Z"
     Default: _None_      Attributes: optional

Examples

Input:

!datadog get-custom-metrics-hourly-usage --start "1month ago"
Output:
ID      ORG-NAME    HOUR                      CUSTOM-TIMESERIES INPUT-TIMESERIES OUTPUT-TIMESERIES
65421     testOrg     2022-12-26T17:45:07.000Z  25                10               15

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "datadog"
Service Instance
Namespace
Object Type "metrics"
Object ID

Please see Access Control for details.