Sha256: 7f3e4126a4782d1c2dd5b05671694e639cdb4bb1f0eb969611de82cc0eda1c2b

Contents?: true

Size: 715 Bytes

Versions: 4

Compression:

Stored size: 715 Bytes

Contents

require 'codily/elements/service_belongging_base'

module Codily
  module Elements
    class Healthcheck < ServiceBelonggingBase
      def_attr *%i(
        check_interval
        comment
        expected_response
        host
        http_version
        initial
        method
        path
        threshold
        timeout
        window
      )

      defaults(
        threshold: 1,
        window: 2,
        http_version: "1.1",
        timeout: 5000,
        method: "HEAD",
        expected_response: 200,
        check_interval: 60000,
        initial: 1,
      )

      def setup
        delete_if_empty! :comment
      end

      def fastly_class
        Fastly::Healthcheck
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
codily-0.3.1 lib/codily/elements/healthcheck.rb
codily-0.3.0 lib/codily/elements/healthcheck.rb
codily-0.2.0 lib/codily/elements/healthcheck.rb
codily-0.1.0.beta lib/codily/elements/healthcheck.rb