Lingua

ArmMachineLearningModelFactory.DataCollector Method

Definition

public static Azure.ResourceManager.MachineLearning.Models.DataCollector DataCollector(System.Collections.Generic.IDictionary<string,Azure.ResourceManager.MachineLearning.Models.DataCollectionConfiguration> collections = default, System.Collections.Generic.IEnumerable<string> requestLoggingCaptureHeaders = default, Azure.ResourceManager.MachineLearning.Models.RollingRateType? rollingRate = default);
static member DataCollector : System.Collections.Generic.IDictionary<string, Azure.ResourceManager.MachineLearning.Models.DataCollectionConfiguration> * seq<string> * Nullable<Azure.ResourceManager.MachineLearning.Models.RollingRateType> -> Azure.ResourceManager.MachineLearning.Models.DataCollector
Public Shared Function DataCollector (Optional collections As IDictionary(Of String, DataCollectionConfiguration) = Nothing, Optional requestLoggingCaptureHeaders As IEnumerable(Of String) = Nothing, Optional rollingRate As Nullable(Of RollingRateType) = Nothing) As DataCollector

Parameters

collections
IDictionary<String,DataCollectionConfiguration>

[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
IEnumerable<String>

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
Nullable<RollingRateType>

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

A new DataCollector instance for mocking.

Applies to