Skip to content

Commit

Permalink
Updated CloudWatch metrics example in Go 'dimension' -> 'dimension name'
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug-AWS committed Aug 13, 2018
1 parent 1bbbbc6 commit 6dcf38f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/example_code/cloudwatch/listing_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import (

func main() {
if len(os.Args) != 4 {
fmt.Println("You must supply a metric name, namespace, and dimensions")
fmt.Println("You must supply a metric name, namespace, and dimension name")
os.Exit(1)
}

metric := os.Args[1]
namespace := os.Args[2]
dimensions := os.Args[3]
dimension := os.Args[3]

// Initialize a session that the SDK uses to load
// credentials from the shared credentials file ~/.aws/credentials
Expand All @@ -49,7 +49,7 @@ func main() {
Namespace: aws.String(namespace),
Dimensions: []*cloudwatch.DimensionFilter{
&cloudwatch.DimensionFilter{
Name: aws.String(name),
Name: aws.String(dimension),
},
},
})
Expand Down

0 comments on commit 6dcf38f

Please sign in to comment.