Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetricsClient ¶
type MetricsClient interface {
GetMetricValue(metric *metricquery.Metric) ([]*common.TimeSeries, error)
}
func NewCraneMetricsClient ¶
func NewCraneMetricsClient(resourceClient resourceclient.MetricsV1beta1Interface, customClient customclient.CustomMetricsClient, externalClient externalclient.ExternalMetricsClient) MetricsClient
type ResourceMetric ¶
type ResourceMetric struct { Timestamp time.Time Window time.Duration Value float64 // Labels must keep the same with prometheus labels and other data labels // todo: we must remove predictor dependency to the labels for single-metric-multi-series scene Labels []common.Label }
ResourceMetric contains metric value (the metric values are expected to be the metric as a milli-value)
type ResourceMetricInfo ¶
type ResourceMetricInfo []ResourceMetric
ResourceMetricInfo contains metrics as an array of ResourceMetric
Click to show internal directories.
Click to hide internal directories.