Class MonitorDefinition
java.lang.Object
com.azure.resourcemanager.machinelearning.models.MonitorDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MonitorDefinition>
public final class MonitorDefinition
extends Object
implements com.azure.json.JsonSerializable<MonitorDefinition>
The MonitorDefinition model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the alertNotificationSettings property: The monitor's notification settings.Get the computeConfiguration property: [Required] The ARM resource ID of the compute resource to run the monitoring job on.static MonitorDefinitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MonitorDefinition from the JsonReader.Get the monitoringTarget property: The entities targeted by the monitor.signals()Get the signals property: [Required] The signals to monitor.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAlertNotificationSettings(MonitorNotificationSettings alertNotificationSettings) Set the alertNotificationSettings property: The monitor's notification settings.withComputeConfiguration(MonitorComputeConfigurationBase computeConfiguration) Set the computeConfiguration property: [Required] The ARM resource ID of the compute resource to run the monitoring job on.withMonitoringTarget(MonitoringTarget monitoringTarget) Set the monitoringTarget property: The entities targeted by the monitor.withSignals(Map<String, MonitoringSignalBase> signals) Set the signals property: [Required] The signals to monitor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MonitorDefinition
public MonitorDefinition()Creates an instance of MonitorDefinition class.
-
-
Method Details
-
monitoringTarget
Get the monitoringTarget property: The entities targeted by the monitor.- Returns:
- the monitoringTarget value.
-
withMonitoringTarget
Set the monitoringTarget property: The entities targeted by the monitor.- Parameters:
monitoringTarget- the monitoringTarget value to set.- Returns:
- the MonitorDefinition object itself.
-
signals
Get the signals property: [Required] The signals to monitor.- Returns:
- the signals value.
-
withSignals
Set the signals property: [Required] The signals to monitor.- Parameters:
signals- the signals value to set.- Returns:
- the MonitorDefinition object itself.
-
computeConfiguration
Get the computeConfiguration property: [Required] The ARM resource ID of the compute resource to run the monitoring job on.- Returns:
- the computeConfiguration value.
-
withComputeConfiguration
public MonitorDefinition withComputeConfiguration(MonitorComputeConfigurationBase computeConfiguration) Set the computeConfiguration property: [Required] The ARM resource ID of the compute resource to run the monitoring job on.- Parameters:
computeConfiguration- the computeConfiguration value to set.- Returns:
- the MonitorDefinition object itself.
-
alertNotificationSettings
Get the alertNotificationSettings property: The monitor's notification settings.- Returns:
- the alertNotificationSettings value.
-
withAlertNotificationSettings
public MonitorDefinition withAlertNotificationSettings(MonitorNotificationSettings alertNotificationSettings) Set the alertNotificationSettings property: The monitor's notification settings.- Parameters:
alertNotificationSettings- the alertNotificationSettings value to set.- Returns:
- the MonitorDefinition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MonitorDefinition>- Throws:
IOException
-
fromJson
Reads an instance of MonitorDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MonitorDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the MonitorDefinition.
-