DataDogMetricsClient

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)

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.

sendMetrics

Sends the given metrics.

sendMetrics(correlation_id: Optional[str], metrics: DataDogMetric[])

  • correlation_id: Optional[str] - (optional) transaction id used to trace execution through the 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.