- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for GetResourceMetric (0.18 sec)
-
pkg/controller/podautoscaler/metrics/interfaces.go
type MetricsClient interface { // GetResourceMetric gets the given resource metric (and an associated oldest timestamp) // for the specified named container in all pods matching the specified selector in the given namespace and when // the container is an empty string it returns the sum of all the container metrics.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 09 02:34:54 UTC 2021 - 2.4K bytes - Viewed (0) -
pkg/controller/podautoscaler/metrics/client.go
type resourceMetricsClient struct { client resourceclient.PodMetricsesGetter } // GetResourceMetric gets the given resource metric (and an associated oldest timestamp) // for all pods matching the specified selector in the given namespace
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 16 20:17:52 UTC 2023 - 7.8K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator.go
metrics, timestamp, err := c.metricsClient.GetResourceMetric(ctx, resource, namespace, selector, container) if err != nil { return 0, 0, 0, time.Time{}, fmt.Errorf("unable to get metrics for resource %s: %v", resource, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/controller/podautoscaler/metrics/client_test.go
isResource := len(tc.resourceName) > 0 isExternal := tc.metricSelector != nil if isResource { info, timestamp, err := metricsClient.GetResourceMetric(context.TODO(), v1.ResourceName(tc.resourceName), tc.namespace, tc.selector, tc.container) tc.verifyResults(t, info, timestamp, err) } else if isExternal {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 09 02:34:54 UTC 2021 - 16.4K bytes - Viewed (0)