vCenter

 View Only

Access metric info in the collector class

  • 1.  Access metric info in the collector class

    Posted Jan 29, 2013 04:21 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.