graph

package
Version: v0.0.0-...-4fdcf46 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildNewHttpPostReq

func BuildNewHttpPostReq(url string, data interface{}, header http.Header) *http.Response

func CreateApiMap

func CreateApiMap(hostnames []string) (apiMap map[string][]string)

func EndpointCounterProxy

func EndpointCounterProxy(c *gin.Context)

func EndpointObjProxy

func EndpointObjProxy(c *gin.Context)

func EndpointProxy

func EndpointProxy(c *gin.Context)

func GrafanaMainQueryProxy

func GrafanaMainQueryProxy(c *gin.Context)

func GrafanaProxy

func GrafanaProxy(c *gin.Context)

func QueryGraphInfoProxy

func QueryGraphInfoProxy(c *gin.Context)

func QueryHistoryProxy

func QueryHistoryProxy(c *gin.Context)

func QueryLastPointProxy

func QueryLastPointProxy(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

Types

type EndCounter

type EndCounter struct {
	EndpointID int    `json:"endpoint_id"`
	Counter    string `json:"counter"`
	Step       int    `json:"step"`
	Type       string `json:"type"`
}

type EndPoint

type EndPoint struct {
	Id       uint   `json:"id"`
	Endpoint string `json:"endpoint"`
}

type EndpointCounterQuery

type EndpointCounterQuery struct {
	Eid         string `json:"eid"`
	MetricQuery string `json:"metricQuery"`
	Limit       int    `json:"limit"`
	Page        int    `json:"page"`
}

type EndpointObj

type EndpointObj struct {
	Id       int    `json:"id"`
	Endpoint string `json:"endpoint"`
	Ts       int    `json:"ts"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL