ArmTrafficManagerModelFactory.TrafficManagerMonitorConfig Method

Definition

public static Azure.ResourceManager.TrafficManager.Models.TrafficManagerMonitorConfig TrafficManagerMonitorConfig(Azure.ResourceManager.TrafficManager.Models.TrafficManagerProfileMonitorStatus? profileMonitorStatus = default, Azure.ResourceManager.TrafficManager.Models.TrafficManagerMonitorProtocol? protocol = default, long? port = default, string path = default, long? intervalInSeconds = default, long? timeoutInSeconds = default, long? toleratedNumberOfFailures = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.TrafficManager.Models.TrafficManagerMonitorConfigCustomHeaderInfo> customHeaders = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.TrafficManager.Models.ExpectedStatusCodeRangeInfo> expectedStatusCodeRanges = default);
static member TrafficManagerMonitorConfig : Nullable<Azure.ResourceManager.TrafficManager.Models.TrafficManagerProfileMonitorStatus> * Nullable<Azure.ResourceManager.TrafficManager.Models.TrafficManagerMonitorProtocol> * Nullable<int64> * string * Nullable<int64> * Nullable<int64> * Nullable<int64> * seq<Azure.ResourceManager.TrafficManager.Models.TrafficManagerMonitorConfigCustomHeaderInfo> * seq<Azure.ResourceManager.TrafficManager.Models.ExpectedStatusCodeRangeInfo> -> Azure.ResourceManager.TrafficManager.Models.TrafficManagerMonitorConfig
Public Shared Function TrafficManagerMonitorConfig (Optional profileMonitorStatus As Nullable(Of TrafficManagerProfileMonitorStatus) = Nothing, Optional protocol As Nullable(Of TrafficManagerMonitorProtocol) = Nothing, Optional port As Nullable(Of Long) = Nothing, Optional path As String = Nothing, Optional intervalInSeconds As Nullable(Of Long) = Nothing, Optional timeoutInSeconds As Nullable(Of Long) = Nothing, Optional toleratedNumberOfFailures As Nullable(Of Long) = Nothing, Optional customHeaders As IEnumerable(Of TrafficManagerMonitorConfigCustomHeaderInfo) = Nothing, Optional expectedStatusCodeRanges As IEnumerable(Of ExpectedStatusCodeRangeInfo) = Nothing) As TrafficManagerMonitorConfig

Parameters

profileMonitorStatus
Nullable<TrafficManagerProfileMonitorStatus>

The profile-level monitoring status of the Traffic Manager profile.

protocol
Nullable<TrafficManagerMonitorProtocol>

The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.

port
Nullable<Int64>

The TCP port used to probe for endpoint health.

path
String

The path relative to the endpoint domain name used to probe for endpoint health.

intervalInSeconds
Nullable<Int64>

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.

timeoutInSeconds
Nullable<Int64>

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.

toleratedNumberOfFailures
Nullable<Int64>

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.

customHeaders
IEnumerable<TrafficManagerMonitorConfigCustomHeaderInfo>

List of custom headers.

expectedStatusCodeRanges
IEnumerable<ExpectedStatusCodeRangeInfo>

List of expected status code ranges.

Returns

A new TrafficManagerMonitorConfig instance for mocking.

Applies to