Skip to content
Docs Try Aspire

ResourceMetricSourceV2

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a resource metric source used for Kubernetes scaling operations in version 2. Specifies the name of the resource and its corresponding targeting criteria.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ResourceMetricSourceV2
{
// ...
}
View all constructors
Nameget; set
string
Gets or sets the name of the resource to be monitored for Kubernetes scaling. This property identifies the specific resource type (e.g., CPU, memory, etc.) being targeted for metric evaluation.
Targetget; set
Gets or sets the target details for the resource metric. This property defines the specifications for the desired target values or metrics that the resource should aim to maintain, such as average value, utilization, or specific value thresholds.
View all properties