ContainerResourceMetricSourceV2
Class sealed net10.0
Represents a metric source that is defined by a resource usage of a specific container. This is used for scaling purposes in a Kubernetes environment, relying on container-level metrics.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ContainerResourceMetricSourceV2{ // ...}Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesContainerget; setstring Gets or sets the name of the container associated with the metric. It specifies the container within a pod to which the resource metric applies.
Nameget; setstring Gets or sets the name of the resource metric.
Targetget; set Specifies the target for the metric being monitored in a container. Represents an instance of
MetricTargetV2 which defines the thresholds and values for the metric.