grafana

package
v1.18.8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrafanaAnnotation

type GrafanaAnnotation struct {
	// contains filtered or unexported fields
}

func (GrafanaAnnotation) Creator

func (n GrafanaAnnotation) Creator(params map[string]interface{}, baseInfo config.BaseInfo) (notifiers.Notifier, error)

func (GrafanaAnnotation) Description added in v1.6.1

func (n GrafanaAnnotation) Description() string

func (GrafanaAnnotation) Id

func (n GrafanaAnnotation) Id() string

func (GrafanaAnnotation) Name

func (n GrafanaAnnotation) Name() string

func (GrafanaAnnotation) Notify

func (n GrafanaAnnotation) Notify(notifyReq *models.NotifyRequest) error

type OptsGrafanaAnnotation

type OptsGrafanaAnnotation struct {
	ApiKey             string `mapstructure:"api_key"`
	Endpoint           string `mapstructure:"endpoint"`
	DashboardId        int    `mapstructure:"dashboard_id"`
	PanelId            int    `mapstructure:"panel_id"`
	Tag                string `mapstructure:"tag"`
	TimeZone           string `mapstructure:"time_zone"`
	InsecureSkipVerify bool   `mapstructure:"insecure_skip_verify"`
}

type ReqGrafanaAnnotation

type ReqGrafanaAnnotation struct {
	DashboardID int      `json:"dashboardId,omitempty"`
	PanelID     int      `json:"panelId,omitempty"`
	Time        int64    `json:"time"`
	TimeEnd     int64    `json:"timeEnd,omitempty"`
	Tags        []string `json:"tags,omitempty"`
	Text        string   `json:"text"`
}

Jump to

Keyboard shortcuts

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