custom

package
v0.49.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLabelsFromString

func ParseLabelsFromString(l string) (entities.Labels, error)

ParseLabelsFromString - Uses regexp to parse label string returns error if regex does not match

Types

type Custom

type Custom struct {
	*http.Client
}

func New

func New() (*Custom, error)

func (*Custom) CanHandleSelector

func (c *Custom) CanHandleSelector(labels entities.Selector) bool

CanHandleSelector returns true only if both datadog queries are defined

func (*Custom) ComputeObjective

func (c *Custom) ComputeObjective(o *entities.Objective, from, to time.Time) (i *entities.Indicator, err error)

Jump to

Keyboard shortcuts

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