Share via


DataCollector Class

Definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.DataCollectorTypeConverter))]
public class DataCollector : Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.IDataCollector
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.DataCollectorTypeConverter))>]
type DataCollector = class
    interface IDataCollector
    interface IJsonSerializable
Public Class DataCollector
Implements IDataCollector
Inheritance
DataCollector
Attributes
Implements

Constructors

DataCollector()

Creates an new DataCollector instance.

Properties

Collection

[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.

RequestLoggingCaptureHeader

For payload logging, we only collect payload by default. If customers also want to collect the specified headers, they can set them in captureHeaders so that backend will collect those headers along with payload.

RollingRate

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.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of DataCollector.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of DataCollector.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20240401.IDataCollector.

FromJsonString(String)

Creates a new instance of DataCollector, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of DataCollector into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to