Skip to content

Instantly share code, notes, and snippets.

View MasterChenGitHub's full-sized avatar

Master Chan MasterChenGitHub

  • Hangzhou,China
View GitHub Profile
@kskb
kskb / croudwatch_sample.rb
Created March 23, 2015 06:11
AWS SDK for Ruby v2 Aws::CloudWatch::Client#get_metric_statistics sample
require 'aws-sdk-core'
require 'active_support'
require 'active_support/core_ext'
cw = Aws::CloudWatch::Client.new( region: 'us-east-1')
resp = cw.get_metric_statistics(
namespace: "AWS/Billing",
metric_name: "EstimatedCharges",
dimensions: [
{name: "Currency", value: "USD"}