# Dashboards ### Returns a list of the dashboards of your accountawscloudwatchlist-dashboards## Retrieves the details of the specified dashboardawscloudwatchget-dashboard--dashboard-name<value># Metrics ### Returns a list of the specified metricaws cloudwatch list-metrics [--namespace <value>] [--metric-name <value>] [--dimensions <value>] [--include-linked-accounts | --no-include-linked-accounts]
## Retrieves metric data (this operation can include a CloudWatch Metrics Insights query, and one or more metric math functions)
awscloudwatchget-metric-data--metric-data-queries<value>--start-time<value>--end-time<value>## Retrieves statistics for the specified metric and namespace over a range of timeaws cloudwatch get-metric-statistics --namespace <value> --metric-name <value> [--dimensions <value>] --start-time <value> --end-time <value> --period <value>
## Returns a list of the metric streams of your accountawscloudwatchlist-metric-streams## Retrieves information about the specified metric streamawscloudwatchget-metric-stream--name<value>## Retrieve snapshots of the specified metric widgetsawscloudwatchget-metric-widget-image--metric-widget<value># Alarms ### Retrieves the specified alarmaws cloudwatch describe-alarms [--alarm-names <value>] [--alarm-name-prefix <value>] [--alarm-types <value>] [--state-value <value>]
## Retrieves the alarms history, even for deleted alarmsaws cloudwatch describe-alarm-history [--alarm-name <value>] [--alarm-types <value>] [--history-item-type <ConfigurationUpdate | StateUpdate | Action>] [--start-date <value>] [--end-date <value>]
## Retrieves standard alarms based on the specified metricawscloudwatchescribe-alarms-for-metric--metric-name<value>--namespace<value> [--dimensions <value>]# Anomaly Detections ### Lists the anomaly detection models that you have created in your accountawscloudwatchdescribe-anomaly-detectors [--namespace <value>] [--metric-name <value>] [--dimensions <value>]## Lists all the Contributor Insight rules in your accountawscloudwatchdescribe-insight-rules## Retrieves the data collected over a time range for a given Contributor Insight ruleawscloudwatchget-insight-rule-report--rule-name<value>--start-time<value>--end-time<value>--period<value>## Lists managed Contributor Insights rules in your account for a specified resourceawscloudwatchlist-managed-insight-rules--resource-arn<value># Tags ### Lists the tags associated with the specified CloudWatch resourcesawscloudwatchlist-tags-for-resource--resource-arn<value># CloudWatch Logs #aws logs tail "<log_group_name>" --followaws logs get-log-events --log-group-name "<log_group_name>" --log-stream-name "<log_stream_name>" --output text > <output_file>
# CloudWatch Events #awseventslist-rulesawseventsdescribe-rule--name<name>awseventslist-targets-by-rule--rule<name>awseventslist-archivesawseventsdescribe-archive--archive-name<name>awseventslist-connectionsawseventsdescribe-connection--name<name>awseventslist-endpointsawseventsdescribe-endpoint--name<name>awseventslist-event-sourcesawseventsdescribe-event-source--name<name>awseventslist-replaysawseventslist-api-destinationsawseventslist-event-buses
{"Namespace":"AWS/EC2","MetricName":"CPUUtilization","Dimensions": [{"Name":"InstanceId","Value":"i-01234567890123456"}],"AlarmActions": ["arn:aws:sns:us-east-1:123456789012:example_sns"],"ComparisonOperator":"GreaterThanThreshold","DatapointsToAlarm":4,"EvaluationPeriods":6,"Period":300,"Statistic":"Average","Threshold":60,"AlarmDescription":"CPU Utilization of i-01234567890123456 over 60%","AlarmName":"EC2 instance i-01234567890123456 CPU Utilization"}
{"Namespace":"AWS/EC2","MetricName":"CPUUtilization","Dimensions": [{"Name":"InstanceId","Value":"i-0645d6d414dadf9f8"}],"AlarmActions": [],"ComparisonOperator":"GreaterThanThreshold","DatapointsToAlarm":8640,"EvaluationPeriods":8640,"Period":10,"Statistic":"Average","Threshold":99,"AlarmDescription":"CPU Utilization of i-01234567890123456 with 60% as threshold","AlarmName":"Instance i-0645d6d414dadf9f8 CPU Utilization"}