http

package
v5.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertEvent

func AlertEvent(id int64) *models.AlertEvent

func AlertRule

func AlertRule(id int64) *models.AlertRule

func AlertRuleGroup

func AlertRuleGroup(id int64) *models.AlertRuleGroup

func Chart

func Chart(id int64) *models.Chart

func ChartGroup

func ChartGroup(id int64) *models.ChartGroup

func Classpath

func Classpath(id int64) *models.Classpath

func CollectRule

func CollectRule(id int64) *models.CollectRule

func Dashboard

func Dashboard(id int64) *models.Dashboard

func GetData

func GetData(c *gin.Context)

func GetDataInstant

func GetDataInstant(c *gin.Context)

func GetMetrics

func GetMetrics(c *gin.Context)

func GetTagKeys

func GetTagKeys(c *gin.Context)

func GetTagPairs

func GetTagPairs(c *gin.Context)

func GetTagValues

func GetTagValues(c *gin.Context)

func HistoryAlertEvent

func HistoryAlertEvent(id int64) *models.HistoryAlertEvent

func IdsInt64

func IdsInt64(ids string) []int64

func MetricDescription

func MetricDescription(id int64) *models.MetricDescription

func Mute

func Mute(id int64) *models.Mute

func PushData

func PushData(c *gin.Context)

func PushSeries

func PushSeries(c *gin.Context)

错误消息也是返回了200,是和客户端的约定,客户端如果发现code!=200就会重试

func Resource

func Resource(id int64) *models.Resource

func Shutdown

func Shutdown()

Shutdown http server

func Start

func Start()

func Status

func Status(c *gin.Context)

func User

func User(id int64) *models.User

func UserGroup

func UserGroup(id int64) *models.UserGroup

Types

type ChartGroupDetail

type ChartGroupDetail struct {
	Id          int64          `json:"id"`
	DashboardId int64          `json:"dashboard_id"`
	Name        string         `json:"name"`
	Weight      int            `json:"weight"`
	Charts      []models.Chart `json:"charts"`
}

type DashboardDetail

type DashboardDetail struct {
	Id          int64              `json:"id"`
	Name        string             `json:"name"`
	Tags        string             `json:"tags"`
	Configs     string             `json:"configs"`
	ChartGroups []ChartGroupDetail `json:"chart_groups"`
}

type RegExpCheck

type RegExpCheck struct {
	Success bool                `json:"success"`
	Data    []map[string]string `json:"tags"`
}

type Summary

type Summary struct {
	LatestUpdatedAt int64 `json:"latest_updated_at"`
	Total           int   `json:"total"`
}

Jump to

Keyboard shortcuts

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