Interface ConnectionMonitor
- All Superinterfaces:
HasId,HasInnerModel<ConnectionMonitorResultInner>,HasName,Indexable
public interface ConnectionMonitor
extends HasInnerModel<ConnectionMonitorResultInner>, HasName, HasId, Indexable
Client-side representation of Connection Monitor object, associated with Network Watcher.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the connection monitor definition.static interfaceGrouping of connection monitor definition stages. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if the connection monitor will start automatically once created.Gets the destination property.location()Gets connection monitor location.intGets monitoring interval in seconds.Gets the monitoring status of the connection monitor.Gets the provisioning state of the connection monitor.query()Query a snapshot of the most recent connection state of a connection monitor.Query a snapshot of the most recent connection state of a connection monitor asynchronously.source()Gets the source property.voidstart()Starts a specified connection monitor.Starts a specified connection monitor asynchronously.Gets the date and time when the connection monitor was started.voidstop()Stops a specified connection monitor.Stops a specified connection monitor asynchronously.tags()Gets connection monitor tags.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
Method Details
-
location
String location()Gets connection monitor location.- Returns:
- connection monitor location
-
tags
Gets connection monitor tags.- Returns:
- connection monitor tags
-
source
ConnectionMonitorSource source()Gets the source property.- Returns:
- the source property
-
destination
ConnectionMonitorDestination destination()Gets the destination property.- Returns:
- the destination property
-
autoStart
boolean autoStart()Determines if the connection monitor will start automatically once created.- Returns:
- true if the connection monitor will start automatically once created, false otherwise
-
provisioningState
ProvisioningState provisioningState()Gets the provisioning state of the connection monitor.- Returns:
- the provisioning state of the connection monitor
-
startTime
OffsetDateTime startTime()Gets the date and time when the connection monitor was started.- Returns:
- the date and time when the connection monitor was started
-
monitoringStatus
String monitoringStatus()Gets the monitoring status of the connection monitor.- Returns:
- the monitoring status of the connection monitor
-
monitoringIntervalInSeconds
int monitoringIntervalInSeconds()Gets monitoring interval in seconds.- Returns:
- monitoring interval in seconds
-
stop
void stop()Stops a specified connection monitor. -
stopAsync
Stops a specified connection monitor asynchronously.- Returns:
- the handle to the REST call
-
start
void start()Starts a specified connection monitor. -
startAsync
Starts a specified connection monitor asynchronously.- Returns:
- the handle to the REST call
-
query
ConnectionMonitorQueryResult query()Query a snapshot of the most recent connection state of a connection monitor.- Returns:
- snapshot of the most recent connection state
-
queryAsync
Mono<ConnectionMonitorQueryResult> queryAsync()Query a snapshot of the most recent connection state of a connection monitor asynchronously.- Returns:
- snapshot of the most recent connection state
-