config

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	Name        string
	Expr        string
	For         time.Duration
	Labels      map[string]string
	Annotations Annotations

	Start time.Time
	End   time.Time
}

Alert basic alert entity rule

type Annotations

type Annotations struct {
	Summary     string
	Description string
}

Annotations basic annotation for alert rule

type Group

type Group struct {
	Name  string
	Rules []Alert
}

Group grouping array of alert

func Parse

func Parse(filepath string) ([]Group, error)

Parse parses config from given file

Jump to

Keyboard shortcuts

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