grafana

package
v1.141.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 13 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"`
	Username           string `mapstructure:"username"`
	Password           string `mapstructure:"password"`
	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"`
	OrgID              int    `mapstructure:"org_id"`
}

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