Bug 959587

Summary: Alert definition should display units when entering a value; e.g. 'seconds' or 'megabytes'
Product: [Other] RHQ Project Reporter: Elias Ross <genman>
Component: Core UIAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.5CC: hrupp, jkandasa
Target Milestone: ---   
Target Release: RHQ 4.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-24 19:08:36 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 Elias Ross 2013-05-03 21:20:12 UTC
When entering a definition to alert on a particular quantity, I can't always recall the units from the plugin definition. For example, I may have chosen 'seconds' or 'milliseconds' for a particular metric. But to correctly choose a value, I need to know when entering '5' for example, RHQ will understand it as '5' seconds or 5 milliseconds.

Why not display the units, either as-is or in a drop-down or parseable value. E.g. for a time value, allow the choice of milliseconds, seconds, days, etc. either by entering '5s' or selecting 'seconds.'?

Comment 1 Heiko W. Rupp 2013-06-29 15:11:17 UTC
I totally agree.
As the input form already has the units available for validation purposes, this should be an easy fix.

Comment 2 Jirka Kremser 2013-07-19 14:19:19 UTC
branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=78eb557ae
time:    2013-07-19 16:17:53 +0200
commit:  78eb557ae8f799b628769d76ccece61b6cb452a4
author:  Jirka Kremser - jkremser
message: [BZ 959587] - Alert definition should display units when entering a
         value; e.g. 'seconds' or 'megabytes' - Adding "BaseUnits"
         field to the popup form. The tooltip displays all allowed
         units from the same MeasurementUnits.Family.

Comment 3 Jeeva Kandasamy 2013-08-29 14:31:10 UTC
Version: 4.9.0-SNAPSHOT
Build Number: e3e001b
GWT Version: 2.5.0
SmartGWT Version: 3.0

fix verified. It's designed as per user expectation. 

For duration allowed units: j,ns,us,ms,s,m,h,d (default: s)
For size allowed units: B,KB,MB,TB,PB (default: B)

Comment 4 Heiko W. Rupp 2013-09-24 19:08:36 UTC
Bulk closing of RHQ 4.9 verified items