Bug 967744 - Unable to create alert definition with Event condition type
Summary: Unable to create alert definition with Event condition type
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: REST
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: RHQ 4.8
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-28 08:34 UTC by Libor Zoubek
Modified: 2015-11-02 00:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-11 09:53:46 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 967488 0 unspecified CLOSED Unable to create alert definition with condition based on operation result 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 967742 0 unspecified CLOSED Unable to create alert definition with Drift condition type 2021-02-22 00:41:40 UTC

Internal Links: 967488 967742

Description Libor Zoubek 2013-05-28 08:34:17 UTC
Description of problem: I a not able to create alert condition of 'Drift' type. Issue is very similar to Bug 967488


Version-Release number of selected component (if applicable):
4.8-master

How reproducible: always


Steps to Reproduce:
do POST /alert/definitions?resourceId=xxx

with body

{"dampeningCategory": "NONE", "conditions": [{"category": "EVENT", "name": "INFO", "option": ".*"}], "conditionMode": "ALL", "enabled": true, "name": "rest-condition-event"}

Actual results:
Can not construct instance of org.rhq.core.domain.alert.AlertConditionOperator from String value 'INFO': value not one of declared Enum instance names\n at [Source: org.apache.catalina.connector.CoyoteInputStream@327cc96c; line: 1, column: 66] (through reference chain: org.rhq.enterprise.server.rest.domain.AlertDefinitionRest[\"conditions\"]->org.rhq.enterprise.server.rest.domain.AlertConditionRest[\"name\"])

Expected results:

alert definition is created. When creating a definition of type "EVENT", "name" should be interpreted as "event severity" enum and "option" is a regular expression to match message.

Comment 1 Heiko W. Rupp 2013-06-04 19:09:35 UTC
master e718326

Comment 2 Heiko W. Rupp 2013-09-11 09:53:46 UTC
Bulk closing of old issues now that HRQ 4.9 is in front of the door.

If you think the issue has not been solved, then please open a new bug and mention this one in the description.


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