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.
DataDogLogClient(ConfigParams? config) : super()
- config: ConfigParams - configuration parameters.
Instance methods
configure
Configures the component by passing its configuration parameters.
void configure(ConfigParams config)
- 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.
Future sendLogs(IContext? context, List<DataDogLogMessage[]> messages) async
- context: IContext - (optional) a context to trace execution through a call chain.
- messages: DataDogLogMessage[] - messages to send.
setReferences
Sets references to dependent components.
void setReferences(IReferences references)
- references: IReferences - references to locate the component’s dependencies.