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 Details

    • MonitorDefinition

      public MonitorDefinition()
      Creates an instance of MonitorDefinition class.
  • Method Details

    • monitoringTarget

      public MonitoringTarget monitoringTarget()
      Get the monitoringTarget property: The entities targeted by the monitor.
      Returns:
      the monitoringTarget value.
    • withMonitoringTarget

      public MonitorDefinition withMonitoringTarget(MonitoringTarget monitoringTarget)
      Set the monitoringTarget property: The entities targeted by the monitor.
      Parameters:
      monitoringTarget - the monitoringTarget value to set.
      Returns:
      the MonitorDefinition object itself.
    • signals

      public Map<String,MonitoringSignalBase> signals()
      Get the signals property: [Required] The signals to monitor.
      Returns:
      the signals value.
    • withSignals

      public MonitorDefinition withSignals(Map<String,MonitoringSignalBase> signals)
      Set the signals property: [Required] The signals to monitor.
      Parameters:
      signals - the signals value to set.
      Returns:
      the MonitorDefinition object itself.
    • computeConfiguration

      public MonitorComputeConfigurationBase 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

      public MonitorNotificationSettings 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MonitorDefinition>
      Throws:
      IOException
    • fromJson

      public static MonitorDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.