DataDogLogClient

REST client for DataDog logs.

Extends: RestClient

Description

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

Constructors

Creates a new instance of this class.

public constructor(config?: ConfigParams)

Instance methods

configure

Configures the component by passing its configuration parameters.

public configure(config: ConfigParams): void

  • config: ConfigParams - configuration parameters to be set.

open

Opens the component.

public open(correlationId: string): Promise<void>

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

sendLogs

Sends log messages.

public sendLogs(correlationId: string, messages: DataDogLogMessage[]): Promise<void>

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

setReferences

Sets references to dependent components.

public setReferences(references: IReferences): void

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