Class: Azure::Network::Mgmt::V2020_03_01::Models::ConnectionMonitorTestConfiguration

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb

Overview

Describes a connection monitor test configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#http_configurationConnectionMonitorHttpConfiguration

perform test evaluation over HTTP.

Returns:


33
34
35
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb', line 33

def http_configuration
  @http_configuration
end

#icmp_configurationConnectionMonitorIcmpConfiguration

perform test evaluation over ICMP.

Returns:


41
42
43
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb', line 41

def icmp_configuration
  @icmp_configuration
end

#nameString

Returns The name of the connection monitor test configuration.

Returns:

  • (String)

    The name of the connection monitor test configuration.


16
17
18
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb', line 16

def name
  @name
end

#preferred_ipversionPreferredIPVersion

evaluation. The connection monitor may choose to use a different version depending on other parameters. Possible values include: 'IPv4', 'IPv6'

Returns:


29
30
31
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb', line 29

def preferred_ipversion
  @preferred_ipversion
end

#protocolConnectionMonitorTestConfigurationProtocol

use in test evaluation. Possible values include: 'Tcp', 'Http', 'Icmp'

Returns:


23
24
25
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb', line 23

def protocol
  @protocol
end

#success_thresholdConnectionMonitorSuccessThreshold

a test successful.

Returns:


45
46
47
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb', line 45

def success_threshold
  @success_threshold
end

#tcp_configurationConnectionMonitorTcpConfiguration

perform test evaluation over TCP.

Returns:


37
38
39
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb', line 37

def tcp_configuration
  @tcp_configuration
end

#test_frequency_secInteger

Returns The frequency of test evaluation, in seconds.

Returns:

  • (Integer)

    The frequency of test evaluation, in seconds.


19
20
21
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb', line 19

def test_frequency_sec
  @test_frequency_sec
end

Class Method Details

.mapperObject

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


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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb', line 52

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ConnectionMonitorTestConfiguration',
    type: {
      name: 'Composite',
      class_name: 'ConnectionMonitorTestConfiguration',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        test_frequency_sec: {
          client_side_validation: true,
          required: false,
          serialized_name: 'testFrequencySec',
          type: {
            name: 'Number'
          }
        },
        protocol: {
          client_side_validation: true,
          required: true,
          serialized_name: 'protocol',
          type: {
            name: 'String'
          }
        },
        preferred_ipversion: {
          client_side_validation: true,
          required: false,
          serialized_name: 'preferredIPVersion',
          type: {
            name: 'String'
          }
        },
        http_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'httpConfiguration',
          type: {
            name: 'Composite',
            class_name: 'ConnectionMonitorHttpConfiguration'
          }
        },
        tcp_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tcpConfiguration',
          type: {
            name: 'Composite',
            class_name: 'ConnectionMonitorTcpConfiguration'
          }
        },
        icmp_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'icmpConfiguration',
          type: {
            name: 'Composite',
            class_name: 'ConnectionMonitorIcmpConfiguration'
          }
        },
        success_threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'successThreshold',
          type: {
            name: 'Composite',
            class_name: 'ConnectionMonitorSuccessThreshold'
          }
        }
      }
    }
  }
end