Bug 534863 (RHQ-1618)
| Summary: | Print out all alert conditions instead of "Multiple Conditions" | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Jeff Weiss <jweiss> |
| Component: | Alerts | Assignee: | John Mazzitelli <mazz> |
| Status: | CLOSED NOTABUG | QA Contact: | Jeff Weiss <jweiss> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | cwelton, dajohnso |
| Target Milestone: | --- | Keywords: | FutureFeature, Improvement |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jira.rhq-project.org/browse/RHQ-1618 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
rev3078
|
|
| Last Closed: | 2011-02-11 22:07:11 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 585306 | ||
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1618 mass add of key word FutureFeature to help track 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. |
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.