Class MonitoringTemplate.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public MonitoringTemplate.Builder displayName​(String displayName)
        A user-friendly name for the monitoring template.

        It should be unique, and it’s mutable in nature. Avoid entering confidential information.

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

        public MonitoringTemplate.Builder compartmentId​(String compartmentId)
        The OCID of the compartment containing the monitoringTemplate.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • description

        public MonitoringTemplate.Builder description​(String description)
        A user-friendly description for the monitoring template.

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

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

        public MonitoringTemplate.Builder destinations​(List<String> destinations)
        A list of destinations for alarm notifications.

        Each destination is represented by the OCID of a related resource.

        Parameters:
        destinations - the value to set
        Returns:
        this builder
      • isAlarmsEnabled

        public MonitoringTemplate.Builder isAlarmsEnabled​(Boolean isAlarmsEnabled)
        Whether the alarm is enabled or disabled.

        Default value is enabled.

        Parameters:
        isAlarmsEnabled - the value to set
        Returns:
        this builder
      • isSplitNotificationEnabled

        public MonitoringTemplate.Builder isSplitNotificationEnabled​(Boolean isSplitNotificationEnabled)
        Whether the alarm notification is enabled or disabled, it will be Enabled by default.
        Parameters:
        isSplitNotificationEnabled - the value to set
        Returns:
        this builder
      • repeatNotificationDuration

        public MonitoringTemplate.Builder repeatNotificationDuration​(String repeatNotificationDuration)
        The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption.

        Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.

        Parameters:
        repeatNotificationDuration - the value to set
        Returns:
        this builder
      • messageFormat

        public MonitoringTemplate.Builder messageFormat​(MessageFormat messageFormat)
        The format to use for alarm notifications.
        Parameters:
        messageFormat - the value to set
        Returns:
        this builder
      • totalAlarmConditions

        public MonitoringTemplate.Builder totalAlarmConditions​(Float totalAlarmConditions)
        Total Alarm Conditions
        Parameters:
        totalAlarmConditions - the value to set
        Returns:
        this builder
      • totalAppliedAlarmConditions

        public MonitoringTemplate.Builder totalAppliedAlarmConditions​(Float totalAppliedAlarmConditions)
        Total Applied Alarm Conditions
        Parameters:
        totalAppliedAlarmConditions - the value to set
        Returns:
        this builder
      • timeCreated

        public MonitoringTemplate.Builder timeCreated​(Date timeCreated)
        The date and time the monitoringTemplate was created.

        Format defined by RFC3339.

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public MonitoringTemplate.Builder timeUpdated​(Date timeUpdated)
        The date and time the monitoringTemplate was last updated.

        Format defined by RFC3339.

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • freeformTags

        public MonitoringTemplate.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public MonitoringTemplate.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • systemTags

        public MonitoringTemplate.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

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