http://jira.hyperic.com/browse/HHQ-4059
The current output from the metricData command is formatted to be human readable. This is not desirable since output from the CLI should be easily parseable via scripting. The existing output looks like:
~/hyperic/hq-trunk/hqapi/build/hqapi1-3.2(master) $ ./bin/hqapi.sh metricData list --resourceId=10885
Last metric values for Morgan.local
Availability (id=10100) = 1.0 (at Mon Jun 07 16:22:00 PDT 2010)
Free Memory (id=10106) = 1.865187328E9 (at Mon Jun 07 16:20:00 PDT 2010)
Load Average 5 Minutes (id=10109) = 0.51611328125 (at Mon Jun 07 16:20:00 PDT 2010)
Swap Used (id=10166) = 0.0 (at Mon Jun 07 16:20:00 PDT 2010)
~/hyperic/hq-trunk/hqapi/build/hqapi1-3.2(master) $ ./bin/hqapi.sh metricData list --metricId=10109
Values for Load Average 5 Minutes on Morgan.local
Mon Jun 07 16:15:00 PDT 2010 = 0.51611
Mon Jun 07 16:20:00 PDT 2010 = 0.51611
I propose that by default we change this to be the CSV format. By default we would output dates as epoch-millis with an additional option --formatDates to convert to to human readable dates in the current locale.
Anonymous