graph

package
v3.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointCounterRegexpQuery

func EndpointCounterRegexpQuery(c *gin.Context)

fastweb only

func EndpointRegexpQuery

func EndpointRegexpQuery(c *gin.Context)

func EndpointStrCounterRegexpQuery

func EndpointStrCounterRegexpQuery(c *gin.Context)

func EndpointsGetMetricBySubStar

func EndpointsGetMetricBySubStar(c *gin.Context)

func EndpointsQuerySubMetric

func EndpointsQuerySubMetric(c *gin.Context)

func GrafanaMainQuery

func GrafanaMainQuery(c *gin.Context)

func GrafanaRender

func GrafanaRender(c *gin.Context)

func HostsSearching

func HostsSearching(c *gin.Context)

func QueryGraphDrawData

func QueryGraphDrawData(c *gin.Context)

func QueryGraphLastPoint

func QueryGraphLastPoint(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

Types

type APIEndpointCounterRegexpQueryInputs

type APIEndpointCounterRegexpQueryInputs struct {
	Q     string `json:"metricQuery" form:"metricQuery"`
	Eid   string `json:"eid" form:"eid"`
	Limit int    `json:"limit" form:"limit"`
	Page  int    `json:"page" form:"page"`
}

type APIEndpointRegexpQueryInputs

type APIEndpointRegexpQueryInputs struct {
	Q     string `json:"q" form:"q"`
	Label string `json:"tags" form:"tags"`
	Limit int    `json:"limit" form:"limit"`
	Page  int    `json:"page" form:"page"`
}

type APIEndpointStrCounterRegexpQueryInputs

type APIEndpointStrCounterRegexpQueryInputs struct {
	Q         string `json:"metricQuery" form:"metricQuery"`
	Endpoints string `json:"endpoints" form:"endpoints"`
	Limit     int    `json:"limit" form:"limit"`
	Page      int    `json:"page" form:"page"`
}

type APIEndpointsGetMetricBySubStarInput

type APIEndpointsGetMetricBySubStarInput struct {
	Endpoints      []string `json:"endpoints" form:"endpoints" binding:"required"`
	MetricQuery    string   `json:"metric_query" form:"metric_query" binding:"required"`
	StarStr        []string `json:"star_strings" form:"star_strings" binding:"required"`
	SelectedMetric []string `json:"selected_metric" form:"selected_metric"`
}

type APIEndpointsQuerySubMetricInputs

type APIEndpointsQuerySubMetricInputs struct {
	Endpoints   []string `json:"endpoints" form:"endpoints" binding:"required"`
	MetricQuery string   `json:"metric_query" form:"metric_query"`
	RawKeys     bool     `json:"raw_keys" form:"raw_keys"`
}

type APIGrafanaMainQueryInputs

type APIGrafanaMainQueryInputs struct {
	Limit int    `json:"limit"  form:"limit"`
	Query string `json:"query"  form:"query"`
}

type APIGrafanaMainQueryOutputs

type APIGrafanaMainQueryOutputs struct {
	Expandable bool   `json:"expandable"`
	Text       string `json:"text"`
}

type APIGrafanaRenderInput

type APIGrafanaRenderInput struct {
	Target        []string `json:"target" form:"target"  binding:"required"`
	From          int64    `json:"from" form:"from" binding:"required"`
	Until         int64    `json:"until" form:"until" binding:"required"`
	Format        string   `json:"format" form:"format"`
	MaxDataPoints int64    `json:"maxDataPoints" form:"maxDataPoints"`
	Step          int      `json:"step" form:"step"`
	ConsolFun     string   `json:"consolFun" form:"consolFun"`
}

type APIQueryGraphDrawData

type APIQueryGraphDrawData struct {
	HostNames []string `json:"hostnames" binding:"required"`
	Counters  []string `json:"counters" binding:"required"`
	ConsolFun string   `json:"consol_fun" binding:"required"`
	StartTime int64    `json:"start_time" binding:"required"`
	EndTime   int64    `json:"end_time" binding:"required"`
	Step      int      `json:"step" binding:"required"`
}

Jump to

Keyboard shortcuts

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