Permalink
Browse files

Support disabled attribute of health checks

  • Loading branch information...
eagletmt committed Jan 9, 2019
1 parent 7e97030 commit 7fcd443728938e79be832d91ce6f4a419f7d6080
@@ -50,6 +50,7 @@ def output_rrset(recrod)
:failure_threshold,
:measure_latency,
:inverted,
:disabled,
:enable_sni,
:insufficient_data_health_status,
].each do |key|
@@ -201,6 +201,7 @@ def health_check(url, options = {})
:failure_threshold => :failure_threshold,
:measure_latency => :measure_latency,
:inverted => :inverted,
:disabled => :disabled,
:enable_sni => :enable_sni,
:regions => :regions,
:insufficient_data_health_status => :insufficient_data_health_status,
@@ -225,6 +226,7 @@ def health_check(url, options = {})
config[:failure_threshold] ||= 3
config[:measure_latency] ||= false
config[:inverted] ||= false
config[:disabled] ||= false
config[:enable_sni] ||= false
end

@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
#spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_dependency "aws-sdk-route53", "~> 1"
spec.add_dependency "aws-sdk-route53", ">= 1.13.0"
spec.add_dependency "term-ansicolor"
spec.add_dependency "dnsruby"
spec.add_dependency "uuid"
@@ -799,6 +799,7 @@
:failure_threshold => 3,
:measure_latency => false,
:inverted => false,
:disabled => false,
:child_health_checks => [],
:enable_sni => false,
:regions => [],
@@ -818,6 +819,7 @@
:failure_threshold => 3,
:measure_latency => false,
:inverted => false,
:disabled => false,
:child_health_checks => [],
:enable_sni => false,
:regions => [],
@@ -950,6 +952,7 @@
:failure_threshold => 3,
:measure_latency => false,
:inverted => false,
:disabled => false,
:child_health_checks => [],
:enable_sni => false,
:regions => [],
@@ -970,6 +973,7 @@
:failure_threshold => 3,
:measure_latency => false,
:inverted => false,
:disabled => false,
:child_health_checks => [],
:enable_sni => false,
:regions => [],
@@ -991,6 +995,7 @@
:health_threshold => 2,
:measure_latency => nil,
:inverted => true,
:disabled => false,
:child_health_checks => [health_check_id],
:regions => [],
))

0 comments on commit 7fcd443

Please sign in to comment.