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(IContext context)

  • context: IContext - (optional) a context to trace execution through a call chain.

SendLogs

Sends log messages.

public Task SendLogsAsync(IContext context, IEnumerable<DataDogLogMessage> messages)

  • context: IContext - (optional) a context to trace execution through a 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.