mq icon indicating copy to clipboard operation
mq copied to clipboard

meta-data endpoints

Open bradrydzewski opened this issue 9 years ago • 1 comments

we should provide a set of endpoint for administrators to get meta-data, such as:

  1. list of all active sessions
  2. list of all subscriptions for a single session
  3. list of all active handlers (topics, queues, etc)
  4. list of all enqueues messages in a single queue
  5. list of all subscribers to a single queue

bradrydzewski avatar Sep 23 '16 17:09 bradrydzewski

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"
  }
]

bradrydzewski avatar Sep 26 '16 19:09 bradrydzewski