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>

public final class CustomMonitoringSignal extends MonitoringSignalBase
The CustomMonitoringSignal model.
  • Constructor Details

    • CustomMonitoringSignal

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

    • signalType

      public MonitoringSignalType signalType()
      Get the signalType property: [Required] Specifies the type of signal to monitor.
      Overrides:
      signalType in class MonitoringSignalBase
      Returns:
      the signalType value.
    • inputAssets

      public Map<String,MonitoringInputDataBase> 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

      public CustomMonitoringSignal withInputAssets(Map<String,MonitoringInputDataBase> inputAssets)
      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

      public Map<String,JobInput> 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

      public CustomMonitoringSignal withInputs(Map<String,JobInput> inputs)
      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

      public String componentId()
      Get the componentId property: [Required] Reference to the component asset used to calculate the custom metrics.
      Returns:
      the componentId value.
    • withComponentId

      public CustomMonitoringSignal withComponentId(String componentId)
      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

      public List<CustomMetricThreshold> metricThresholds()
      Get the metricThresholds property: [Required] A list of metrics to calculate and their associated thresholds.
      Returns:
      the metricThresholds value.
    • withMetricThresholds

      public CustomMonitoringSignal withMetricThresholds(List<CustomMetricThreshold> metricThresholds)
      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:
      withNotificationTypes in class MonitoringSignalBase
      Parameters:
      notificationTypes - the notificationTypes value to set.
      Returns:
      the MonitoringSignalBase object itself.
    • withProperties

      public CustomMonitoringSignal withProperties(Map<String,String> properties)
      Set the properties property: Property dictionary. Properties can be added, but not removed or altered.
      Overrides:
      withProperties in class MonitoringSignalBase
      Parameters:
      properties - the properties value to set.
      Returns:
      the MonitoringSignalBase object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MonitoringSignalBase
      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<MonitoringSignalBase>
      Overrides:
      toJson in class MonitoringSignalBase
      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.