Sha256: 1fa5fb17548f4a0cb5e9f28da63582c27b12462c7d0bdd428e36ffcaeae1c312

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 Bytes

Contents

module Yao::Resources
  class LoadBalancerHealthMonitor < Base
    friendly_attributes :name, :admin_state_up, :provisioning_status,
                        :delay, :expected_codes, :max_retries,
                        :http_method, :timeout, :max_retries_down,
                        :url_path, :type, :operating_status

    def pools
      self["pools"].map do |pool|
        Yao::LoadBalancerPool.find pool["id"]
      end
    end

    self.service        = "load-balancer"
    self.api_version    = "v2.0"
    self.resource_name  = "healthmonitor"
    self.resources_name = "healthmonitors"
    self.resources_path = "lbaas/healthmonitors"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yao-0.3.7 lib/yao/resources/loadbalancer_healthmonitor.rb