Language

OtelLogsDataSource Class

Definition

Enables Otel logs to be collected by this data collection rule.

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

Constructors

Name Description
OtelLogsDataSource(IEnumerable<KnownOtelLogsDataSourceStreams>)

Initializes a new instance of OtelLogsDataSource.

Properties

Name Description
EnrichWithReference

Specifies the reference alias to enrich the telemetry signal with.

EnrichWithResourceAttributes

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

Name

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

ResourceAttributeRouting

Specifies the routing policy based on OTLP payload resource attributes to route subset of the payload according to matching resource attribute.

ShouldReplaceResourceIdWithReference

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

Streams

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

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<OtelLogsDataSource>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<OtelLogsDataSource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<OtelLogsDataSource>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<OtelLogsDataSource>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<OtelLogsDataSource>.Write(ModelReaderWriterOptions)

Applies to