@Entity public class AlertGroupEntity extends Object
AlertGroupEntity
class manages the logical groupings of
AlertDefinitionEntity
s in order to easily define what alerts an
AlertTargetEntity
should be notified on.Constructor and Description |
---|
AlertGroupEntity() |
Modifier and Type | Method and Description |
---|---|
void |
addAlertDefinition(AlertDefinitionEntity definition)
Adds the specified definition to the definitions that this group will
dispatch to.
|
void |
addAlertTarget(AlertTargetEntity alertTarget)
Adds the specified target to the targets that this group will dispatch to.
|
boolean |
equals(Object object) |
Set<AlertDefinitionEntity> |
getAlertDefinitions()
Gets all of the alert definitions that are a part of this grouping.
|
Set<AlertTargetEntity> |
getAlertTargets()
Gets an immutable set of the targets that will receive notifications for
alert definitions in this group.
|
Long |
getClusterId()
Gets the ID of the cluster that this alert group is a part of.
|
Long |
getGroupId()
Gets the unique ID of this grouping of alerts.
|
String |
getGroupName()
Gets the name of the grouping of alerts.
|
String |
getServiceName()
Gets the name of the service.
|
int |
hashCode() |
boolean |
isDefault()
Gets whether this is a default group and is mostly read-only.
|
void |
removeAlertDefinition(AlertDefinitionEntity definition)
Removes the specified definition from the definitions that this group will
dispatch to.
|
void |
removeAlertTarget(AlertTargetEntity alertTarget)
Removes the specified target from the targets that this group will dispatch
to.
|
void |
setAlertDefinitions(Set<AlertDefinitionEntity> alertDefinitions)
Set all of the alert definitions that are part of this alert group.
|
void |
setAlertTargets(Set<AlertTargetEntity> alertTargets)
Sets all of the targets that will receive notifications for alert
definitions in this group.
|
void |
setClusterId(Long clusterId)
Sets the ID of the cluster that this alert group is a part of.
|
void |
setDefault(boolean isDefault)
Sets whether this is a default group and is immutable.
|
void |
setGroupId(Long groupId)
Sets the unique ID of this grouping of alerts.
|
void |
setGroupName(String groupName)
Sets the name of this grouping of alerts.
|
void |
setServiceName(String serviceName)
Set the service name.
|
String |
toString() |
public Long getGroupId()
null
).public void setGroupId(Long groupId)
groupId
- the ID (not null
).public Long getClusterId()
null
).public void setClusterId(Long clusterId)
clusterId
- the ID of the cluster (not null
).public String getGroupName()
null
).public void setGroupName(String groupName)
groupName
- the name of the group (not null
).public boolean isDefault()
true
if this is a default group, false
otherwise.public void setDefault(boolean isDefault)
isDefault
- true
to make this group immutable.public String getServiceName()
isDefault()
is true
.null
if
this is not a default group.public void setServiceName(String serviceName)
isDefault()
is
true
.serviceName
- the service that this is the default group for, or null
if
this is not a default group.public Set<AlertDefinitionEntity> getAlertDefinitions()
public void setAlertDefinitions(Set<AlertDefinitionEntity> alertDefinitions)
alertDefinitions
- the definitions, or null
for none.public void addAlertDefinition(AlertDefinitionEntity definition)
definition
- the definition to add (not null
).public void removeAlertDefinition(AlertDefinitionEntity definition)
definition
- the definition to remove (not null
).public Set<AlertTargetEntity> getAlertTargets()
null
).public void addAlertTarget(AlertTargetEntity alertTarget)
alertTarget
- the target to add (not null
).public void removeAlertTarget(AlertTargetEntity alertTarget)
alertTarget
- the target to remove (not null
).public void setAlertTargets(Set<AlertTargetEntity> alertTargets)
alertTargets
- the targets, or null
if there are none.Copyright © 2022 Apache Software Foundation. All rights reserved.