Class CustomMonitoringSignal
java.lang.Object
com.azure.resourcemanager.machinelearning.models.MonitoringSignalBase
com.azure.resourcemanager.machinelearning.models.CustomMonitoringSignal
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MonitoringSignalBase>
The CustomMonitoringSignal model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomMonitoringSignal class. -
Method Summary
Modifier and TypeMethodDescriptionGet the componentId property: [Required] Reference to the component asset used to calculate the custom metrics.static CustomMonitoringSignalfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomMonitoringSignal from the JsonReader.Get the inputAssets property: Monitoring assets to take as input.inputs()Get the inputs property: Extra component parameters to take as input.Get the metricThresholds property: [Required] A list of metrics to calculate and their associated thresholds.Get the signalType property: [Required] Specifies the type of signal to monitor.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withComponentId(String componentId) Set the componentId property: [Required] Reference to the component asset used to calculate the custom metrics.withInputAssets(Map<String, MonitoringInputDataBase> inputAssets) Set the inputAssets property: Monitoring assets to take as input.withInputs(Map<String, JobInput> inputs) Set the inputs property: Extra component parameters to take as input.withMetricThresholds(List<CustomMetricThreshold> metricThresholds) Set the metricThresholds property: [Required] A list of metrics to calculate and their associated thresholds.withNotificationTypes(List<MonitoringNotificationType> notificationTypes) Set the notificationTypes property: The current notification mode for this signal.withProperties(Map<String, String> properties) Set the properties property: Property dictionary.Methods inherited from class com.azure.resourcemanager.machinelearning.models.MonitoringSignalBase
notificationTypes, propertiesMethods 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
-
CustomMonitoringSignal
public CustomMonitoringSignal()Creates an instance of CustomMonitoringSignal class.
-
-
Method Details
-
signalType
Get the signalType property: [Required] Specifies the type of signal to monitor.- Overrides:
signalTypein classMonitoringSignalBase- Returns:
- the signalType value.
-
inputAssets
Get the inputAssets property: Monitoring assets to take as input. Key is the component input port name, value is the data asset.- Returns:
- the inputAssets value.
-
withInputAssets
Set the inputAssets property: Monitoring assets to take as input. Key is the component input port name, value is the data asset.- Parameters:
inputAssets- the inputAssets value to set.- Returns:
- the CustomMonitoringSignal object itself.
-
inputs
Get the inputs property: Extra component parameters to take as input. Key is the component literal input port name, value is the parameter value.- Returns:
- the inputs value.
-
withInputs
Set the inputs property: Extra component parameters to take as input. Key is the component literal input port name, value is the parameter value.- Parameters:
inputs- the inputs value to set.- Returns:
- the CustomMonitoringSignal object itself.
-
componentId
Get the componentId property: [Required] Reference to the component asset used to calculate the custom metrics.- Returns:
- the componentId value.
-
withComponentId
Set the componentId property: [Required] Reference to the component asset used to calculate the custom metrics.- Parameters:
componentId- the componentId value to set.- Returns:
- the CustomMonitoringSignal object itself.
-
metricThresholds
Get the metricThresholds property: [Required] A list of metrics to calculate and their associated thresholds.- Returns:
- the metricThresholds value.
-
withMetricThresholds
Set the metricThresholds property: [Required] A list of metrics to calculate and their associated thresholds.- Parameters:
metricThresholds- the metricThresholds value to set.- Returns:
- the CustomMonitoringSignal object itself.
-
withNotificationTypes
public CustomMonitoringSignal withNotificationTypes(List<MonitoringNotificationType> notificationTypes) Set the notificationTypes property: The current notification mode for this signal.- Overrides:
withNotificationTypesin classMonitoringSignalBase- Parameters:
notificationTypes- the notificationTypes value to set.- Returns:
- the MonitoringSignalBase object itself.
-
withProperties
Set the properties property: Property dictionary. Properties can be added, but not removed or altered.- Overrides:
withPropertiesin classMonitoringSignalBase- Parameters:
properties- the properties value to set.- Returns:
- the MonitoringSignalBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMonitoringSignalBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MonitoringSignalBase>- Overrides:
toJsonin classMonitoringSignalBase- Throws:
IOException
-
fromJson
public static CustomMonitoringSignal fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CustomMonitoringSignal from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomMonitoringSignal 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 CustomMonitoringSignal.
-