DataDogMetricsClient

REST client for DataDog metrics.

Extends: RestClient

Description

The DataDogMetricsClient class allows you to create a REST client for DataDog metrics.

Constructors

Creates an instance of this class.

DataDogMetricsClient(ConfigParams? config) : super()

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.

Future open(IContext? context) async

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

sendMetrics

Sends the given metrics.

Future sendMetrics(IContext? context, List metrics) async

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

setReferences

Sets references to dependent components.

void setReferences(IReferences references)

  • references: IReferences - references to locate the component’s dependencies.