MonitorConfig Class

  • java.lang.Object
    • com.microsoft.azure.management.trafficmanager.MonitorConfig

public class MonitorConfig

Class containing endpoint monitoring settings in a Traffic Manager profile.

Method Summary

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.

Method Details

intervalInSeconds

public Long intervalInSeconds()

Get the intervalInSeconds value.

Returns:

the intervalInSeconds value

path

public String path()

Get the path value.

Returns:

the path value

port

public Long port()

Get the port value.

Returns:

the port value

profileMonitorStatus

public ProfileMonitorStatus profileMonitorStatus()

Get the profileMonitorStatus value.

Returns:

the profileMonitorStatus value

protocol

public MonitorProtocol protocol()

Get the protocol value.

Returns:

the protocol value

timeoutInSeconds

public Long timeoutInSeconds()

Get the timeoutInSeconds value.

Returns:

the timeoutInSeconds value

toleratedNumberOfFailures

public Long toleratedNumberOfFailures()

Get the toleratedNumberOfFailures value.

Returns:

the toleratedNumberOfFailures value

withIntervalInSeconds

public MonitorConfig withIntervalInSeconds(Long intervalInSeconds)

Set the intervalInSeconds value.

Parameters:

intervalInSeconds - the intervalInSeconds value to set

Returns:

the MonitorConfig object itself.

withPath

public MonitorConfig withPath(String path)

Set the path value.

Parameters:

path - the path value to set

Returns:

the MonitorConfig object itself.

withPort

public MonitorConfig withPort(Long port)

Set the port value.

Parameters:

port - the port value to set

Returns:

the MonitorConfig object itself.

withProfileMonitorStatus

public MonitorConfig withProfileMonitorStatus(ProfileMonitorStatus profileMonitorStatus)

Set the profileMonitorStatus value.

Parameters:

profileMonitorStatus - the profileMonitorStatus value to set

Returns:

the MonitorConfig object itself.

withProtocol

public MonitorConfig withProtocol(MonitorProtocol protocol)

Set the protocol value.

Parameters:

protocol - the protocol value to set

Returns:

the MonitorConfig object itself.

withTimeoutInSeconds

public MonitorConfig withTimeoutInSeconds(Long timeoutInSeconds)

Set the timeoutInSeconds value.

Parameters:

timeoutInSeconds - the timeoutInSeconds value to set

Returns:

the MonitorConfig object itself.

withToleratedNumberOfFailures

public MonitorConfig withToleratedNumberOfFailures(Long toleratedNumberOfFailures)

Set the toleratedNumberOfFailures value.

Parameters:

toleratedNumberOfFailures - the toleratedNumberOfFailures value to set

Returns:

the MonitorConfig object itself.

Applies to