DataDogMetricsClient

REST client for DataDog metrics.

Inherits: RestClient

Description

The DataDogMetricsClient class is used to create REST clients for DataDog metrics.

Constructors

Creates an instance of this class.

public DataDogMetricsClient(ConfigParams config = null)

Instance methods

Configure

Configures the component by passing its configuration parameters.

public override void Configure(ConfigParams config)

  • config: ConfigParams - configuration parameters to be set.

OpenAsync

Opens the component.

public override async Task OpenAsync(string correlationId)

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

SendMetricsAsync

Sends the given metrics.

public Task SendMetricsAsync(string correlationId, IEnumerable<DataDogMetric> metrics)

  • correlationId: string - (optional) transaction id used to trace execution through the call chain.
  • messages: IEnumerable<DataDogMetric> - messages

SetReferences

Sets references to dependent components.

public override void SetReferences(IReferences references)

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