mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
Working through some of the result conversions. I want to use this code in a harness project to exercise some of it, but there are some versioning issues around my modified code vs. the current version of the real project. The easiest way to work around them at the moment is to push this.
11 lines
412 B
Go
11 lines
412 B
Go
package provider
|
|
|
|
//QueryMetadata is a data object the holds information about what inputs
|
|
//were used to generate Prometheus query results. In most cases it's not
|
|
//necessary, as the Prometheus result come back with enough information
|
|
//to determine the metric name. However, for scalar results, Prometheus
|
|
//only provides the value.
|
|
type QueryMetadata struct {
|
|
MetricName string
|
|
WindowInSeconds int64
|
|
}
|