prometheus_alerts

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertDocumentFilename

func AlertDocumentFilename(documentBytes []byte, productName string) string

Types

type Document

type Document struct {
	Groups []Group
}

func AlertDocumentFrom

func AlertDocumentFrom(document indicator.Document) Document

type Group

type Group struct {
	Name  string
	Rules []Rule
}

type Rule

type Rule struct {
	Alert       string
	Expr        string
	For         string
	Labels      map[string]string
	Annotations map[string]string
}

Jump to

Keyboard shortcuts

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