Documentation
¶
Index ¶
Constants ¶
View Source
const (
ProviderType = "Datadog"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.9.8
type Option func(*Provider)
func WithAddress ¶ added in v0.9.8
func WithLogger ¶ added in v0.9.8
func WithTimeout ¶ added in v0.9.8
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider works as an HTTP client for datadog.
func NewProvider ¶
func (*Provider) Evaluate ¶ added in v0.9.8
func (p *Provider) Evaluate(ctx context.Context, query string, queryRange metrics.QueryRange, evaluator metrics.Evaluator) (bool, string, error)
Evaluate issues an HTTP request to the API named "MetricsApi.QueryMetrics", then evaluate its response. See more: https://docs.datadoghq.com/api/latest/metrics/#query-timeseries-points
Click to show internal directories.
Click to hide internal directories.