On 1/20/11 10:02 AM, Heiko W.Rupp wrote:
Am 20.01.2011 um 16:49 schrieb Brian Stansberry:
> For a read, there is a an address that specifically targets an
> individual server; the metric can be read from that:
>
> [{"host" =>
"hostA"},{"server"=>"server1"},{"subsystem"
=>
> "datasources"}, {"datasource" => "XXX"}]
Fine, that per server-instance metric reading is required by RHQ.
We were also discussing on how to 'batch' those together
e.g.
{"server-group"=>"myGroup"},{"subsystem"=>"datasources"},
{"datasource"=>"XXX"} to get at all the metrics across the
servers
in a group in one go.
Read the same metric, but from the domain-level resource:
[{"profile" => "production"},{"subsystem" =>
"datasources"},
{"datasource" => "XXX"}]
The result would incorporate the values for all servers that are running
the "production" profile. See "Multi-Server Responses" on
http://community.jboss.org/docs/DOC-16354.
Limiting the result to servers in a particular server group could be
done with a parameter to the operation.
But then I may confuse this with the discussion on how to expose this
as REST url.
Heiko (pilhuhn)
--
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat