But is there a way to do it (use the operation result like a metric showing
a graph)?
On Thu, Aug 26, 2010 at 1:04 PM, John Mazzitelli <mazz(a)redhat.com> wrote:
Metrics don't have "parameters". We have an XML Schema
.xsd that is
available that contains the full schema with comments for documentation
that show you valid descriptor info:
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=tree;f=modules/core/clie...
That shows you the rhq-plugin.xsd AND the configuration.xsd (which is
reused in other places, rhq-plugin.xsd among them).
On 08/26/2010 11:05 AM, Cesar William wrote:
> Hi,
> I have this service:
>
> <service name="Usage"
discovery="MBeanResourceDiscoveryComponent"
> class="MBeanResourceComponent"
> description="Usage"
> createDeletePolicy="neither"
singleton="true">
> <plugin-configuration>
> <c:simple-property name="objectName" readOnly="true"
> default="javax.slee.usage:type=Usage"/>
> <c:simple-property name="nameTemplate"
default="SleeUsage"/>
> </plugin-configuration>
> <operation name="getFirstCount"
> displayName="getFirstCount"
> description="Operation exposed for management">
> <parameters>
> <c:simple-property name="p1" type="boolean"
required="true"
> default="false"/>
> </parameters>
> <results>
> <c:simple-property name="operationResult" type="long"/>
> </results>
> </operation>
> <metric property="FirstCount"
> displayName="First Count"
> defaultOn="true"
> displayType="summary"
> defaultInterval="30000"
> description="First Count">
> <parameters>
> <c:simple-property name="p1" type="boolean"
default="false"/>
> </parameters>
> </metric>
> </service>
>
> The operation works fine. But in the metric I can't pass a parameter
> like I done. How can I show the FirstCount in metric?
>
> --
> Att,
> Cesar William Alvarenga
>
>
>
> _______________________________________________
> rhq-users mailing list
> rhq-users(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/rhq-users
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/rhq-users
--
Att,
Cesar William Alvarenga