MCPcopy
hub / github.com/openfaas/faas / PrometheusQuery

Struct PrometheusQuery

gateway/metrics/prometheus_query.go:11–16  ·  view source on GitHub ↗

PrometheusQuery represents parameters for querying Prometheus

Source from the content-addressed store, hash-verified

9
10// PrometheusQuery represents parameters for querying Prometheus
11type PrometheusQuery struct {
12 host string
13 port int
14 client *http.Client
15 userAgentVersion string
16}
17
18type PrometheusQueryFetcher interface {
19 Fetch(query string) (*VectorQueryResponse, error)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected