common

package
v6.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchGroupsName added in v6.0.2

func MatchGroupsName(groupName string, groupFilter []models.TagFilter) bool

func MatchTags

func MatchTags(eventTagsMap map[string]string, itags []models.TagFilter) bool

func RuleKey

func RuleKey(datasourceId, id int64) string

Types

type AnomalyPoint

type AnomalyPoint struct {
	Key       string       `json:"key"`
	Labels    model.Metric `json:"labels"`
	Timestamp int64        `json:"timestamp"`
	Value     float64      `json:"value"`
	Severity  int          `json:"severity"`
	Triggered bool         `json:"triggered"`
	Query     string       `json:"query"`
}

func ConvertAnomalyPoints

func ConvertAnomalyPoints(value model.Value) (lst []AnomalyPoint)

func NewAnomalyPoint

func NewAnomalyPoint(key string, labels map[string]string, ts int64, value float64, severity int) AnomalyPoint

func (*AnomalyPoint) ReadableValue

func (v *AnomalyPoint) ReadableValue() string

Jump to

Keyboard shortcuts

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