Class TestAlarmRequest

    • Method Detail

      • alarmName

        public final String alarmName()

        The name of the alarm to test.

        Returns:
        The name of the alarm to test.
      • state

        public final AlarmState state()

        The alarm state to test.

        An alarm has the following possible states that can be tested:

        • ALARM - The metric is outside of the defined threshold.

        • INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.

        • OK - The metric is within the defined threshold.

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

        Returns:
        The alarm state to test.

        An alarm has the following possible states that can be tested:

        • ALARM - The metric is outside of the defined threshold.

        • INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.

        • OK - The metric is within the defined threshold.

        See Also:
        AlarmState
      • stateAsString

        public final String stateAsString()

        The alarm state to test.

        An alarm has the following possible states that can be tested:

        • ALARM - The metric is outside of the defined threshold.

        • INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.

        • OK - The metric is within the defined threshold.

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

        Returns:
        The alarm state to test.

        An alarm has the following possible states that can be tested:

        • ALARM - The metric is outside of the defined threshold.

        • INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.

        • OK - The metric is within the defined threshold.

        See Also:
        AlarmState
      • 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