Language

ArmMonitorModelFactory.OtelLogsDirectDataSource Method

Definition

The OtelLogsDirectDataSource.

public static Azure.ResourceManager.Monitor.Models.OtelLogsDirectDataSource OtelLogsDirectDataSource(System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.KnownOtelLogsDirectDataSourceStreams> streams = default, System.Collections.Generic.IEnumerable<string> enrichWithResourceAttributes = default, string enrichWithReference = default, bool? shouldReplaceResourceIdWithReference = default, string name = default);
static member OtelLogsDirectDataSource : seq<Azure.ResourceManager.Monitor.Models.KnownOtelLogsDirectDataSourceStreams> * seq<string> * string * Nullable<bool> * string -> Azure.ResourceManager.Monitor.Models.OtelLogsDirectDataSource
Public Shared Function OtelLogsDirectDataSource (Optional streams As IEnumerable(Of KnownOtelLogsDirectDataSourceStreams) = Nothing, Optional enrichWithResourceAttributes As IEnumerable(Of String) = Nothing, Optional enrichWithReference As String = Nothing, Optional shouldReplaceResourceIdWithReference As Nullable(Of Boolean) = Nothing, Optional name As String = Nothing) As OtelLogsDirectDataSource

Parameters

streams
IEnumerable<KnownOtelLogsDirectDataSourceStreams>

List of streams that this data source will be sent to.

enrichWithResourceAttributes
IEnumerable<String>

Specifies the list of resource attributes that need to be added as labels/dimensions to the telemetry data for further enrichment.

enrichWithReference
String

Specifies the reference to enrich the telemetry signal with.

shouldReplaceResourceIdWithReference
Nullable<Boolean>

Specifies whether to replace the default resourceId in the log record with the resourceId of the referenced resource being used for enrichment.

name
String

A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.

Returns

A new OtelLogsDirectDataSource instance for mocking.

Applies to