routes

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(r *gin.Engine)

Config routes

func DelCounter

func DelCounter(c *gin.Context)

func DelIdxByEndpoint added in v1.4.0

func DelIdxByEndpoint(c *gin.Context)

func DelMetrics

func DelMetrics(c *gin.Context)

func DumpIndex

func DumpIndex(c *gin.Context)

func GetIdxFile

func GetIdxFile(c *gin.Context)

func GetIndexByClude

func GetIndexByClude(c *gin.Context)

func GetIndexByFullTags

func GetIndexByFullTags(c *gin.Context)

func GetMetrics

func GetMetrics(c *gin.Context)

func GetTagPairs

func GetTagPairs(c *gin.Context)

Types

type CludeRecv

type CludeRecv struct {
	Endpoints []string         `json:"endpoints"`
	Metric    string           `json:"metric"`
	Include   []*cache.TagPair `json:"include"`
	Exclude   []*cache.TagPair `json:"exclude"`
}

type EndpointMetricRecv

type EndpointMetricRecv struct {
	Endpoints []string `json:"endpoints"`
	Metrics   []string `json:"metrics"`
}

type EndpointRecv added in v1.4.0

type EndpointRecv struct {
	Endpoints []string `json:"endpoints"`
}

type EndpointsRecv

type EndpointsRecv struct {
	Endpoints []string `json:"endpoints"`
}

type GetIndexByFullTagsRecv

type GetIndexByFullTagsRecv struct {
	Endpoints []string         `json:"endpoints"`
	Metric    string           `json:"metric"`
	Tagkv     []*cache.TagPair `json:"tagkv"`
}

type GetIndexByFullTagsResp

type GetIndexByFullTagsResp struct {
	Endpoints []string `json:"endpoints"`
	Metric    string   `json:"metric"`
	Tags      []string `json:"tags"`
	Step      int      `json:"step"`
	DsType    string   `json:"dstype"`
}

type IndexTagkvResp

type IndexTagkvResp struct {
	Endpoints []string         `json:"endpoints"`
	Metric    string           `json:"metric"`
	Tagkv     []*cache.TagPair `json:"tagkv"`
}

type MetricList

type MetricList struct {
	Metrics []string `json:"metrics"`
}

type XcludeResp

type XcludeResp struct {
	Endpoint string   `json:"endpoint"`
	Metric   string   `json:"metric"`
	Tags     []string `json:"tags"`
	Step     int      `json:"step"`
	DsType   string   `json:"dstype"`
}

Jump to

Keyboard shortcuts

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