lib/fastly/healthcheck.rb in fastly-1.2.3 vs lib/fastly/healthcheck.rb in fastly-1.3.0
- old
+ new
@@ -1,9 +1,9 @@
class Fastly
# A way of keeping track of any of your hosts which are down
class Healthcheck < BelongsToServiceAndVersion
- attr_accessor :service_id, :name, :comment, :path, :host, :http_version, :timeout, :window, :threshold
+ attr_accessor :service_id, :name, :comment, :path, :host, :http_version, :timeout, :window, :threshold, :method, :expected_response, :initial, :check_interval
##
# :attr: service_id
#
# The id of the service this belongs to.
@@ -59,6 +59,26 @@
##
# :attr: threshold
#
# How many have to be ok for it work
end
+
+ ##
+ # :attr: method
+ #
+ # The HTTP method to use: GET, PUT, POST etc.
+
+ ##
+ # :attr: expected_response
+ #
+ # The HTTP status to indicate a successful healthcheck (e.g. 200)
+
+ ##
+ # :attr: initial
+ #
+ # How many have to be ok for it work the first time
+
+ ##
+ # :attr: check_interval
+ #
+ # Time between checks in milliseconds
end