Class AlarmCondition.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • monitoringTemplateId

        public AlarmCondition.Builder monitoringTemplateId​(String monitoringTemplateId)
        The OCID of the monitoring template.
        Parameters:
        monitoringTemplateId - the value to set
        Returns:
        this builder
      • namespace

        public AlarmCondition.Builder namespace​(String namespace)
        The stack monitoring service or application emitting the metric that is evaluated by the alarm.
        Parameters:
        namespace - the value to set
        Returns:
        this builder
      • compositeType

        public AlarmCondition.Builder compositeType​(String compositeType)
        The OCID of the composite resource type like EBS/PEOPLE_SOFT.
        Parameters:
        compositeType - the value to set
        Returns:
        this builder
      • resourceType

        public AlarmCondition.Builder resourceType​(String resourceType)
        The resource type OCID.
        Parameters:
        resourceType - the value to set
        Returns:
        this builder
      • metricName

        public AlarmCondition.Builder metricName​(String metricName)
        The metric name.
        Parameters:
        metricName - the value to set
        Returns:
        this builder
      • conditionType

        public AlarmCondition.Builder conditionType​(ConditionType conditionType)
        Type of defined monitoring template.
        Parameters:
        conditionType - the value to set
        Returns:
        this builder
      • conditions

        public AlarmCondition.Builder conditions​(List<Condition> conditions)
        Monitoring template conditions
        Parameters:
        conditions - the value to set
        Returns:
        this builder
      • timeCreated

        public AlarmCondition.Builder timeCreated​(Date timeCreated)
        The date and time the alarm condition was created.

        Format defined by RFC3339.

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

        public AlarmCondition.Builder timeUpdated​(Date timeUpdated)
        The date and time the alarm condition was updated.

        Format defined by RFC3339.

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

        public AlarmCondition.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 AlarmCondition.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 AlarmCondition.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