Class: Azure::Network::Mgmt::V2019_11_01::Models::ConnectionMonitorSuccessThreshold

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/connection_monitor_success_threshold.rb

Overview

Describes the threshold for declaring a test successful.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#checks_failed_percentInteger

a test to evaluate as successful.

Returns:

  • (Integer)

    The maximum percentage of failed checks permitted for


17
18
19
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/connection_monitor_success_threshold.rb', line 17

def checks_failed_percent
  @checks_failed_percent
end

#round_trip_time_msInteger

for a test to evaluate as successful.

Returns:

  • (Integer)

    The maximum round-trip time in milliseconds permitted


21
22
23
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/connection_monitor_success_threshold.rb', line 21

def round_trip_time_ms
  @round_trip_time_ms
end

Class Method Details

.mapperObject

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


28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/connection_monitor_success_threshold.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ConnectionMonitorSuccessThreshold',
    type: {
      name: 'Composite',
      class_name: 'ConnectionMonitorSuccessThreshold',
      model_properties: {
        checks_failed_percent: {
          client_side_validation: true,
          required: false,
          serialized_name: 'checksFailedPercent',
          type: {
            name: 'Number'
          }
        },
        round_trip_time_ms: {
          client_side_validation: true,
          required: false,
          serialized_name: 'roundTripTimeMs',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end