Modifier and Type | Method and Description |
---|---|
protected Alert |
AlertRunnable.buildAlert(Cluster cluster,
AlertDefinitionEntity myDefinition,
AlertState alertState,
String message)
Builds an
Alert instance. |
Modifier and Type | Method and Description |
---|---|
static AlertDefinitionResponse |
AlertDefinitionResponse.coerce(AlertDefinitionEntity entity)
Gets an
AlertDefinitionResponse from the supplied entity. |
Modifier and Type | Method and Description |
---|---|
static void |
AlertResourceProviderUtils.verifyAuthorization(AlertDefinitionEntity entity,
Set<RoleAuthorization> clusterLevelAuthorizations,
Set<RoleAuthorization> serviceLevelAuthorizations,
String operation)
Tests if the authenticated user is authorized to for either service- or cluster-level access to
alert data.
|
static void |
AlertResourceProviderUtils.verifyExecuteAuthorization(AlertDefinitionEntity entity)
Tests if the authenticated user is authorized to execute service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyManageAuthorization(AlertDefinitionEntity entity)
Tests if the authenticated user is authorized to manage service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyToggleAuthorization(AlertDefinitionEntity entity)
Tests if the authenticated user is authorized to toggle service- or cluster-level alert data.
|
static void |
AlertResourceProviderUtils.verifyViewAuthorization(AlertDefinitionEntity entity)
Tests if the authenticated user is authorized to view service- or cluster-level alert data.
|
Modifier and Type | Method and Description |
---|---|
AlertDefinitionEntity |
AlertDefinitionDAO.findById(long definitionId)
Gets an alert definition with the specified ID.
|
AlertDefinitionEntity |
AlertDefinitionDAO.findByName(long clusterId,
String definitionName)
Gets an alert definition with the specified name.
|
AlertDefinitionEntity |
AlertDefinitionDAO.merge(AlertDefinitionEntity alertDefinition)
Merge the speicified alert definition with the existing definition in the
database.
|
Modifier and Type | Method and Description |
---|---|
List<AlertDefinitionEntity> |
AlertDefinitionDAO.findAgentScoped(long clusterId)
Gets all alert definitions that are not bound to a particular service.
|
List<AlertDefinitionEntity> |
AlertDefinitionDAO.findAll()
Gets all alert definitions stored in the database.
|
List<AlertDefinitionEntity> |
AlertDefinitionDAO.findAll(long clusterId)
Gets all alert definitions stored in the database.
|
List<AlertDefinitionEntity> |
AlertDefinitionDAO.findAllEnabled(long clusterId)
Gets all enabled alert definitions stored in the database for the specified
cluster.
|
List<AlertDefinitionEntity> |
AlertDefinitionDAO.findByIds(List<Long> definitionIds)
Gets all of the alert definitions for the list of IDs given.
|
List<AlertDefinitionEntity> |
AlertDefinitionDAO.findByService(long clusterId,
String serviceName)
Gets all alert definitions for the given service in the specified cluster.
|
List<AlertDefinitionEntity> |
AlertDefinitionDAO.findByServiceComponent(long clusterId,
String serviceName,
String componentName)
Gets all alert definitions that are not bound to a particular service.
|
List<AlertDefinitionEntity> |
AlertDefinitionDAO.findByServiceMaster(long clusterId,
Set<String> services)
Gets all alert definitions for the specified services that do not have a
component and do not belong to AGGREGATE source type.
|
List<AlertDefinitionEntity> |
AlertDefinitionDAO.findBySourceType(Long clusterId,
SourceType sourceType) |
Modifier and Type | Method and Description |
---|---|
void |
AlertDefinitionDAO.create(AlertDefinitionEntity alertDefinition)
Persists a new alert definition, also creating the associated
AlertGroupEntity relationship for the definition's service default
group. |
void |
AlertDefinitionDAO.createOrUpdate(AlertDefinitionEntity alertDefinition)
Creates or updates the specified entity.
|
List<AlertGroupEntity> |
AlertDispatchDAO.findGroupsByDefinition(AlertDefinitionEntity definitionEntity)
Gets all of the
AlertGroupEntity instances that include the
specified alert definition. |
AlertDefinitionEntity |
AlertDefinitionDAO.merge(AlertDefinitionEntity alertDefinition)
Merge the speicified alert definition with the existing definition in the
database.
|
void |
AlertDefinitionDAO.refresh(AlertDefinitionEntity alertDefinition)
Refresh the state of the alert definition from the database.
|
void |
AlertDefinitionDAO.remove(AlertDefinitionEntity alertDefinition)
Removes the specified alert definition and all related history and
associations from the database.
|
Modifier and Type | Field and Description |
---|---|
static javax.persistence.metamodel.SingularAttribute<AlertHistoryEntity,AlertDefinitionEntity> |
AlertHistoryEntity_.alertDefinition |
static javax.persistence.metamodel.SingularAttribute<AlertCurrentEntity,AlertDefinitionEntity> |
AlertCurrentEntity_.alertDefinition |
static javax.persistence.metamodel.SetAttribute<AlertDefinitionEntity,AlertGroupEntity> |
AlertDefinitionEntity_.alertGroups |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,ClusterEntity> |
AlertDefinitionEntity_.clusterEntity |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,Long> |
AlertDefinitionEntity_.clusterId |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,String> |
AlertDefinitionEntity_.componentName |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,Long> |
AlertDefinitionEntity_.definitionId |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,String> |
AlertDefinitionEntity_.definitionName |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,Integer> |
AlertDefinitionEntity_.enabled |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,String> |
AlertDefinitionEntity_.hash |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,String> |
AlertDefinitionEntity_.helpURL |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,String> |
AlertDefinitionEntity_.label |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,Integer> |
AlertDefinitionEntity_.scheduleInterval |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,Scope> |
AlertDefinitionEntity_.scope |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,String> |
AlertDefinitionEntity_.serviceName |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,String> |
AlertDefinitionEntity_.source |
static javax.persistence.metamodel.SingularAttribute<AlertDefinitionEntity,SourceType> |
AlertDefinitionEntity_.sourceType |
Modifier and Type | Method and Description |
---|---|
AlertDefinitionEntity |
AlertHistoryEntity.getAlertDefinition()
Gets the associated alert definition for this alert instance.
|
Modifier and Type | Method and Description |
---|---|
Collection<AlertDefinitionEntity> |
ClusterEntity.getAlertDefinitionEntities() |
Set<AlertDefinitionEntity> |
AlertGroupEntity.getAlertDefinitions()
Gets all of the alert definitions that are a part of this grouping.
|
Modifier and Type | Method and Description |
---|---|
void |
AlertGroupEntity.addAlertDefinition(AlertDefinitionEntity definition)
Adds the specified definition to the definitions that this group will
dispatch to.
|
void |
AlertGroupEntity.removeAlertDefinition(AlertDefinitionEntity definition)
Removes the specified definition from the definitions that this group will
dispatch to.
|
void |
AlertHistoryEntity.setAlertDefinition(AlertDefinitionEntity alertDefinition)
Sets the associated alert definition for this alert instance.
|
Modifier and Type | Method and Description |
---|---|
void |
AlertGroupEntity.setAlertDefinitions(Set<AlertDefinitionEntity> alertDefinitions)
Set all of the alert definitions that are part of this alert group.
|
Modifier and Type | Method and Description |
---|---|
AlertDefinitionEntity |
AlertDefinitionFactory.coerce(long clusterId,
AlertDefinition definition)
Gets an
AlertDefinitionEntity constructed from the specified
AlertDefinition . |
AlertDefinitionEntity |
AlertDefinitionFactory.merge(AlertDefinition definition,
AlertDefinitionEntity entity)
Merges the specified
AlertDefinition into the
AlertDefinitionEntity , leaving any fields not merged intact. |
AlertDefinitionEntity |
AlertDefinitionFactory.mergeSource(Source source,
AlertDefinitionEntity entity)
Updates source and source type of
entity from source . |
Modifier and Type | Method and Description |
---|---|
AlertDefinition |
AlertDefinitionFactory.coerce(AlertDefinitionEntity entity)
Gets an
AlertDefinition constructed from the specified
AlertDefinitionEntity . |
Set<String> |
AlertDefinitionHash.invalidateHosts(AlertDefinitionEntity definition)
Invalidate the hashes of any host that would be affected by the specified
definition.
|
AlertDefinitionEntity |
AlertDefinitionFactory.merge(AlertDefinition definition,
AlertDefinitionEntity entity)
Merges the specified
AlertDefinition into the
AlertDefinitionEntity , leaving any fields not merged intact. |
AlertDefinitionEntity |
AlertDefinitionFactory.mergeSource(Source source,
AlertDefinitionEntity entity)
Updates source and source type of
entity from source . |
Modifier and Type | Method and Description |
---|---|
AlertDefinitionEntity |
AlertNoticeDispatchService.AlertInfo.getAlertDefinition()
Gets the alert definition for this alert.
|
Copyright © 2022 Apache Software Foundation. All rights reserved.