MonitorConfig Class
- java.
lang. Object - com.
microsoft. azure. management. trafficmanager. MonitorConfig
- com.
public class MonitorConfig
Class containing endpoint monitoring settings in a Traffic Manager profile.
Constructor Summary
Constructor | Description | |
---|---|---|
MonitorConfig() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<Monitor |
customHeaders()
Get list of custom headers. |
java.util.List<Monitor |
expectedStatusCodeRanges()
Get list of expected status code ranges. |
java.lang.Long |
intervalInSeconds()
Get the monitor interval for endpoints in this profile. |
java.lang.String |
path()
Get the path relative to the endpoint domain name used to probe for endpoint health. |
java.lang.Long |
port()
Get the TCP port used to probe for endpoint health. |
Profile |
profileMonitorStatus()
Get the profile-level monitoring status of the Traffic Manager profile. |
Monitor |
protocol()
Get the protocol (HTTP, HTTPS or TCP) used to probe for endpoint health. |
java.lang.Long |
timeoutInSeconds()
Get the monitor timeout for endpoints in this profile. |
java.lang.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. |
Monitor |
withCustomHeaders(List<MonitorConfigCustomHeadersItem> customHeaders)
Set list of custom headers. |
Monitor |
withExpectedStatusCodeRanges(List<MonitorConfigExpectedStatusCodeRangesItem> expectedStatusCodeRanges)
Set list of expected status code ranges. |
Monitor |
withIntervalInSeconds(Long intervalInSeconds)
Set the monitor interval for endpoints in this profile. |
Monitor |
withPath(String path)
Set the path relative to the endpoint domain name used to probe for endpoint health. |
Monitor |
withPort(Long port)
Set the TCP port used to probe for endpoint health. |
Monitor |
withProfileMonitorStatus(ProfileMonitorStatus profileMonitorStatus)
Set the profile-level monitoring status of the Traffic Manager profile. |
Monitor |
withProtocol(MonitorProtocol protocol)
Set the protocol (HTTP, HTTPS or TCP) used to probe for endpoint health. |
Monitor |
withTimeoutInSeconds(Long timeoutInSeconds)
Set the monitor timeout for endpoints in this profile. |
Monitor |
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. |
Methods inherited from java.lang.Object
Constructor Details
MonitorConfig
public MonitorConfig()
Method Details
customHeaders
public List
Get list of custom headers.
Returns:
expectedStatusCodeRanges
public List
Get list of expected status code ranges.
Returns:
intervalInSeconds
public Long intervalInSeconds()
Get 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.
Returns:
path
public String path()
Get the path relative to the endpoint domain name used to probe for endpoint health.
Returns:
port
public Long port()
Get the TCP port used to probe for endpoint health.
Returns:
profileMonitorStatus
public ProfileMonitorStatus profileMonitorStatus()
Get the profile-level monitoring status of the Traffic Manager profile. Possible values include: 'CheckingEndpoints', 'Online', 'Degraded', 'Disabled', 'Inactive'.
Returns:
protocol
public MonitorProtocol protocol()
Get the protocol (HTTP, HTTPS or TCP) used to probe for endpoint health. Possible values include: 'HTTP', 'HTTPS', 'TCP'.
Returns:
timeoutInSeconds
public Long timeoutInSeconds()
Get 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.
Returns:
toleratedNumberOfFailures
public 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.
Returns:
withCustomHeaders
public MonitorConfig withCustomHeaders(List
Set list of custom headers.
Parameters:
Returns:
withExpectedStatusCodeRanges
public MonitorConfig withExpectedStatusCodeRanges(List
Set list of expected status code ranges.
Parameters:
Returns:
withIntervalInSeconds
public MonitorConfig withIntervalInSeconds(Long intervalInSeconds)
Set 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.
Parameters:
Returns:
withPath
public MonitorConfig withPath(String path)
Set the path relative to the endpoint domain name used to probe for endpoint health.
Parameters:
Returns:
withPort
public MonitorConfig withPort(Long port)
Set the TCP port used to probe for endpoint health.
Parameters:
Returns:
withProfileMonitorStatus
public MonitorConfig withProfileMonitorStatus(ProfileMonitorStatus profileMonitorStatus)
Set the profile-level monitoring status of the Traffic Manager profile. Possible values include: 'CheckingEndpoints', 'Online', 'Degraded', 'Disabled', 'Inactive'.
Parameters:
Returns:
withProtocol
public MonitorConfig withProtocol(MonitorProtocol protocol)
Set the protocol (HTTP, HTTPS or TCP) used to probe for endpoint health. Possible values include: 'HTTP', 'HTTPS', 'TCP'.
Parameters:
Returns:
withTimeoutInSeconds
public MonitorConfig withTimeoutInSeconds(Long timeoutInSeconds)
Set 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.
Parameters:
Returns:
withToleratedNumberOfFailures
public 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.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for