Otto Fowler created METRON-982:
----------------------------------

             Summary: REST STORM Support for supervisor summary
                 Key: METRON-982
                 URL: https://issues.apache.org/jira/browse/METRON-982
             Project: Metron
          Issue Type: Improvement
            Reporter: Otto Fowler
            Assignee: Otto Fowler


The supervisor summary can be used for information on the cluster including the 
number of slots etc

StormStatusServiceImpl already calls the storm ui rest endpoints and should be 
extended to call:

{code}
/api/v1/supervisor/summary (GET)
returns all supervisors summary

Response Fields:

Field   Value   Description
id      String  Supervisor's id
host    String  Supervisor's host name
uptime  String  Shows how long the supervisor is running
slotsTotal      Integer Total number of available worker slots for this 
supervisor
slotsUsed       Integer Number of worker slots used on this supervisor
Sample Response:
json { "supervisors": [ { "id": "0b879808-2a26-442b-8f7d-23101e0c3696", "host": 
"10.11.1.7", "uptime": "5m 58s", "slotsTotal": 4, "slotsUsed": 3 } ] }
{code}




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to