Package com.mypurecloud.sdk.v2.model
Class CommonRule
java.lang.Object
com.mypurecloud.sdk.v2.model.CommonRule
- All Implemented Interfaces:
Serializable
CommonRule
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconditions(CommonRuleConditions conditions) The set of metric conditions that would trigger an alert.dateCreated(Date dateCreated) The creation date of the rule when the rule was created.dateLastModified(Date dateLastModified) The timestamp of the last update to the rule.description(String description) The description of the rule.Indicates if the rule is enabled.booleangetId()getName()getType()getUser()inthashCode()Indicates if the rule is in alarm state.Name of the rulenotifications(List<AlertNotification> notifications) The alert notification types to trigger when alarm state changes as well as the users they will be sent to.sendExitingAlarmNotifications(Boolean sendExitingAlarmNotifications) Indicates if the alert will send a notification when it is closed.voidsetConditions(CommonRuleConditions conditions) voidsetDateCreated(Date dateCreated) voidsetDateLastModified(Date dateLastModified) voidsetDescription(String description) voidsetEnabled(Boolean enabled) voidsetInAlarm(Boolean inAlarm) voidvoidsetNotifications(List<AlertNotification> notifications) voidsetSendExitingAlarmNotifications(Boolean sendExitingAlarmNotifications) voidsetType(CommonRule.TypeEnum type) voidsetUser(UserReference user) voidsetVersion(Integer version) voidsetWaitBetweenNotificationMs(Long waitBetweenNotificationMs) toString()type(CommonRule.TypeEnum type) The type of the rule.user(UserReference user) The entity that created the rule.The current version number of the rule.waitBetweenNotificationMs(Long waitBetweenNotificationMs) The amount of time in milliseconds to wait between notification.
-
Constructor Details
-
CommonRule
public CommonRule() -
CommonRule
-
-
Method Details
-
getId
-
name
Name of the rule -
getName
-
setName
-
description
The description of the rule. -
getDescription
-
setDescription
-
enabled
Indicates if the rule is enabled. -
getEnabled
-
setEnabled
-
notifications
The alert notification types to trigger when alarm state changes as well as the users they will be sent to. -
getNotifications
-
setNotifications
-
sendExitingAlarmNotifications
Indicates if the alert will send a notification when it is closed. -
getSendExitingAlarmNotifications
-
setSendExitingAlarmNotifications
-
waitBetweenNotificationMs
The amount of time in milliseconds to wait between notification. -
getWaitBetweenNotificationMs
-
setWaitBetweenNotificationMs
-
conditions
The set of metric conditions that would trigger an alert. -
getConditions
-
setConditions
-
type
The type of the rule. -
getType
-
setType
-
inAlarm
Indicates if the rule is in alarm state. -
getInAlarm
-
setInAlarm
-
user
The entity that created the rule. -
getUser
-
setUser
-
version
The current version number of the rule. -
getVersion
-
setVersion
-
dateCreated
The creation date of the rule when the rule was created. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z -
getDateCreated
-
setDateCreated
-
dateLastModified
The timestamp of the last update to the rule. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z -
getDateLastModified
-
setDateLastModified
-
getSelfUri
-
equals
-
hashCode
public int hashCode() -
toString
-