models

package
v0.0.0-...-84fef90 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CND_LEFT        = "{"
	CND_RIGHT       = "}"
	SeriesAlertDesc = AlertDescSetConstructor()
)

Functions

func Initialization

func Initialization(db_url string)

func QueryRuleString

func QueryRuleString() (*list.List, error)

Types

type AlertDescSet

type AlertDescSet struct {
	DimensMap cmap.ConcurrentMap
	TimesMap  cmap.ConcurrentMap
}

func AlertDescSetConstructor

func AlertDescSetConstructor() *AlertDescSet

type AlertDescribe

type AlertDescribe struct {
	Id        string
	DimenArry []string
}

type RuleItem

type RuleItem struct {
	Name        string
	Fn          string
	Interval    int
	Alert       string
	Expr        string
	For         string
	Labels      map[string]string
	Annotations map[string]string
	Metrics     string
}

规则

Jump to

Keyboard shortcuts

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