Class HPAScalingPolicy

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class HPAScalingPolicy
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<HPAScalingPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    HPAScalingPolicy is a single policy which must hold true for a specified past interval.
    See Also:
    Serialized Form
    • Constructor Detail

      • HPAScalingPolicy

        public HPAScalingPolicy()
        No args constructor for use in serialization
      • HPAScalingPolicy

        public HPAScalingPolicy​(Integer periodSeconds,
                                String type,
                                Integer value)
    • Method Detail

      • getPeriodSeconds

        public Integer getPeriodSeconds()
        periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
      • setPeriodSeconds

        public void setPeriodSeconds​(Integer periodSeconds)
        periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
      • getType

        public String getType()
        type is used to specify the scaling policy.
      • setType

        public void setType​(String type)
        type is used to specify the scaling policy.
      • getValue

        public Integer getValue()
        value contains the amount of change which is permitted by the policy. It must be greater than zero
      • setValue

        public void setValue​(Integer value)
        value contains the amount of change which is permitted by the policy. It must be greater than zero
      • getAdditionalProperties

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

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

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