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

public final class DataCollector extends Object implements com.azure.json.JsonSerializable<DataCollector>
The DataCollector model.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the collections property: [Required] The collection configuration.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of DataCollector from the JsonReader.
    Get the requestLogging property: The request logging configuration for mdc, it includes advanced logging settings for all collections.
    Get the rollingRate property: When model data is collected to blob storage, we need to roll the data to different path to avoid logging all of them in a single blob file.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the collections property: [Required] The collection configuration.
    Set the requestLogging property: The request logging configuration for mdc, it includes advanced logging settings for all collections.
    Set the rollingRate property: When model data is collected to blob storage, we need to roll the data to different path to avoid logging all of them in a single blob file.

    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

    • DataCollector

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

    • collections

      public Map<String,Collection> collections()
      Get the collections property: [Required] The collection configuration. Each collection has it own configuration to collect model data and the name of collection can be arbitrary string. Model data collector can be used for either payload logging or custom logging or both of them. Collection request and response are reserved for payload logging, others are for custom logging.
      Returns:
      the collections value.
    • withCollections

      public DataCollector withCollections(Map<String,Collection> collections)
      Set the collections property: [Required] The collection configuration. Each collection has it own configuration to collect model data and the name of collection can be arbitrary string. Model data collector can be used for either payload logging or custom logging or both of them. Collection request and response are reserved for payload logging, others are for custom logging.
      Parameters:
      collections - the collections value to set.
      Returns:
      the DataCollector object itself.
    • rollingRate

      public RollingRateType rollingRate()
      Get the rollingRate property: When model data is collected to blob storage, we need to roll the data to different path to avoid logging all of them in a single blob file. If the rolling rate is hour, all data will be collected in the blob path /yyyy/MM/dd/HH/. If it's day, all data will be collected in blob path /yyyy/MM/dd/. The other benefit of rolling path is that model monitoring ui is able to select a time range of data very quickly.
      Returns:
      the rollingRate value.
    • withRollingRate

      public DataCollector withRollingRate(RollingRateType rollingRate)
      Set the rollingRate property: When model data is collected to blob storage, we need to roll the data to different path to avoid logging all of them in a single blob file. If the rolling rate is hour, all data will be collected in the blob path /yyyy/MM/dd/HH/. If it's day, all data will be collected in blob path /yyyy/MM/dd/. The other benefit of rolling path is that model monitoring ui is able to select a time range of data very quickly.
      Parameters:
      rollingRate - the rollingRate value to set.
      Returns:
      the DataCollector object itself.
    • requestLogging

      public RequestLogging requestLogging()
      Get the requestLogging property: The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional.
      Returns:
      the requestLogging value.
    • withRequestLogging

      public DataCollector withRequestLogging(RequestLogging requestLogging)
      Set the requestLogging property: The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional.
      Parameters:
      requestLogging - the requestLogging value to set.
      Returns:
      the DataCollector 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<DataCollector>
      Throws:
      IOException
    • fromJson

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