You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
Now, normally I would just make a PR about this and call it a day. But, I do not wanna do that here. Because this would make the get method return an object in some cases and a dict in other cases. Which seems bad.
I saw that basic composite support was added in #79
You chose not to make an object. Was this just the easiest thing at the time? In short... would it be a problem if I made a composite object and had get return that?
If I do that could I change get_composite to return the object instead of the raw response dict?
Also, where can I read more about these? My initial poking around did not find too much detail.
The text was updated successfully, but these errors were encountered:
@Bachmann1234 sorry I haven't had a chance to move forward on this. To answer your question, yes, #79 was to get the easiest thing done which is why I did not pollute the get() method (yet). I think if get returned a composite object that would be great, but I agree it shouldn't return the raw dict. Hopefully we'll have some bandwidth to devote to this soon. Thanks!
Composite metrics are a little bit peculiar and I would advice modeling them with basic data structures. Is there any particular pain we would fix if we model composite responses with objects ?
Howdy!
So when I make call to get
I get the following exception
What is going on is the metric being returned is a composite metric.
In fact with this commit I get something that works
Bachmann1234@e35bcd4
Now, normally I would just make a PR about this and call it a day. But, I do not wanna do that here. Because this would make the get method return an object in some cases and a dict in other cases. Which seems bad.
I saw that basic composite support was added in #79
You chose not to make an object. Was this just the easiest thing at the time? In short... would it be a problem if I made a composite object and had
get
return that?If I do that could I change get_composite to return the object instead of the raw response dict?
Also, where can I read more about these? My initial poking around did not find too much detail.
The text was updated successfully, but these errors were encountered: