bo

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildApiDuration

func BuildApiDuration(duration string) *api.Duration

BuildApiDuration 字符串转为api时间

func BuildApiDurationString

func BuildApiDurationString(duration *api.Duration) string

BuildApiDurationString 时间转换为字符串

Types

type AlarmItemBo added in v0.0.16

type AlarmItemBo struct {
	*agent.Alarm
}

AlarmItemBo 告警项

func (*AlarmItemBo) Bytes added in v0.0.16

func (a *AlarmItemBo) Bytes() []byte

Bytes 序列化告警项

type EvaluateReqBo added in v0.0.16

type EvaluateReqBo struct {
	GroupList []*EvaluateStrategyGroup
}

type EvaluateStrategy added in v0.0.16

type EvaluateStrategy struct {
	Id          uint32
	Alert       string
	Expr        string
	For         string
	Labels      agent.Labels
	Annotations agent.Annotations

	Datasource agent.Datasource
}

func (*EvaluateStrategy) ToEvaluateRule added in v0.0.16

func (e *EvaluateStrategy) ToEvaluateRule() *strategy.EvalRule

ToEvaluateRule 转换为 EvalRule

type EvaluateStrategyGroup added in v0.0.16

type EvaluateStrategyGroup struct {
	GroupId      uint32
	GroupName    string
	StrategyList []*EvaluateStrategy
}

type Ping

type Ping struct {
	Hello string
}

Ping is a Ping model.

Jump to

Keyboard shortcuts

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