Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1298144] - Missing "Event Detection" option from the drop down li…
Browse files Browse the repository at this point in the history
…st when trying to create an alert using alert template.

Now request for MetadataType events and resourceConfigurationDefinition to take into account the EventDetection.
  • Loading branch information
josejulio committed Jan 27, 2016
1 parent 2a589c3 commit 07484f2
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -82,7 +82,7 @@ public ConditionsEditor(SelectItem conditionExpression, ResourceType resourceTyp
* Returns the conditions that this editor currently has in memory.
* This will never be <code>null</code>. This collection serves for new
* or deleted conditions.
*
*
* @return conditions set that was possibly edited by the user
*/
public HashSet<AlertCondition> getConditions() {
Expand All @@ -93,7 +93,7 @@ public HashSet<AlertCondition> getConditions() {
* Returns the conditions that this editor currently has in memory.
* This will never be <code>null</code>. This collection holds modified
* existing conditions.
*
*
* @return modifiedConditions map of modified conditions that exist in the db, key is id
*/
public Map<Integer, AlertCondition> getModifiedConditions() {
Expand Down Expand Up @@ -209,8 +209,10 @@ public void executeAction(ListGridRecord[] selection, Object actionValue) {
private void showConditionEditor(final AlertCondition existingCondition) {

// we need the drift definition templates (if there are any) so we know if we should offer drift conditions as an option
ResourceTypeRepository.Cache.getInstance().getResourceTypes(resourceType.getId(),
EnumSet.of(MetadataType.driftDefinitionTemplates), new ResourceTypeRepository.TypeLoadedCallback() {
ResourceTypeRepository.Cache.getInstance()
.getResourceTypes(resourceType.getId(), EnumSet.of(MetadataType.driftDefinitionTemplates,
MetadataType.events, MetadataType.resourceConfigurationDefinition),
new ResourceTypeRepository.TypeLoadedCallback() {
@Override
public void onTypesLoaded(ResourceType type) {
// the resource type repo caches types - so if this resource type was already cached prior
Expand Down

0 comments on commit 07484f2

Please sign in to comment.