Skip to content
Docs Try Aspire

ExternalMetricSourceV2 Properties

Class Properties 2 members
Represents an external metric source in Kubernetes for configuring autoscaling behavior based on metrics from external components or monitoring systems.
Represents the metric property utilized in the ExternalMetricSourceV2 class. This property is of type MetricIdentifierV2 and is used to identify and define a specific metric in the context of Kubernetes resource configurations.
public MetricIdentifierV2 Metric { get; set; }
The Metric property is typically used to specify the name and any optional selector for a particular metric, allowing for detailed filtering or identification when integrating with Kubernetes metrics APIs or external monitoring tools.
Defines the target configuration for a metric in a Kubernetes-based context.
public MetricTargetV2 Target { get; set; }
The target specifies the desired state or value for a metric, which is used to define scaling behavior or monitor system performance. This includes the type of target, the desired value, and optionally the average value or utilization.