Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 819612 - [plugin container] add validation of the metric data reported by plugins
Summary: [plugin container] add validation of the metric data reported by plugins
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: 4.4
Hardware: Unspecified
OS: Unspecified
high vote
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
Depends On:
TreeView+ depends on / blocked
Reported: 2012-05-07 17:49 UTC by Ian Springer
Modified: 2015-02-01 23:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Ian Springer 2012-05-07 17:49:49 UTC
Some things we can check and log plugin-error warnings (or even throw exceptions) for:

- metrics in the report are a subset of the metrics that were requested 
- the MeasurementScheduleRequests fields in the XxxDataXxx objects in the report are equivalent objects to the ones that were passed to the plugin's getValues() method
- metrics in the report have the correct data type - e.g. if a numeric metric named "foo" was requested, make sure the report contains a numeric metric "foo", and not a trait "foo" or call-time metric "foo".
- the report's collectionTime field has not been modified by the plugin - this field really should not even be exposed by the plugin API...

Comment 1 Mike Foley 2012-05-08 19:33:33 UTC
per BZ triage ... crouch, loleary, foley

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