checks

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxResolutionMs the largest resolution period allowed before being
	// too long for someone to effectively monitor on it
	MaxResolutionMs int = 10 * 60 * 60 * 1000 // == 10 minutes
)

Variables

This section is empty.

Functions

func CheckDetector

func CheckDetector(ctx context.Context, detectorID string, sfx *client.SignalFx) ([]*types.Result, error)

CheckDetector inspects the settings of the detector to see if there is any user settings that have been set that could of caused issues with detector.

func CheckTimeSeries

func CheckTimeSeries(ctx context.Context, detectorID string, sfx *client.SignalFx) ([]*types.Result, error)

CheckTimeSeries reads the underlying time series data for a detector

Types

type Check

type Check func(ctx context.Context, detectorID string, sfx *client.SignalFx) ([]*types.Result, error)

Check is the typed function to make it easier to update the function definition

Jump to

Keyboard shortcuts

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