MonitoringTarget Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.MonitoringTarget

Implements

public final class MonitoringTarget
implements JsonSerializable<MonitoringTarget>

Monitoring target definition.

Constructor Summary

Constructor Description
MonitoringTarget()

Creates an instance of MonitoringTarget class.

Method Summary

Modifier and Type Method and Description
String deploymentId()

Get the deploymentId property: Reference to the deployment asset targeted by this monitor.

static MonitoringTarget fromJson(JsonReader jsonReader)

Reads an instance of MonitoringTarget from the JsonReader.

String modelId()

Get the modelId property: Reference to the model asset targeted by this monitor.

ModelTaskType taskType()

Get the taskType property: [Required] The machine learning task type of the monitored model.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MonitoringTarget withDeploymentId(String deploymentId)

Set the deploymentId property: Reference to the deployment asset targeted by this monitor.

MonitoringTarget withModelId(String modelId)

Set the modelId property: Reference to the model asset targeted by this monitor.

MonitoringTarget withTaskType(ModelTaskType taskType)

Set the taskType property: [Required] The machine learning task type of the monitored model.

Methods inherited from java.lang.Object

Constructor Details

MonitoringTarget

public MonitoringTarget()

Creates an instance of MonitoringTarget class.

Method Details

deploymentId

public String deploymentId()

Get the deploymentId property: Reference to the deployment asset targeted by this monitor.

Returns:

the deploymentId value.

fromJson

public static MonitoringTarget fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

modelId

public String modelId()

Get the modelId property: Reference to the model asset targeted by this monitor.

Returns:

the modelId value.

taskType

public ModelTaskType taskType()

Get the taskType property: [Required] The machine learning task type of the monitored model.

Returns:

the taskType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to