DataDogLogClient

REST client for DataDog logs.

Inherits: RestClient

Description

The DataDogLogClient class allows you to create a REST client for DataDog logs.

Constructors

Creates a new instance of this class.

public DataDogLogClient(ConfigParams config = null)

Instance methods

Configure

Configures the component by passing its configuration parameters.

public override void Configure(ConfigParams config)

  • config: ConfigParams - configuration parameters to be set.

OpenAsync

Opens the component.

public override Task OpenAsync(string correlationId)

  • correlationId: string - (optional) transaction id used to trace execution through the call chain.

SendLogs

Sends log messages.

public Task SendLogsAsync(string correlationId, IEnumerable<DataDogLogMessage> messages)

  • correlationId: string - (optional) transaction id used to trace execution through the call chain.
  • messages: IEnumerable<DataDogLogMessage> - messages to send.

SetReferences

Sets references to dependent components.

public override void SetReferences(IReferences references)

  • references: IReferences - references to locate the component’s dependencies.