Package org.cdk8s.plus25.k8s
Class MetricSpecV2Beta2.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus25.k8s.MetricSpecV2Beta2.Jsii$Proxy
-
- All Implemented Interfaces:
MetricSpecV2Beta2,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- MetricSpecV2Beta2
@Stability(Stable) @Internal public static final class MetricSpecV2Beta2.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MetricSpecV2Beta2
An implementation forMetricSpecV2Beta2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus25.k8s.MetricSpecV2Beta2
MetricSpecV2Beta2.Builder, MetricSpecV2Beta2.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(MetricSpecV2Beta2.Builder builder)Constructor that initializes the object based on literal property values passed by theMetricSpecV2Beta2.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)ContainerResourceMetricSourceV2Beta2getContainerResource()container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g.ExternalMetricSourceV2Beta2getExternal()external refers to a global metric that is not associated with any Kubernetes object.ObjectMetricSourceV2Beta2getObject()object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).PodsMetricSourceV2Beta2getPods()pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).ResourceMetricSourceV2Beta2getResource()resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g.StringgetType()type is the type of metric source.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(MetricSpecV2Beta2.Builder builder)
Constructor that initializes the object based on literal property values passed by theMetricSpecV2Beta2.Builder.
-
-
Method Detail
-
getType
public final String getType()
Description copied from interface:MetricSpecV2Beta2type is the type of metric source.It should be one of "ContainerResource", "External", "Object", "Pods" or "Resource", each mapping to a matching field in the object. Note: "ContainerResource" type is available on when the feature-gate HPAContainerMetrics is enabled
- Specified by:
getTypein interfaceMetricSpecV2Beta2
-
getContainerResource
public final ContainerResourceMetricSourceV2Beta2 getContainerResource()
Description copied from interface:MetricSpecV2Beta2container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag.- Specified by:
getContainerResourcein interfaceMetricSpecV2Beta2
-
getExternal
public final ExternalMetricSourceV2Beta2 getExternal()
Description copied from interface:MetricSpecV2Beta2external refers to a global metric that is not associated with any Kubernetes object.It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).
- Specified by:
getExternalin interfaceMetricSpecV2Beta2
-
getObject
public final ObjectMetricSourceV2Beta2 getObject()
Description copied from interface:MetricSpecV2Beta2object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).- Specified by:
getObjectin interfaceMetricSpecV2Beta2
-
getPods
public final PodsMetricSourceV2Beta2 getPods()
Description copied from interface:MetricSpecV2Beta2pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second).The values will be averaged together before being compared to the target value.
- Specified by:
getPodsin interfaceMetricSpecV2Beta2
-
getResource
public final ResourceMetricSourceV2Beta2 getResource()
Description copied from interface:MetricSpecV2Beta2resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source.- Specified by:
getResourcein interfaceMetricSpecV2Beta2
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-