anomix

package
v0.0.0-...-8f9ebe2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERR_METRIC_NOT_FOUND = errors.New("METRIC_NOT_FOUND")

Functions

func CreateMetric

func CreateMetric(name string, sampleCount int64, intervalInSec int64, minSample int64, tolerance float64) error

CreateMetric used to initialize metric in the service which will start detecting anomalies for data points. Without this, SendMetric will not work.

func Init

func Init(u string) error

Init used to initialize anomic client

func SendMetric

func SendMetric(name string, t time.Time, value float64) (isAnomaly bool, score float64, err error)

SendMetric is used to send the datapoints for the given metric. It returns whether the given point is anomaly or not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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