Class AlarmSuppressionHistoryItem.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • level

        public AlarmSuppressionHistoryItem.Builder level​(AlarmSuppressionHistoryItem.Level level)
        The level of this alarm suppression.

        ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

        Parameters:
        level - the value to set
        Returns:
        this builder
      • displayName

        public AlarmSuppressionHistoryItem.Builder displayName​(String displayName)
        A user-friendly name for the alarm suppression.

        It does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public AlarmSuppressionHistoryItem.Builder description​(String description)
        Human-readable reason for this alarm suppression.

        It does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Oracle recommends including tracking information for the event or associated work, such as a ticket number.

        Example: Planned outage due to change IT-1234.

        Parameters:
        description - the value to set
        Returns:
        this builder
      • dimensions

        public AlarmSuppressionHistoryItem.Builder dimensions​(Map<String,​String> dimensions)
        Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs.

        Example: {"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"}

        Parameters:
        dimensions - the value to set
        Returns:
        this builder
      • timeEffectiveFrom

        public AlarmSuppressionHistoryItem.Builder timeEffectiveFrom​(Date timeEffectiveFrom)
        The start date and time for the suppression actually starts, inclusive.

        Format defined by RFC3339.

        Example: 2023-02-01T01:02:29.600Z

        Parameters:
        timeEffectiveFrom - the value to set
        Returns:
        this builder
      • timeEffectiveUntil

        public AlarmSuppressionHistoryItem.Builder timeEffectiveUntil​(Date timeEffectiveUntil)
        The end date and time for the suppression actually ends, inclusive.

        Format defined by RFC3339.

        Example: 2023-02-01T02:02:29.600Z

        Parameters:
        timeEffectiveUntil - the value to set
        Returns:
        this builder
      • suppressionConditions

        public AlarmSuppressionHistoryItem.Builder suppressionConditions​(List<SuppressionCondition> suppressionConditions)
        Array of all preconditions for alarm suppression.

        Example: [{ conditionType: “RECURRENCE”, suppressionRecurrence: “FRQ=DAILY;BYHOUR=10”, suppressionDuration: “PT1H” }]

        Parameters:
        suppressionConditions - the value to set
        Returns:
        this builder