Class MetricSpec

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<MetricSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class MetricSpec
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<MetricSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
    See Also:
    Serialized Form
    • Method Detail

      • getContainerResource

        public ContainerResourceMetricSource getContainerResource()
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • setContainerResource

        public void setContainerResource​(ContainerResourceMetricSource containerResource)
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • getExternal

        public ExternalMetricSource getExternal()
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • setExternal

        public void setExternal​(ExternalMetricSource external)
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • getObject

        public ObjectMetricSource getObject()
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • setObject

        public void setObject​(ObjectMetricSource object)
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • getPods

        public PodsMetricSource getPods()
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • setPods

        public void setPods​(PodsMetricSource pods)
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • getResource

        public ResourceMetricSource getResource()
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • setResource

        public void setResource​(ResourceMetricSource resource)
        MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).
      • getType

        public String getType()
        type 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
      • setType

        public void setType​(String type)
        type 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
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)