Skip to content
Docs Try Aspire

PodsMetricSourceV2

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a configuration for targeting metrics at the pod level in a Kubernetes environment. Provides specification for a metric associated with pod resources and the target value or criteria for monitoring and scaling purposes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class PodsMetricSourceV2
{
// ...
}
This class is designed for serializing and deserializing Kubernetes pod metric configurations in YAML format. It contains a metric identifier and a target specification to enable monitoring and scaling based on custom or predefined pod metrics.
View all constructors
Metricget; set
Represents the metric associated with a Kubernetes PodsMetricSourceV2 resource.
Targetget; set
Defines the target configuration for a Kubernetes metric in version 2. Specifies the intended target values or utilization for the metric, used for monitoring and scaling purposes.
View all properties