package
Version:
v0.17.0
Opens a new window with list of versions in this module.
Published: Sep 12, 2024
License: BSD-2-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Data struct {
Result []Result `json:"result"`
ResultType string `json:"resultType"`
}
Data - all useful data (except status and errors) that's returned by prometheus
type HTTPResponse struct {
Status string `json:"status"`
ErrorType string `json:"errorType"`
Error string `json:"error"`
Data Data `json:"data"`
}
HTTPResponse - full HTTP response from prometheus
type PrometheusFindResponse struct {
Status string `json:"status"`
ErrorType string `json:"errorType"`
Error string `json:"error"`
Data []map[string]string `json:"data"`
}
type PrometheusTagResponse struct {
Status string `json:"status"`
ErrorType string `json:"errorType"`
Error string `json:"error"`
Data []string `json:"data"`
}
type Result struct {
Metric map[string]string `json:"metric"`
Values []Value `json:"values"`
}
Result contains result as returned by Prometheus
Tag handles prometheus-specific tags
Value contains timestamp/value after parsing
Source Files
¶
Click to show internal directories.
Click to hide internal directories.