Documentation
¶
Overview ¶
Package bcsmonitor monitor query
Index ¶
- func GetFirstValue(vector model.Vector) string
- func GetLabelSet(vector model.Vector) map[string]string
- func QueryInstant(ctx context.Context, projectId string, promql string, ...) (*promclient.Result, error)
- func QueryInstantVector(ctx context.Context, projectId string, promql string, ...) (model.Vector, []string, error)
- func QueryLabelSet(ctx context.Context, projectId string, promql string, ...) (map[string]string, error)
- func QueryMultiValues(ctx context.Context, projectId string, promqlMap map[string]string, ...) (map[string]string, error)
- func QueryRange(ctx context.Context, projectId string, promql string, ...) (*promclient.Result, error)
- func QueryRangeMatrix(ctx context.Context, projectId string, promql string, ...) (model.Matrix, []string, error)
- func QueryValue(ctx context.Context, projectId string, promql string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLabelSet ¶
GetLabelSet 获取第一个值的labels
func QueryInstant ¶
func QueryInstant(ctx context.Context, projectId string, promql string, params map[string]interface{}, t time.Time) (*promclient.Result, error)
QueryInstant 查询实时数据, 带格式化
func QueryInstantVector ¶
func QueryInstantVector(ctx context.Context, projectId string, promql string, params map[string]interface{}, t time.Time) (model.Vector, []string, error)
QueryInstantVector 查询实时数据, 带格式化
func QueryLabelSet ¶
func QueryLabelSet(ctx context.Context, projectId string, promql string, params map[string]interface{}, t time.Time) (map[string]string, error)
QueryLabelSet 查询
func QueryMultiValues ¶
func QueryMultiValues(ctx context.Context, projectId string, promqlMap map[string]string, params map[string]interface{}, t time.Time) (map[string]string, error)
QueryMultiValues 查询第一个值 format 格式 %<var>s
func QueryRange ¶
func QueryRange(ctx context.Context, projectId string, promql string, params map[string]interface{}, start time.Time, end time.Time, step time.Duration) (*promclient.Result, error)
QueryRange 查询历史数据 带格式的查询
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.