Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for AverageValueMetricType (0.33 sec)

  1. pkg/apis/autoscaling/validation/validation_test.go

    								Type:         autoscaling.AverageValueMetricType,
    								AverageValue: resource.NewMilliQuantity(100, resource.DecimalSI),
    							},
    						},
    						Pods: &autoscaling.PodsMetricSource{
    							Metric: autoscaling.MetricIdentifier{
    								Name: "somemetric",
    							},
    							Target: autoscaling.MetricTarget{
    								Type:         autoscaling.AverageValueMetricType,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/horizontal_test.go

    				Pods: &autoscalingv2.PodsMetricSource{
    					Metric: autoscalingv2.MetricIdentifier{
    						Name: "qps",
    					},
    					Target: autoscalingv2.MetricTarget{
    						Type:         autoscalingv2.AverageValueMetricType,
    						AverageValue: &averageValue,
    					},
    				},
    			},
    		},
    		reportedLevels:      []uint64{20000, 10000, 30000},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/autoscaling/v2/types.go

    	UtilizationMetricType MetricTargetType = "Utilization"
    	// ValueMetricType declares a MetricTarget is a raw value
    	ValueMetricType MetricTargetType = "Value"
    	// AverageValueMetricType declares a MetricTarget is an
    	AverageValueMetricType MetricTargetType = "AverageValue"
    )
    
    // HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.
    type HorizontalPodAutoscalerStatus struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  4. pkg/printers/internalversion/printers_test.go

    									Name:     "some-external-metric",
    									Selector: metricLabelSelector,
    								},
    								Target: autoscaling.MetricTarget{
    									Type:         autoscaling.AverageValueMetricType,
    									AverageValue: resource.NewMilliQuantity(100, resource.DecimalSI),
    								},
    							},
    						},
    					},
    				},
    				Status: autoscaling.HorizontalPodAutoscalerStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  5. pkg/apis/autoscaling/validation/validation.go

    	}
    
    	if mt.Type != autoscaling.UtilizationMetricType &&
    		mt.Type != autoscaling.ValueMetricType &&
    		mt.Type != autoscaling.AverageValueMetricType {
    		allErrs = append(allErrs, field.Invalid(fldPath.Child("type"), mt.Type, "must be either Utilization, Value, or AverageValue"))
    	}
    
    	if mt.Value != nil && mt.Value.Sign() != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 25 00:58:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. pkg/controller/podautoscaler/horizontal.go

    	} else if metricSpec.Object.Target.Type == autoscalingv2.AverageValueMetricType && metricSpec.Object.Target.AverageValue != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
Back to top