January 2019
Intermediate to advanced
490 pages
15h 37m
English
We can specify dimensions with the put-metric-data sub-command using its dimensions property. Add a dimension with two different values using the following code:
aws cloudwatch put-metric-data \ --namespace 'ServerlessProgrammingCookbook' \ --metric-name 'FailedLogins' \ --value 1 \ --dimensions 'Device=Mobile' \ --region us-east-1 \ --profile adminaws cloudwatch put-metric-data \ --namespace 'ServerlessProgrammingCookbook' \ --metric-name 'FailedLogins' \ --value 1 \ --dimensions 'Device=Laptop' \ --region us-east-1 \ --profile adminaws cloudwatch put-metric-data \ --namespace 'ServerlessProgrammingCookbook' \ --metric-name 'FailedLogins' \ --value 1 \ --dimensions 'Device=Laptop' \ --region us-east-1 ...
Read now
Unlock full access