Class Condition.Builder

  • Enclosing class:
    Condition

    public static class Condition.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • query

        public Condition.Builder query​(String query)
        The Monitoring Query Language (MQL) expression to evaluate for the alarm.
        Parameters:
        query - the value to set
        Returns:
        this builder
      • body

        public Condition.Builder body​(String body)
        The human-readable content of the delivered alarm notification.

        Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information.

        Parameters:
        body - the value to set
        Returns:
        this builder
      • shouldAppendNote

        public Condition.Builder shouldAppendNote​(Boolean shouldAppendNote)
        Whether the note need to add into bottom of the body for mapping the alarms information with template or not.
        Parameters:
        shouldAppendNote - the value to set
        Returns:
        this builder
      • shouldAppendUrl

        public Condition.Builder shouldAppendUrl​(Boolean shouldAppendUrl)
        Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.
        Parameters:
        shouldAppendUrl - the value to set
        Returns:
        this builder
      • triggerDelay

        public Condition.Builder triggerDelay​(String triggerDelay)
        The period of time that the condition defined in the alarm must persist before the alarm state changes from “OK” to “FIRING”.
        Parameters:
        triggerDelay - the value to set
        Returns:
        this builder