Class: Fog::Network::AzureRM::Probe
- Inherits:
-
Model
- Object
- Model
- Fog::Network::AzureRM::Probe
- Defined in:
- lib/fog/azurerm/models/network/probe.rb
Overview
Probe model 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 |
# File 'lib/fog/azurerm/models/network/probe.rb', line 14 def self.parse(probe) probe_prop = probe['properties'] hash = {} hash['id'] = probe['id'] hash['name'] = probe['name'] hash['protocol'] = probe_prop['protocol'] hash['port'] = probe_prop['port'] hash['request_path'] = probe_prop['requestPath'] hash['interval_in_seconds'] = probe_prop['intervalInSeconds'] hash['number_of_probes'] = probe_prop['numberOfProbes'] hash end |