DataDogLogClient

REST client for DataDog logs.

Implements: RestClient

Description

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

Constructors

Creates a new instance of this class.

DataDogLogClient(config: ConfigParams = None)

Instance methods

configure

Configures the component by passing its configuration parameters.

configure(config: ConfigParams)

  • config: ConfigParams - configuration parameters to be set.

open

Opens the component.

open(correlation_id: Optional[str])

  • correlation_id: Optional[str] - (optional) transaction id used to trace execution through the call chain.

send_logs

Sends log messages.

send_logs(correlation_id: Optional[str], messages: List[DataDogLogMessage]): Any

  • correlation_id: Optional[str] - (optional) transaction id used to trace execution through the call chain.
  • messages: List[DataDogLogMessage] - messages to send.
  • returns: Any - result of request.

set_references

Sets references to dependent components.

set_references(references: IReferences)

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