Red Hat Bugzilla – Bug 1258873
It is not possible to delete events using RHQ CLI
Last modified: 2015-10-26 05:15:44 EDT
Description of problem:
** int deleteEventsForContext(Subject subject, EntityContext context, List<Integer> eventIds);
** int purgeEventsForContext(Subject subject, EntityContext context);
are not exposed in EventManagerRemote so it is not possible to delete events using RHQ CLI.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I tried on master  and it seems that these methods are already exposed on the RHQ CLI.
$ ./rhq-cli.sh -u rhqadmin -p rhqadmin
RHQ Enterprise Remote CLI 4.14.0-SNAPSHOT
Logging in with default host: [localhost]
Logging in with default port: 
Remote server version is: 4.14.0-SNAPSHOT (86bbcd5)
$ ec = EntityContext.forResource(10001);
deleteEventsForContext findEventsByCriteria getSeverityBuckets
getSeverityBucketsForAutoGroup getSeverityBucketsForCompGroup purgeEventsForContext
int deleteEventsForContext(EntityContext, List)
Is already fixed or Am I missing something?
According to https://github.com/rhq-project/rhq/commit/5419181f4 (see: https://bugzilla.redhat.com/show_bug.cgi?id=1258870#c4) - this has been done in RHQ 4.13 - so RHQ 4.14 will contain the change.