Class: Azure::Network::Mgmt::V2018_04_01::Models::ConnectionMonitor

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-01/generated/azure_mgmt_network/models/connection_monitor.rb

Overview

Parameters that define the operation to create a connection monitor.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auto_startBoolean

automatically once created. Default value: true .

Returns:

  • (Boolean)

    Determines if the connection monitor will start


29
30
31
# File 'lib/2018-04-01/generated/azure_mgmt_network/models/connection_monitor.rb', line 29

def auto_start
  @auto_start
end

#destinationConnectionMonitorDestination


25
26
27
# File 'lib/2018-04-01/generated/azure_mgmt_network/models/connection_monitor.rb', line 25

def destination
  @destination
end

#locationString

Returns Connection monitor location.

Returns:

  • (String)

    Connection monitor location.


16
17
18
# File 'lib/2018-04-01/generated/azure_mgmt_network/models/connection_monitor.rb', line 16

def location
  @location
end

#monitoring_interval_in_secondsInteger

Returns Monitoring interval in seconds. Default value: 60 .

Returns:

  • (Integer)

    Monitoring interval in seconds. Default value: 60 .


32
33
34
# File 'lib/2018-04-01/generated/azure_mgmt_network/models/connection_monitor.rb', line 32

def monitoring_interval_in_seconds
  @monitoring_interval_in_seconds
end

#sourceConnectionMonitorSource


22
23
24
# File 'lib/2018-04-01/generated/azure_mgmt_network/models/connection_monitor.rb', line 22

def source
  @source
end

#tagsHash{String => String}

Returns Connection monitor tags.

Returns:

  • (Hash{String => String})

    Connection monitor tags.


19
20
21
# File 'lib/2018-04-01/generated/azure_mgmt_network/models/connection_monitor.rb', line 19

def tags
  @tags
end

Class Method Details

.mapperObject

Mapper for ConnectionMonitor class as Ruby Hash. This will be used for serialization/deserialization.


39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/2018-04-01/generated/azure_mgmt_network/models/connection_monitor.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ConnectionMonitor',
    type: {
      name: 'Composite',
      class_name: 'ConnectionMonitor',
      model_properties: {
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        source: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.source',
          type: {
            name: 'Composite',
            class_name: 'ConnectionMonitorSource'
          }
        },
        destination: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.destination',
          type: {
            name: 'Composite',
            class_name: 'ConnectionMonitorDestination'
          }
        },
        auto_start: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.autoStart',
          default_value: true,
          type: {
            name: 'Boolean'
          }
        },
        monitoring_interval_in_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.monitoringIntervalInSeconds',
          default_value: 60,
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end