-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADDED] Option to include subscription details in monitoring responses #1318
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for public function and maybe some refactor to reduce duplicated code.
AuthorizedUser string `json:"authorized_user,omitempty"` | ||
Account string `json:"account,omitempty"` | ||
Subs []string `json:"subscriptions_list,omitempty"` | ||
SubsDetail []SubDetail `json:"subscriptions_list_detail,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have made it a []*SubDetail
in case we ever need to sort those (since []SubDetail would force move of SubDetail struct inside the array), but I see that we also use []SubDetail in subz, so...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment about the copy of routez option was not addressed?
6bb66f7
to
75b9399
Compare
…ses. Applies to routez and connz and closed connections. Enable by specifying subs=detail Signed-off-by: Matthias Hanel <mh@synadia.com>
75b9399
to
30ba333
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussion, changed the logic to avoid the copy alltogether.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
added sub=detail option to routez/connz.
When specified will include subscriptions_list_detail instead.
I would have liked to change the type of subscriptions_list from []string to []interface{} and not have subscriptions_list_detail, but that is part of the interface used by embedded server.
Applies to routez and connz and closed connections.
with detail
without