Sha256: e2a377d4f6936616eea3cec1dc7cecc2ab5b41fd60f907e33cea7daecd2e93f2

Contents?: true

Size: 872 Bytes

Versions: 26

Compression:

Stored size: 872 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

    map_attribute_to_resources pools: LoadBalancerListener

    def created_at
      Date.parse(self["created_at"])
    end

    def updated_at
      Date.parse(self["updated_at"])
    end

    def project
      if project_id = self["project_id"]
        Yao::Tenant.find project_id
      end
    end
    alias :tenant :project

    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

26 entries across 26 versions & 1 rubygems

Version Path
yao-0.13.4 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.13.3 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.13.2 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.13.1 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.13.0 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.12.0 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.11.3 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.11.2 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.11.1 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.11.0 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.10.1 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.10.0 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.9.1 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.9.0 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.8.0 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.7.0 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.6.3 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.6.2 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.6.1 lib/yao/resources/loadbalancer_healthmonitor.rb
yao-0.6.0 lib/yao/resources/loadbalancer_healthmonitor.rb