Module: Ruboty::ElbMonitor
- Defined in:
- lib/ruboty/elb_monitor.rb,
lib/ruboty/elb_monitor/aws/elb.rb,
lib/ruboty/elb_monitor/version.rb,
lib/ruboty/elb_monitor/actions/add.rb,
lib/ruboty/elb_monitor/actions/base.rb,
lib/ruboty/elb_monitor/actions/list.rb,
lib/ruboty/elb_monitor/actions/state.rb,
lib/ruboty/elb_monitor/actions/delete.rb,
lib/ruboty/elb_monitor/aws/cloudwatch.rb,
lib/ruboty/elb_monitor/actions/state_trend.rb
Defined Under Namespace
Constant Summary collapse
- NAMESPACE =
"elb_monitor"
- VERSION =
"0.1.0"
Class Method Summary collapse
- .cloudwatch(elb_name, start_time = nil, end_time = nil) ⇒ Object
- .elb(name) ⇒ Object
- .metrics ⇒ Object
- .trend_separator ⇒ Object
Class Method Details
.cloudwatch(elb_name, start_time = nil, end_time = nil) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/ruboty/elb_monitor.rb', line 14 def cloudwatch(elb_name, start_time=nil, end_time=nil) = .merge( start_time: start_time, end_time: end_time, ) Aws::CloudWatch.new(elb_name, ) end |
.elb(name) ⇒ Object
10 11 12 |
# File 'lib/ruboty/elb_monitor.rb', line 10 def elb(name) Aws::Elb.new(name, ) end |
.metrics ⇒ Object
22 23 24 |
# File 'lib/ruboty/elb_monitor.rb', line 22 def metrics (ENV["ELB_METRICS"] || DEFAULT_METRICS).split(/,/) end |
.trend_separator ⇒ Object
26 27 28 |
# File 'lib/ruboty/elb_monitor.rb', line 26 def trend_separator ENV["ELB_TREND_SEPARATOR"] || ' ' end |