public final class MonitorConfig extends Object
| Constructor and Description |
|---|
MonitorConfig() |
| Modifier and Type | Method and Description |
|---|---|
List<MonitorConfigCustomHeadersItem> |
customHeaders()
Get the customHeaders property: List of custom headers.
|
List<MonitorConfigExpectedStatusCodeRangesItem> |
expectedStatusCodeRanges()
Get the expectedStatusCodeRanges property: List of expected status code ranges.
|
Long |
intervalInSeconds()
Get the intervalInSeconds property: The monitor interval for endpoints in this profile.
|
String |
path()
Get the path property: The path relative to the endpoint domain name used to probe for endpoint health.
|
Long |
port()
Get the port property: The TCP port used to probe for endpoint health.
|
ProfileMonitorStatus |
profileMonitorStatus()
Get the profileMonitorStatus property: The profile-level monitoring status of the Traffic Manager profile.
|
MonitorProtocol |
protocol()
Get the protocol property: The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.
|
Long |
timeoutInSeconds()
Get the timeoutInSeconds property: The monitor timeout for endpoints in this profile.
|
Long |
toleratedNumberOfFailures()
Get the toleratedNumberOfFailures property: 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.
|
void |
validate()
Validates the instance.
|
MonitorConfig |
withCustomHeaders(List<MonitorConfigCustomHeadersItem> customHeaders)
Set the customHeaders property: List of custom headers.
|
MonitorConfig |
withExpectedStatusCodeRanges(List<MonitorConfigExpectedStatusCodeRangesItem> expectedStatusCodeRanges)
Set the expectedStatusCodeRanges property: List of expected status code ranges.
|
MonitorConfig |
withIntervalInSeconds(Long intervalInSeconds)
Set the intervalInSeconds property: The monitor interval for endpoints in this profile.
|
MonitorConfig |
withPath(String path)
Set the path property: The path relative to the endpoint domain name used to probe for endpoint health.
|
MonitorConfig |
withPort(Long port)
Set the port property: The TCP port used to probe for endpoint health.
|
MonitorConfig |
withProfileMonitorStatus(ProfileMonitorStatus profileMonitorStatus)
Set the profileMonitorStatus property: The profile-level monitoring status of the Traffic Manager profile.
|
MonitorConfig |
withProtocol(MonitorProtocol protocol)
Set the protocol property: The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.
|
MonitorConfig |
withTimeoutInSeconds(Long timeoutInSeconds)
Set the timeoutInSeconds property: The monitor timeout for endpoints in this profile.
|
MonitorConfig |
withToleratedNumberOfFailures(Long toleratedNumberOfFailures)
Set the toleratedNumberOfFailures property: 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 ProfileMonitorStatus profileMonitorStatus()
public MonitorConfig withProfileMonitorStatus(ProfileMonitorStatus profileMonitorStatus)
profileMonitorStatus - the profileMonitorStatus value to set.public MonitorProtocol protocol()
public MonitorConfig withProtocol(MonitorProtocol protocol)
protocol - the protocol value to set.public Long port()
public MonitorConfig withPort(Long port)
port - the port value to set.public String path()
public MonitorConfig withPath(String path)
path - the path value to set.public Long intervalInSeconds()
public MonitorConfig withIntervalInSeconds(Long intervalInSeconds)
intervalInSeconds - the intervalInSeconds value to set.public Long timeoutInSeconds()
public MonitorConfig withTimeoutInSeconds(Long timeoutInSeconds)
timeoutInSeconds - the timeoutInSeconds value to set.public Long toleratedNumberOfFailures()
public MonitorConfig withToleratedNumberOfFailures(Long toleratedNumberOfFailures)
toleratedNumberOfFailures - the toleratedNumberOfFailures value to set.public List<MonitorConfigCustomHeadersItem> customHeaders()
public MonitorConfig withCustomHeaders(List<MonitorConfigCustomHeadersItem> customHeaders)
customHeaders - the customHeaders value to set.public List<MonitorConfigExpectedStatusCodeRangesItem> expectedStatusCodeRanges()
public MonitorConfig withExpectedStatusCodeRanges(List<MonitorConfigExpectedStatusCodeRangesItem> expectedStatusCodeRanges)
expectedStatusCodeRanges - the expectedStatusCodeRanges value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.