public class MonitorConfig extends Object
| Constructor and Description |
|---|
MonitorConfig() |
| Modifier and Type | Method and Description |
|---|---|
Long |
intervalInSeconds()
Get the intervalInSeconds value.
|
String |
path()
Get the path value.
|
Long |
port()
Get the port value.
|
ProfileMonitorStatus |
profileMonitorStatus()
Get the profileMonitorStatus value.
|
MonitorProtocol |
protocol()
Get the protocol value.
|
Long |
timeoutInSeconds()
Get the timeoutInSeconds value.
|
Long |
toleratedNumberOfFailures()
Get the toleratedNumberOfFailures value.
|
MonitorConfig |
withIntervalInSeconds(Long intervalInSeconds)
Set the intervalInSeconds value.
|
MonitorConfig |
withPath(String path)
Set the path value.
|
MonitorConfig |
withPort(Long port)
Set the port value.
|
MonitorConfig |
withProfileMonitorStatus(ProfileMonitorStatus profileMonitorStatus)
Set the profileMonitorStatus value.
|
MonitorConfig |
withProtocol(MonitorProtocol protocol)
Set the protocol value.
|
MonitorConfig |
withTimeoutInSeconds(Long timeoutInSeconds)
Set the timeoutInSeconds value.
|
MonitorConfig |
withToleratedNumberOfFailures(Long toleratedNumberOfFailures)
Set the toleratedNumberOfFailures value.
|
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 set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/