mq
mq copied to clipboard
meta-data endpoints
we should provide a set of endpoint for administrators to get meta-data, such as:
- list of all active sessions
- list of all subscriptions for a single session
- list of all active handlers (topics, queues, etc)
- list of all enqueues messages in a single queue
- list of all subscribers to a single queue
some recent progress on this ...
list of active sessions:
GET /meta/sessions
[
{
"address": "127.0.0.1:60168",
"username": "johnsmith",
"headers": {
"x-real-ip": "127.0.0.1"
}
},
{
"address": "127.0.0.1:60169",
"username": "janedoe",
"headers": {
"x-real-ip": "127.0.0.1"
}
}
]
list of active handlers / destinations:
GET /meta/destinations
[
{
"destination": "\/topic\/events"
},
{
"destination": "\/topic\/logs.28"
},
{
"destination": "\/queue\/pending"
}
{
"destination": "\/queue\/updates"
}
]