CmdID / aws / aws cloudwatch
aws cloudwatch get-metric-data
You can use the GetMetricData API to retrieve CloudWatch metric values. AWS CLI reference
7 options Its page in the AWS CLI reference
Options
--end-timeThe time stamp indicating the latest data to be returned.--label-optionsThis structure includes the Timezone parameter, which you can use to specify your time zone so that the labels of returned data display the correct time for your time zone.--max-datapointsThe maximum number of data points the request should return before paginating.--metric-data-queriesThe metric queries to be returned.--next-tokenInclude this value, if it was returned by the previous GetMetricData operation, to get the next set of data points.--scan-byThe order in which data points should be returned.--start-timeThe time stamp indicating the earliest data to be returned.