Skip to content
Docs Try Aspire

ExternalMetricSourceV2

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents an external metric source in Kubernetes for configuring autoscaling behavior based on metrics from external components or monitoring systems.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ExternalMetricSourceV2
{
// ...
}
This class defines the external metric to be monitored and the specific target value associated with it. The `metric` property identifies the external metric by name and optional label selectors. The `target` property provides the desired value, average value, or utilization percentage for the metric, as part of the autoscaling configuration.
View all constructors
Metricget; set
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.
Targetget; set
Defines the target configuration for a metric in a Kubernetes-based context.
View all properties