graph

package
v0.0.0-...-a9119a5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 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
y or Y : Canonical URL