Interface AlarmPromQLCriteria.Builder

    • Method Detail

      • query

        AlarmPromQLCriteria.Builder query​(String query)

        The PromQL query that the alarm evaluates. The query must return a result of vector type. Each entry in the vector result represents an alarm contributor.

        Parameters:
        query - The PromQL query that the alarm evaluates. The query must return a result of vector type. Each entry in the vector result represents an alarm contributor.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pendingPeriod

        AlarmPromQLCriteria.Builder pendingPeriod​(Integer pendingPeriod)

        The duration, in seconds, that a contributor must be continuously breaching before it transitions to the ALARM state.

        Parameters:
        pendingPeriod - The duration, in seconds, that a contributor must be continuously breaching before it transitions to the ALARM state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • recoveryPeriod

        AlarmPromQLCriteria.Builder recoveryPeriod​(Integer recoveryPeriod)

        The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the OK state.

        Parameters:
        recoveryPeriod - The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the OK state.
        Returns:
        Returns a reference to this object so that method calls can be chained together.