Skip to content
Docs Try Aspire

MetricIdentifierV2

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a metric identifier in a Kubernetes context, primarily used to identify and specify a metric related to various Kubernetes resources or objects.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class MetricIdentifierV2
{
// ...
}
A metric identifier typically consists of a name that denotes the metric and an optional selector, which is used to specify additional filtering criteria for selecting specific metric instances. This class is designed to be serialized and deserialized in YAML format and is often used in conjunction with other Kubernetes resource configurations.