mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 17:57:51 +00:00
Notable next steps include: * Intelligently select the aggregation method (rate/avg_over_time/etc). * Intelligenty select the aggregation window. * Figure out how to handle "namespace", if at all. * Fix the crazy type conversion in `sample_converter.go`.
13 lines
452 B
Go
13 lines
452 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
|
|
//TODO: Type this?
|
|
Aggregation string
|
|
}
|