ArmMonitorModelFactory.OtelLogsDataSource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables Otel logs to be collected by this data collection rule.
public static Azure.ResourceManager.Monitor.Models.OtelLogsDataSource OtelLogsDataSource(System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.KnownOtelLogsDataSourceStreams> streams = default, Azure.ResourceManager.Monitor.Models.OtelLogsDataSourceResourceAttributeRouting resourceAttributeRouting = default, System.Collections.Generic.IEnumerable<string> enrichWithResourceAttributes = default, string enrichWithReference = default, bool? shouldReplaceResourceIdWithReference = default, string name = default);
static member OtelLogsDataSource : seq<Azure.ResourceManager.Monitor.Models.KnownOtelLogsDataSourceStreams> * Azure.ResourceManager.Monitor.Models.OtelLogsDataSourceResourceAttributeRouting * seq<string> * string * Nullable<bool> * string -> Azure.ResourceManager.Monitor.Models.OtelLogsDataSource
Public Shared Function OtelLogsDataSource (Optional streams As IEnumerable(Of KnownOtelLogsDataSourceStreams) = Nothing, Optional resourceAttributeRouting As OtelLogsDataSourceResourceAttributeRouting = 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 OtelLogsDataSource
Parameters
List of streams that this data source will be sent to.
- resourceAttributeRouting
- OtelLogsDataSourceResourceAttributeRouting
Specifies the routing policy based on OTLP payload resource attributes to route subset of the payload according to matching resource attribute.
- 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 alias to enrich the telemetry signal with.
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 OtelLogsDataSource instance for mocking.