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(IContext context)

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

SendMetricsAsync

Sends the given metrics.

public Task SendMetricsAsync(IContext context, IEnumerable<DataDogMetric> metrics)

  • context: IContext - (optional) a context to trace execution through a 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.