
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
misfo-aws-sdk-cloudwatch
Advanced tools
= AWS SDK for Ruby -- CloudWatch API support
This gem adds rudimentary support for the CloudWatch API to the official AWS SDK for Ruby.
== SYNOPSIS
require 'aws/cloud_watch'
cw = AWS::CloudWatch.new
cw.client.get_metric_statistics :start_time => Time.utc(2012, 5, 1).iso8601, :end_time => Time.utc(2012, 5, 7).iso8601, :namespace => 'AWS/EC2', :period => 246060, :statistics => ['Average'], :metric_name => 'CPUUtilization', :dimensions => [{ :name => 'InstanceId', :value => 'i-ecb73258' }] cw.client.list_metrics :namespace => 'AWS/EC2'
There is currently only some high level access to EC2 metrics:
require 'aws/cloud_watch/ec2'
ec2 = AWS::EC2.new
instance = ec2.instances['i-ecb73258']
instance.metrics instance.metrics['CPUUtilization'].get :average, 246060, Time.utc(2012, 5, 20)..Time.utc(2012, 5, 21)
instance.cpu_utilization.get :average, 246060, Time.utc(2012, 5, 20)..Time.utc(2012, 5, 21) instance.cpu_utilization.get :average, 246060, Time.utc(2012, 5, 21) # takes a single period instance.cpu_utilization.average 246060, Time.utc(2012, 5, 21) instance.cpu_utilization 246060, Time.utc(2012, 5, 21) # CPU utilization is averaged by default, others are summed instance.cpu_utilization 246060 # returns average CPU utilization for the last 24 hours
instance.cpu_utilization 1.day
Note that variants without a time range return value directly.
FAQs
Unknown package
We found that misfo-aws-sdk-cloudwatch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.