REST client for DataDog metrics.
Implements: RestClient
Description
The DataDogMetricsClient class allows you to create a REST client for DataDog metrics.
Constructors
Creates an instance of this class.
DataDogMetricsClient(config: ConfigParams = None)
- config: ConfigParams - configuration parameters
Instance methods
configure
Configures the component by passing its configuration parameters.
- 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.
sendMetrics
Sends the given metrics.
sendMetrics(context: Optional[IContext], metrics: DataDogMetric[])
- context: IContext - (optional) a context to trace execution through a call chain.
- messages: List[DataDogMetric] - messages
set_references
Sets references to dependent components.
set_references(references: IReferences)
- references: IReferences - references to locate the component’s dependencies.