Class DataCollector
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 -
Method Summary
Modifier and TypeMethodDescriptionGet the collections property: [Required] The collection configuration.static DataCollectorfromJson(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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCollections(Map<String, Collection> collections) Set the collections property: [Required] The collection configuration.withRequestLogging(RequestLogging requestLogging) Set the requestLogging property: The request logging configuration for mdc, it includes advanced logging settings for all collections.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.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
-
DataCollector
public DataCollector()Creates an instance of DataCollector class.
-
-
Method Details
-
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
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
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
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
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
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DataCollector>- Throws:
IOException
-
fromJson
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.
-