Documentation
¶
Index ¶
- type Datadog
- func (dd *Datadog) CanHandleSelector(labels entities.Selector) bool
- func (dd *Datadog) ComputeObjective(o *entities.Objective, from time.Time, to time.Time) (*entities.Indicator, error)
- func (dd *Datadog) ComputeSloFromQueryMetrics(ctx context.Context, query, agg string, from time.Time, to time.Time) (slo float64, err error)
- func (dd *Datadog) GetSLOHistory(sloId string, from time.Time, to time.Time, target float64) (datadog.SLOHistoryResponse, error)
- func (dd *Datadog) ListDatadogSLOs(ctx context.Context) (datadog.SLOListResponse, error)
- func (dd *Datadog) ResourceFromSelector(labels entities.Selector) string
- func (dd *Datadog) RunQueryMetrics(ctx context.Context, query string, from time.Time, to time.Time) (Pointlist, error)
- type Pointlist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datadog ¶
func NewDatadog ¶
NewDatadog currently needs a service account configured or gcloud auth within same session to function
func (*Datadog) CanHandleSelector ¶
CanHandleSelector returns true only if both datadog queries are defined
func (*Datadog) ComputeObjective ¶
func (*Datadog) ComputeSloFromQueryMetrics ¶ added in v0.42.1
func (*Datadog) GetSLOHistory ¶ added in v0.42.1
func (*Datadog) ListDatadogSLOs ¶ added in v0.42.1
func (*Datadog) ResourceFromSelector ¶
No resource identifier can be found, this is part of DD env vars as we are running queries to datadog api
Click to show internal directories.
Click to hide internal directories.