class Azure::TrafficManager::Mgmt::V2018_02_01::Models::MonitorConfig

Class containing endpoint monitoring settings in a Traffic Manager profile.

Attributes

interval_in_seconds[RW]

@return [Integer] The monitor interval for endpoints in this profile. This is the interval at which Traffic Manager will check the health of each endpoint in this profile.

path[RW]

@return [String] The path relative to the endpoint domain name used to probe for endpoint health.

port[RW]

@return [Integer] The TCP port used to probe for endpoint health.

profile_monitor_status[RW]

@return [ProfileMonitorStatus] The profile-level monitoring status of the Traffic Manager profile. Possible values include: 'CheckingEndpoints', 'Online', 'Degraded', 'Disabled', 'Inactive'

protocol[RW]

@return [MonitorProtocol] The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health. Possible values include: 'HTTP', 'HTTPS', 'TCP'

timeout_in_seconds[RW]

@return [Integer] The monitor timeout for endpoints in this profile. This is the time that Traffic Manager allows endpoints in this profile to response to the health check.

tolerated_number_of_failures[RW]

@return [Integer] The number of consecutive failed health check that Traffic Manager tolerates before declaring an endpoint in this profile Degraded after the next failed health check.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/monitor_config.rb, line 53
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MonitorConfig',
    type: {
      name: 'Composite',
      class_name: 'MonitorConfig',
      model_properties: {
        profile_monitor_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'profileMonitorStatus',
          type: {
            name: 'String'
          }
        },
        protocol: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protocol',
          type: {
            name: 'String'
          }
        },
        port: {
          client_side_validation: true,
          required: false,
          serialized_name: 'port',
          type: {
            name: 'Number'
          }
        },
        path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'path',
          type: {
            name: 'String'
          }
        },
        interval_in_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'intervalInSeconds',
          type: {
            name: 'Number'
          }
        },
        timeout_in_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timeoutInSeconds',
          type: {
            name: 'Number'
          }
        },
        tolerated_number_of_failures: {
          client_side_validation: true,
          required: false,
          serialized_name: 'toleratedNumberOfFailures',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end