Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrVMInvalidResponse = errors.Error("VictoriaMetrics invalid response")
)
Variables ¶
This section is empty.
Functions ¶
func NewVMAdapter ¶
func NewVMAdapter(datasource *tsdb.DataSource) (tsdb.TsdbQueryEndpoint, error)
Types ¶
type Client ¶
type Response ¶
type Response struct { Status string `json:"status"` Data ResponseData Stats ResponseStats }
type ResponseData ¶
type ResponseData struct { ResultType string `json:"resultType"` Result []ResponseDataResult `json:"result"` }
type ResponseDataResult ¶
type ResponseDataResult struct { Metric map[string]string `json:"metric"` Values []ResponseDataResultValue `json:"values"` }
type ResponseDataResultValue ¶
type ResponseDataResultValue []interface{}
ResponseDataResultValue likes: [ 1652169600, "1" ]
type ResponseStats ¶
type ResponseStats struct { // SeriesFetched is like integer type: {seriesFetched: "2"} SeriesFetched string `json:"seriesFetched"` }
Click to show internal directories.
Click to hide internal directories.