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 -
Method Summary
Modifier and TypeMethodDescriptionGet the deploymentId property: Reference to the deployment asset targeted by this monitor.static MonitoringTargetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MonitoringTarget from the JsonReader.modelId()Get the modelId property: Reference to the model asset targeted by this monitor.taskType()Get the taskType property: [Required] The machine learning task type of the monitored model.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDeploymentId(String deploymentId) Set the deploymentId property: Reference to the deployment asset targeted by this monitor.withModelId(String modelId) Set the modelId property: Reference to the model asset targeted by this monitor.withTaskType(ModelTaskType taskType) 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, waitMethods 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
Get the modelId property: Reference to the model asset targeted by this monitor.- Returns:
- the modelId value.
-
withModelId
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
Get the deploymentId property: Reference to the deployment asset targeted by this monitor.- Returns:
- the deploymentId value.
-
withDeploymentId
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
Get the taskType property: [Required] The machine learning task type of the monitored model.- Returns:
- the taskType value.
-
withTaskType
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MonitoringTarget>- Throws:
IOException
-
fromJson
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.
-