public static class MonitoringTemplate.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MonitoringTemplate |
build() |
MonitoringTemplate.Builder |
compartmentId(String compartmentId)
The OCID of the compartment containing the monitoringTemplate.
|
MonitoringTemplate.Builder |
copy(MonitoringTemplate model) |
MonitoringTemplate.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
MonitoringTemplate.Builder |
description(String description)
A user-friendly description for the monitoring template.
|
MonitoringTemplate.Builder |
destinations(List<String> destinations)
A list of destinations for alarm notifications.
|
MonitoringTemplate.Builder |
displayName(String displayName)
A user-friendly name for the monitoring template.
|
MonitoringTemplate.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
MonitoringTemplate.Builder |
id(String id)
The OCID of the
monitoringTemplate
|
MonitoringTemplate.Builder |
isAlarmsEnabled(Boolean isAlarmsEnabled)
Whether the alarm is enabled or disabled.
|
MonitoringTemplate.Builder |
isSplitNotificationEnabled(Boolean isSplitNotificationEnabled)
Whether the alarm notification is enabled or disabled, it will be Enabled by default.
|
MonitoringTemplate.Builder |
lifecycleState(MonitoringTemplateLifeCycleStates lifecycleState)
The current lifecycle state of the monitoring template.
|
MonitoringTemplate.Builder |
members(List<MemberReference> members)
List of members of this monitoring template.
|
MonitoringTemplate.Builder |
messageFormat(MessageFormat messageFormat)
The format to use for alarm notifications.
|
MonitoringTemplate.Builder |
repeatNotificationDuration(String repeatNotificationDuration)
The frequency for re-submitting alarm notifications, if the alarm keeps firing without
interruption.
|
MonitoringTemplate.Builder |
status(MonitoringTemplateLifeCycleDetails status)
The current status of the monitoring template i.e.
|
MonitoringTemplate.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
MonitoringTemplate.Builder |
tenantId(String tenantId)
Tenant Identifier
OCID
|
MonitoringTemplate.Builder |
timeCreated(Date timeCreated)
The date and time the monitoringTemplate was created.
|
MonitoringTemplate.Builder |
timeUpdated(Date timeUpdated)
The date and time the monitoringTemplate was last updated.
|
MonitoringTemplate.Builder |
totalAlarmConditions(Float totalAlarmConditions)
Total Alarm Conditions
|
MonitoringTemplate.Builder |
totalAppliedAlarmConditions(Float totalAppliedAlarmConditions)
Total Applied Alarm Conditions
|
public MonitoringTemplate.Builder id(String id)
The OCID of the monitoringTemplate
id
- the value to setpublic 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.
displayName
- the value to setpublic MonitoringTemplate.Builder tenantId(String tenantId)
Tenant Identifier OCID
tenantId
- the value to setpublic MonitoringTemplate.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the monitoringTemplate.
compartmentId
- the value to setpublic 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.
description
- the value to setpublic MonitoringTemplate.Builder status(MonitoringTemplateLifeCycleDetails status)
The current status of the monitoring template i.e. whether it is Applied or NotApplied.
status
- the value to setpublic MonitoringTemplate.Builder lifecycleState(MonitoringTemplateLifeCycleStates lifecycleState)
The current lifecycle state of the monitoring template.
lifecycleState
- the value to setpublic MonitoringTemplate.Builder destinations(List<String> destinations)
A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource.
destinations
- the value to setpublic MonitoringTemplate.Builder isAlarmsEnabled(Boolean isAlarmsEnabled)
Whether the alarm is enabled or disabled. Default value is enabled.
isAlarmsEnabled
- the value to setpublic MonitoringTemplate.Builder isSplitNotificationEnabled(Boolean isSplitNotificationEnabled)
Whether the alarm notification is enabled or disabled, it will be Enabled by default.
isSplitNotificationEnabled
- the value to setpublic MonitoringTemplate.Builder members(List<MemberReference> members)
List of members of this monitoring template.
members
- the value to setpublic 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.
repeatNotificationDuration
- the value to setpublic MonitoringTemplate.Builder messageFormat(MessageFormat messageFormat)
The format to use for alarm notifications.
messageFormat
- the value to setpublic MonitoringTemplate.Builder totalAlarmConditions(Float totalAlarmConditions)
Total Alarm Conditions
totalAlarmConditions
- the value to setpublic MonitoringTemplate.Builder totalAppliedAlarmConditions(Float totalAppliedAlarmConditions)
Total Applied Alarm Conditions
totalAppliedAlarmConditions
- the value to setpublic MonitoringTemplate.Builder timeCreated(Date timeCreated)
The date and time the monitoringTemplate was created. Format defined by RFC3339.
timeCreated
- the value to setpublic MonitoringTemplate.Builder timeUpdated(Date timeUpdated)
The date and time the monitoringTemplate was last updated. Format defined by RFC3339.
timeUpdated
- the value to setpublic 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"}
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic 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"}}
systemTags
- the value to setpublic MonitoringTemplate build()
public MonitoringTemplate.Builder copy(MonitoringTemplate model)
Copyright © 2016–2025. All rights reserved.