Class CustomizableMetricParameters

    • Method Detail

      • thresholdAsString

        public final String thresholdAsString()

        The threshold value used for the specified metric parameter.

        You can only specify the threshold value for CPU utilization.

        If the service returns an enum value that is not available in the current SDK version, threshold will return CustomizableMetricThreshold.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from thresholdAsString().

        Returns:
        The threshold value used for the specified metric parameter.

        You can only specify the threshold value for CPU utilization.

        See Also:
        CustomizableMetricThreshold
      • headroom

        public final CustomizableMetricHeadroom headroom()

        The headroom value in percentage used for the specified metric parameter.

        The following lists the valid values for CPU and memory utilization.

        • CPU utilization: PERCENT_30 | PERCENT_20 | PERCENT_0

        • Memory utilization: PERCENT_30 | PERCENT_20 | PERCENT_10

        If the service returns an enum value that is not available in the current SDK version, headroom will return CustomizableMetricHeadroom.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from headroomAsString().

        Returns:
        The headroom value in percentage used for the specified metric parameter.

        The following lists the valid values for CPU and memory utilization.

        • CPU utilization: PERCENT_30 | PERCENT_20 | PERCENT_0

        • Memory utilization: PERCENT_30 | PERCENT_20 | PERCENT_10

        See Also:
        CustomizableMetricHeadroom
      • headroomAsString

        public final String headroomAsString()

        The headroom value in percentage used for the specified metric parameter.

        The following lists the valid values for CPU and memory utilization.

        • CPU utilization: PERCENT_30 | PERCENT_20 | PERCENT_0

        • Memory utilization: PERCENT_30 | PERCENT_20 | PERCENT_10

        If the service returns an enum value that is not available in the current SDK version, headroom will return CustomizableMetricHeadroom.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from headroomAsString().

        Returns:
        The headroom value in percentage used for the specified metric parameter.

        The following lists the valid values for CPU and memory utilization.

        • CPU utilization: PERCENT_30 | PERCENT_20 | PERCENT_0

        • Memory utilization: PERCENT_30 | PERCENT_20 | PERCENT_10

        See Also:
        CustomizableMetricHeadroom
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)