Bug 534863 (RHQ-1618) - Print out all alert conditions instead of "Multiple Conditions"
Summary: Print out all alert conditions instead of "Multiple Conditions"
Keywords:
Status: CLOSED NOTABUG
Alias: RHQ-1618
Product: RHQ Project
Classification: Other
Component: Alerts
Version: unspecified
Hardware: All
OS: All
low
medium
Target Milestone: ---
: ---
Assignee: John Mazzitelli
QA Contact: Jeff Weiss
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: rhq4
TreeView+ depends on / blocked
 
Reported: 2009-02-20 15:06 UTC by Jeff Weiss
Modified: 2014-11-09 22:48 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
rev3078
Last Closed: 2011-02-11 22:07:11 UTC
Embargoed:


Attachments (Terms of Use)

Description Jeff Weiss 2009-02-20 15:06:00 UTC
In places where alert defs are listed (for instance, subsystem view, alerts tab), when an alert has multiple conditions, they are just printed as "Multiple Conditions" instead of listing the actual conditions with ORs or ANDs in between.

Would be nice to actually list the conditions.

I have rough client-side code that does this (of course it's just the clients memory of what it created, not the server's record of it), it goes something like this:

public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("Name: " + name + ", conditions: ");
		for (ConditionDefinition cond: conditions){
			sb.append(cond.toString() + ", ");
		}
		if (dampeningRule != null && !dampeningRule.equals(DampeningRule.EachTime)){
			sb.append(", Dampening " + (dampeningRule==null?"":dampeningRule.toString()) + " " + 
		
				(dampeningCount==null? "":dampeningCount) + 
				" times in " + dampeningPeriod + 
				(dampeningPeriodUnits==null?"evaluations":dampeningPeriodUnits));
		}
		return sb.toString();
	}

This doesn't differentiate between OR and AND but that's easy enough to do.

Comment 1 Red Hat Bugzilla 2009-11-10 20:36:50 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1618


Comment 2 wes hayutin 2010-02-16 17:09:21 UTC
mass add of key word FutureFeature to help track

Comment 3 John Mazzitelli 2011-02-11 22:07:11 UTC
in the new gwt ui, the condition set is shown as a table. see the new alert definition views where notifications and conditions are individually shown in their own tables.


Note You need to log in before you can comment on or make changes to this bug.