From: "Thomas Segismont" <tsegismo(a)redhat.com>
To: hawkular-dev(a)lists.jboss.org
Sent: Wednesday, May 13, 2015 9:36:42 AM
Subject: Re: [Hawkular-dev] Tenant Id - Not Part of URL
Le 13/05/2015 15:34, Matt Wringe a écrit :
> Personally I think a matrix parameter makes a lot more sense
>
>
http://hawkular/metrics;tenant=foo/gauges/....
>
> versus
>
>
http://hawkular/metrics/gauges/....?tenant=foo
>
> Always having to specify tenant at the end of the url seems strange to
> be. Logically I would think that it should be applied to the metrics
> resource itself and not to all the child resources.
>
> Something like this would normally mean that the parameter 'a' is to be
> applied to the 'foo/bar' resource:
>
http://foo/bar;a=b/baz
>
> While, something like this would normally mean that the parameter 'a' is
> to be applied to the 'foo/bar/baz' resource:
>
http://foo/bar/baz?a=b
>
I have no strong preference.
Note that the query param is just a fallback, in case a client can't set
the header (like somebody sending GET requests manually with a browser).
I think the matrix parameters have a closer semantics to the header ones. The main issues
was support for matrix params in the container. But we should not have any problems with
WF9 or latest Undertow. So I vote for matrix params too.
I will open a ticket against Hawkular Metrics to change the existing tenant query
parameter to a matrix parameter.
_______________________________________________
hawkular-dev mailing list
hawkular-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev