ResourceMetricSourceV2
Class sealed net10.0
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{ // ...}Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesNameget; setstring 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.