VMware Cloud Community
amurty
Enthusiast
Enthusiast

Access metric info in the collector class

I am writing a custom plugin.
This plugin has a collector class.
In the collector class, I would like to list all metrics and their properties (interval, name, etc) for that plugin.

In  the measurement class, the 'getValue' function is passed the Metric  object as an argument. So it is easy to extract metric info from this  argument object.
In the collector class, the 'collect' function is not passed any argument.
However,  i can access a method called  'org.hyperic.hq.product.pluginxml.PluginData.getMetrics('Name')' in the  collector. But i am not sure what 'Name' here means.

Any suggestions ?

Danke.

0 Kudos
1 Reply
amurty
Enthusiast
Enthusiast

anyone ?

0 Kudos