Documentation ¶
Index ¶
Constants ¶
View Source
const (
// BackendName is the name of this backend.
BackendName = "datadog"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a Datadog client.
func NewClient ¶
func NewClient(apiEndpoint, apiKey, userAgent, network string, metricsPerBatch, maxRequests uint, compressPayload, enableHttp2 bool, clientTimeout, maxRequestElapsedTime, flushInterval time.Duration, disabled gostatsd.TimerSubtypes) (*Client, error)
NewClient returns a new Datadog API client.
func (*Client) SendMetricsAsync ¶
func (d *Client) SendMetricsAsync(ctx context.Context, metrics *gostatsd.MetricMap, cb gostatsd.SendCallback)
SendMetricsAsync flushes the metrics to Datadog, preparing payload synchronously but doing the send asynchronously.
Click to show internal directories.
Click to hide internal directories.