Class: Fog::Network::AzureRM::ApplicationGatewayProbe

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

Overview

Probe model class for Network Service

Class Method Summary collapse

Class Method Details

.parse(probe) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/fog/azurerm/models/network/application_gateway_probe.rb', line 14

def self.parse(probe)
  probe_properties = probe['properties']

  hash = {}
  hash['name'] = probe['name']
  unless probe_properties.nil?
    hash['protocol'] = probe_properties['protocol']
    hash['host'] = probe_properties['host']
    hash['path'] = probe_properties['path']
    hash['interval'] = probe_properties['interval']
    hash['timeout'] = probe_properties['timeout']
    hash['unhealthy_threshold'] = probe_properties['unhealthyThreshold']
  end
  hash
end