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)
- config: ConfigParams - configuration parameters.
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(context: IContext): Promise<void>
- context: IContext - (optional) a context to trace execution through a call chain.
sendLogs
Sends log messages.
public
sendLogs(context: IContext, messages: DataDogLogMessage[]): Promise<void>
- context: IContext - (optional) a context to trace execution through a 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.