Class: CfHealthCheck

Inherits:
Object
  • Object
show all
Includes:
CfInner
Defined in:
lib/cf_factory/elb/cf_health_check.rb

Instance Method Summary collapse

Methods included from CfInner

#additional_indent, #generate, #generate_name, #set_quotes

Constructor Details

#initialize(healthy_threshold, interval, target, timeout, unhealthy_threshold) ⇒ CfHealthCheck

Returns a new instance of CfHealthCheck.



6
7
8
9
10
11
12
# File 'lib/cf_factory/elb/cf_health_check.rb', line 6

def initialize(healthy_threshold, interval, target, timeout, unhealthy_threshold)
  @healthy_threshold = healthy_threshold
  @interval = interval
  @target = target
  @timeout = timeout
  @unhealthy_threshold = unhealthy_threshold 
end

Instance Method Details

#get_cf_attributesObject



14
15
16
17
18
19
20
21
# File 'lib/cf_factory/elb/cf_health_check.rb', line 14

def get_cf_attributes
  {"HealthyThreshold" => @healthy_threshold,
    "Interval" => @interval,
    "Target" => @target,
    "Timeout" => @timeout,
    "UnhealthyThreshold" => @unhealthy_threshold
  }
end