datadog

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSloFromQueryMetrics

func ComputeSloFromQueryMetrics(numerator_query string, denominator_query string, from time.Time, to time.Time) (float64, error)

func GetSLOHistory

func GetSLOHistory(sloId string, from time.Time, to time.Time, target float64) (datadog.SLOHistoryResponse, error)

func ListDatadogSLOs

func ListDatadogSLOs() (datadog.SLOListResponse, error)

func ValidateApiKey

func ValidateApiKey() (bool, error)

Types

type Datadog

type Datadog struct {
}

func NewDatadog

func NewDatadog() (*Datadog, error)

NewGCP currently needs a service account configured or gcloud auth within same session to function

func (*Datadog) CanHandleSelector

func (dd *Datadog) CanHandleSelector(labels entities.Selector) bool

CanHandleSelector returns true only if both datadog queries are defined

func (*Datadog) Close

func (dd *Datadog) Close() error

Nothing to do for Datadog...

func (*Datadog) ComputeObjective

func (dd *Datadog) ComputeObjective(o *entities.Objective, from time.Time, to time.Time) (*entities.Indicator, error)

func (*Datadog) ResourceFromSelector

func (dd *Datadog) ResourceFromSelector(labels entities.Selector) string

No resource identifier can be found, this is part of DD env vars as we are running queries to datadog api

type Pointlist

type Pointlist *[][]float64

func RunQueryMetrics

func RunQueryMetrics(query string, from time.Time, to time.Time) (Pointlist, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL