Bug 967742

Summary: Unable to create alert definition with Drift condition type
Product: [Other] RHQ Project Reporter: Libor Zoubek <lzoubek>
Component: RESTAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.8CC: theute
Target Milestone: ---   
Target Release: RHQ 4.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 09:53:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Libor Zoubek 2013-05-28 08:21:06 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/definition/?resourceId=xxx

with t{"dampeningCategory": "NONE", "conditions": [{"category": "DRIFT", "name": "drift.*", "option": ".*"}], "conditionMode": "ALL", "enabled": true, "name": "rest-condition-drift-detection"}his body


Actual results:
Can not construct instance of org.rhq.core.domain.alert.AlertConditionOperator from String value 'drift.*': value not one of declared Enum instance names\n at [Source: org.apache.catalina.connector.CoyoteInputStream@46cb0d63; 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 "DRIFT", "name" should be interpreted as "drift definition name" regular expression, do match drift definition, and "option" is a regular expression to match pathname.


Additional info:

Comment 1 Heiko W. Rupp 2013-06-04 19:10:08 UTC
master e718326

Comment 2 Heiko W. Rupp 2013-09-11 09:53:56 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.