Share via


DataCollector Class

Definition

The DataCollector.

public class DataCollector : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.MachineLearning.Models.DataCollector>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.MachineLearning.Models.DataCollector>
public class DataCollector
type DataCollector = class
    interface IJsonModel<DataCollector>
    interface IPersistableModel<DataCollector>
type DataCollector = class
Public Class DataCollector
Implements IJsonModel(Of DataCollector), IPersistableModel(Of DataCollector)
Public Class DataCollector
Inheritance
DataCollector
Implements

Constructors

DataCollector(IDictionary<String,DataCollectionConfiguration>)

Initializes a new instance of DataCollector.

Properties

Collections

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

RequestLoggingCaptureHeaders

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.

Explicit Interface Implementations

IJsonModel<DataCollector>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DataCollector>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataCollector>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DataCollector>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DataCollector>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to