vCenter

 View Only
Expand all | Collapse all

Access metric info in the collector class

  • 1.  Access metric info in the collector class

    Posted Jan 30, 2013 04:49 PM

    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.



  • 2.  RE: Access metric info in the collector class

    Posted Feb 11, 2013 07:17 PM

    anyone ?