SHARE
TWEET

Untitled

a guest Nov 8th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _, err := svc.PutMetricData(&cloudwatch.PutMetricDataInput{
  2.     Namespace: aws.String("Site/Traffic"),
  3.     MetricData: []*cloudwatch.MetricDatum{
  4.         &cloudwatch.MetricDatum{
  5.             MetricName: aws.String("UniqueVisitors"),
  6.             Unit:       aws.String("Count"),
  7.             Value:      aws.Float64(5885.0),
  8.             Dimensions: []*cloudwatch.Dimension{
  9.                 &cloudwatch.Dimension{
  10.                     Name:  aws.String("SiteName"),
  11.                     Value: aws.String("example.com"),
  12.                 },
  13.             },
  14.         },
  15.         &cloudwatch.MetricDatum{
  16.             MetricName: aws.String("UniqueVisits"),
  17.             Unit:       aws.String("Count"),
  18.             Value:      aws.Float64(8628.0),
  19.             Dimensions: []*cloudwatch.Dimension{
  20.                 &cloudwatch.Dimension{
  21.                     Name:  aws.String("SiteName"),
  22.                     Value: aws.String("example.com"),
  23.                 },
  24.             },
  25.         },
  26.         &cloudwatch.MetricDatum{
  27.             MetricName: aws.String("PageViews"),
  28.             Unit:       aws.String("Count"),
  29.             Value:      aws.Float64(18057.0),
  30.             Dimensions: []*cloudwatch.Dimension{
  31.                 &cloudwatch.Dimension{
  32.                     Name:  aws.String("PageURL"),
  33.                     Value: aws.String("my-page.html"),
  34.                 },
  35.             },
  36.         },
  37.     },
  38. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top