Documentation ¶
Index ¶
Constants ¶
View Source
const InfluxQL = "influxql"
InfluxQL tsql
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryParams ¶
type QueryParams struct { Scope string `param:"scope"` Aggregate string `param:"aggregate"` Format string `query:"format"` Query string `query:"q"` QL string `query:"ql"` }
QueryParams .
type Queryer ¶
type Queryer interface { query.Queryer Client() *elastic.Client Indices(metrics []string, clusters []string, start, end int64) []string Handle(r *http.Request) interface{} MetricNames(langCodes i18n.LanguageCodes, scope, scopeID string) ([]*pb.NameDefine, error) MetricMeta(langCodes i18n.LanguageCodes, scope, scopeID string, pb ...string) ([]*pb.MetricMeta, error) GetSingleMetricsMeta(langCodes i18n.LanguageCodes, scope, scopeID, metric string) (*pb.MetricMeta, error) GetSingleAggregationMeta(langCodes i18n.LanguageCodes, mode, name string) (*pb.Aggregation, error) RegeistMetricMeta(scope, scopeID, group string, metrics ...*pb.MetricMeta) error UnregeistMetricMeta(scope, scopeID, group string, metrics ...string) error MetricGroups(langCodes i18n.LanguageCodes, scope, scopeID, mode string) ([]*pb.Group, error) MetricGroup(langCodes i18n.LanguageCodes, scope, scopeID, group, mode, format string, appendTags bool) (*pb.MetricGroup, error) // v1 queryv1.Queryer HandleV1(r *http.Request, params *QueryParams) interface{} Charts(langCodes i18n.LanguageCodes, typ string) []*chartmeta.ChartMeta }
Queryer .
var Q Queryer
Q Queryer .
Click to show internal directories.
Click to hide internal directories.