- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetResourceUtilizationRatio (0.19 sec)
-
pkg/controller/podautoscaler/metrics/utilization.go
limitations under the License. */ package metrics import ( "fmt" ) // GetResourceUtilizationRatio takes in a set of metrics, a set of matching requests, // and a target utilization percentage, and calculates the ratio of // desired to actual utilization (returning that, the actual utilization, and the raw average value)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 22 08:59:02 UTC 2022 - 2.3K bytes - Viewed (0) -
pkg/controller/podautoscaler/metrics/utilization_test.go
expectedErr error } func (tc *resourceUtilizationRatioTestCase) runTest(t *testing.T) { actualUtilizationRatio, actualCurrentUtilization, actualRawAverageValue, actualErr := GetResourceUtilizationRatio(tc.metrics, tc.requests, tc.targetUtilization) if tc.expectedErr != nil { assert.Error(t, actualErr, "there should be an error getting the utilization ratio")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 22 08:59:02 UTC 2022 - 4.5K bytes - Viewed (0)