Class: Fog::ApplicationGateway::AzureRM::Probe

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/azurerm/models/application_gateway/probe.rb

Overview

Probe model class for Application Gateway Service

Class Method Summary collapse

Class Method Details

.parse(probe) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/fog/azurerm/models/application_gateway/probe.rb', line 15

def self.parse(probe)
  hash = {}
  hash['id'] = probe.id
  hash['name'] = probe.name
  hash['protocol'] = probe.protocol
  hash['host'] = probe.host
  hash['path'] = probe.path
  hash['interval'] = probe.interval
  hash['timeout'] = probe.timeout
  hash['unhealthy_threshold'] = probe.unhealthy_threshold
  hash
end