Class MonitoringTarget

java.lang.Object
com.azure.resourcemanager.machinelearning.models.MonitoringTarget
All Implemented Interfaces:
com.azure.json.JsonSerializable<MonitoringTarget>

public final class MonitoringTarget extends Object implements com.azure.json.JsonSerializable<MonitoringTarget>
Monitoring target definition.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of MonitoringTarget class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the deploymentId property: Reference to the deployment asset targeted by this monitor.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of MonitoringTarget from the JsonReader.
    Get the modelId property: Reference to the model asset targeted by this monitor.
    Get the taskType property: [Required] The machine learning task type of the monitored model.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withDeploymentId(String deploymentId)
    Set the deploymentId property: Reference to the deployment asset targeted by this monitor.
    Set the modelId property: Reference to the model asset targeted by this monitor.
    Set the taskType property: [Required] The machine learning task type of the monitored model.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • MonitoringTarget

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

    • modelId

      public String modelId()
      Get the modelId property: Reference to the model asset targeted by this monitor.
      Returns:
      the modelId value.
    • withModelId

      public MonitoringTarget withModelId(String modelId)
      Set the modelId property: Reference to the model asset targeted by this monitor.
      Parameters:
      modelId - the modelId value to set.
      Returns:
      the MonitoringTarget object itself.
    • deploymentId

      public String deploymentId()
      Get the deploymentId property: Reference to the deployment asset targeted by this monitor.
      Returns:
      the deploymentId value.
    • withDeploymentId

      public MonitoringTarget withDeploymentId(String deploymentId)
      Set the deploymentId property: Reference to the deployment asset targeted by this monitor.
      Parameters:
      deploymentId - the deploymentId value to set.
      Returns:
      the MonitoringTarget object itself.
    • taskType

      public ModelTaskType taskType()
      Get the taskType property: [Required] The machine learning task type of the monitored model.
      Returns:
      the taskType value.
    • withTaskType

      public MonitoringTarget withTaskType(ModelTaskType taskType)
      Set the taskType property: [Required] The machine learning task type of the monitored model.
      Parameters:
      taskType - the taskType value to set.
      Returns:
      the MonitoringTarget 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<MonitoringTarget>
      Throws:
      IOException
    • fromJson

      public static MonitoringTarget fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MonitoringTarget from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MonitoringTarget 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 MonitoringTarget.