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(context: Optional[IContext])

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

send_logs

Sends log messages.

send_logs(context: Optional[IContext], messages: List[DataDogLogMessage]): Any

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