grafana

package
v0.0.0-...-8eff3c5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Grafana string = "GRAFANA"

Variables

This section is empty.

Functions

func Routers

func Routers(e *gin.Engine)

Types

type Alert

type Alert struct {
	Tags        map[string]string `json:"tags"`
	EvalMatches []*EvalMatch      `json:"evalMatches"`
	Title       string            `json:"title"`
	ImageUrl    string            `json:"imageUrl"`
	DashboardId int               `json:"dashboardId"`
	Message     string            `json:"message"`
	OrgId       int               `json:"orgId"`
	PanelId     int               `json:"panelId"`
	RuleId      int               `json:"ruleId"`
	RuleName    string            `json:"ruleName"`
	RuleUrl     string            `json:"ruleUrl"`
	State       string            `json:"state"`
}

type EvalMatch

type EvalMatch struct {
	Value  float64           `json:"value"`
	Metric string            `json:"metric"`
	Tags   map[string]string `json:"tags"`
}

type StateEnum

type StateEnum struct {
	PAUSED   string `enum:"paused"`
	ALERTING string `enum:"alerting"`
	PENDING  string `enum:"pending"`
	NODATA   string `enum:"no_data"`
}

Jump to

Keyboard shortcuts

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