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(correlationId: string): Promise<void>

  • correlationId: string - (optional) transaction id used to trace execution through the call chain.

sendMetrics

Sends the given metrics.

public sendMetrics(correlationId: string, metrics: DataDogMetric[]): Promise<void>

  • correlationId: string - (optional) transaction id used to trace execution through the 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.