public class MonitorConfig extends Object
Constructor and Description |
---|
MonitorConfig() |
Modifier and Type | Method and Description |
---|---|
List<MonitorConfigCustomHeadersItem> |
customHeaders()
Get list of custom headers.
|
List<MonitorConfigExpectedStatusCodeRangesItem> |
expectedStatusCodeRanges()
Get list of expected status code ranges.
|
Long |
intervalInSeconds()
Get the monitor interval for endpoints in this profile.
|
String |
path()
Get the path relative to the endpoint domain name used to probe for endpoint health.
|
Long |
port()
Get the TCP port used to probe for endpoint health.
|
ProfileMonitorStatus |
profileMonitorStatus()
Get the profile-level monitoring status of the Traffic Manager profile.
|
MonitorProtocol |
protocol()
Get the protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.
|
Long |
timeoutInSeconds()
Get the monitor timeout for endpoints in this profile.
|
Long |
toleratedNumberOfFailures()
Get 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.
|
MonitorConfig |
withCustomHeaders(List<MonitorConfigCustomHeadersItem> customHeaders)
Set list of custom headers.
|
MonitorConfig |
withExpectedStatusCodeRanges(List<MonitorConfigExpectedStatusCodeRangesItem> expectedStatusCodeRanges)
Set list of expected status code ranges.
|
MonitorConfig |
withIntervalInSeconds(Long intervalInSeconds)
Set the monitor interval for endpoints in this profile.
|
MonitorConfig |
withPath(String path)
Set the path relative to the endpoint domain name used to probe for endpoint health.
|
MonitorConfig |
withPort(Long port)
Set the TCP port used to probe for endpoint health.
|
MonitorConfig |
withProfileMonitorStatus(ProfileMonitorStatus profileMonitorStatus)
Set the profile-level monitoring status of the Traffic Manager profile.
|
MonitorConfig |
withProtocol(MonitorProtocol protocol)
Set the protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.
|
MonitorConfig |
withTimeoutInSeconds(Long timeoutInSeconds)
Set the monitor timeout for endpoints in this profile.
|
MonitorConfig |
withToleratedNumberOfFailures(Long toleratedNumberOfFailures)
Set 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 setpublic MonitorProtocol protocol()
public MonitorConfig withProtocol(MonitorProtocol protocol)
protocol
- the protocol value to setpublic Long port()
public MonitorConfig withPort(Long port)
port
- the port value to setpublic String path()
public MonitorConfig withPath(String path)
path
- the path value to setpublic Long intervalInSeconds()
public MonitorConfig withIntervalInSeconds(Long intervalInSeconds)
intervalInSeconds
- the intervalInSeconds value to setpublic Long timeoutInSeconds()
public MonitorConfig withTimeoutInSeconds(Long timeoutInSeconds)
timeoutInSeconds
- the timeoutInSeconds value to setpublic Long toleratedNumberOfFailures()
public MonitorConfig withToleratedNumberOfFailures(Long toleratedNumberOfFailures)
toleratedNumberOfFailures
- the toleratedNumberOfFailures value to setpublic List<MonitorConfigCustomHeadersItem> customHeaders()
public MonitorConfig withCustomHeaders(List<MonitorConfigCustomHeadersItem> customHeaders)
customHeaders
- the customHeaders value to setpublic List<MonitorConfigExpectedStatusCodeRangesItem> expectedStatusCodeRanges()
public MonitorConfig withExpectedStatusCodeRanges(List<MonitorConfigExpectedStatusCodeRangesItem> expectedStatusCodeRanges)
expectedStatusCodeRanges
- the expectedStatusCodeRanges value to setCopyright © 2019. All rights reserved.