语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

OtelLogsDirectDataSource Class

Definition

The OtelLogsDirectDataSource.

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

Constructors

Name Description
OtelLogsDirectDataSource(IEnumerable<KnownOtelLogsDirectDataSourceStreams>)

Initializes a new instance of OtelLogsDirectDataSource.

Properties

Name Description
EnrichWithReference

Specifies the reference 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.

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<OtelLogsDirectDataSource>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<OtelLogsDirectDataSource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<OtelLogsDirectDataSource>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<OtelLogsDirectDataSource>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<OtelLogsDirectDataSource>.Write(ModelReaderWriterOptions)

Applies to