Documentation ¶
Index ¶
- Variables
- func Counter2Metric(counter string) (string, map[string]string)
- func Init(cfg SeriesQuerySection)
- func NewQueryRequest(endpoint, metric string, tagsMap map[string]string, step int, start, end int64) (*dataobj.QueryData, error)
- func Query(reqs []*dataobj.QueryData, sid int64, expFunc string) []*dataobj.TsdbQueryResponse
- func QueryFromMem(reqs []*dataobj.QueryData, sid int64) ([]*dataobj.TsdbQueryResponse, []*dataobj.QueryData)
- type Counter
- type IndexData
- type IndexReq
- type IndexRequest
- type IndexResp
- type QueryData
- type SeriesQuerySection
- type XCludeStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorIndexParamIllegal = errors.New("index param illegal") ErrorQueryParamIllegal = errors.New("query param illegal") )
Functions ¶
func Init ¶
func Init(cfg SeriesQuerySection)
func NewQueryRequest ¶
func QueryFromMem ¶
Types ¶
type IndexData ¶
type IndexReq ¶
type IndexReq struct { Endpoints []string `json:"endpoints"` Metric string `json:"metric"` Include []XCludeStruct `json:"include,omitempty"` Exclude []XCludeStruct `json:"exclude,omitempty"` }
type IndexRequest ¶
type SeriesQuerySection ¶
type SeriesQuerySection struct { MaxConn int `json:"maxConn"` // MaxIdle int `json:"maxIdle"` // ConnTimeout int `json:"connTimeout"` // 连接超时 CallTimeout int `json:"callTimeout"` // 请求超时 IndexPath string `json:"indexPath"` IndexCallTimeout int `json:"indexCallTimeout"` // 请求超时 }
var ( TransferConnPools *pools.ConnPools Config SeriesQuerySection )
type XCludeStruct ¶
******** 补全索引相关 ********
Click to show internal directories.
Click to hide internal directories.