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.

public constructor(config?: ConfigParams)

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.

sendMetrics

Sends the given metrics.

public sendMetrics(context: Context, metrics: DataDogMetric[]): Promise<void>

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

setReferences

Sets references to dependent components.

public setReferences(references: IReferences): void

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