Github user revans2 commented on a diff in the pull request:

    https://github.com/apache/storm/pull/842#discussion_r43905552
  
    --- Diff: STORM-UI-REST-API.md ---
    @@ -636,6 +636,201 @@ Sample response:
     }
     ```
     
    +## Profiling and Debugging GET Operations
    +
    +###  /api/v1/topology/:id/profiling/start/:host-port/:timeout (GET)
    +
    +Request to start profiler on worker with timeout. Returns status and link 
to profiler artifacts for worker.
    +
    +|Parameter |Value   |Description  |
    +|----------|--------|-------------|
    +|id           |String (required)| Topology Id  |
    +|:host-port |String (required)| Worker Id |
    +|:timeout |String (required)| Time out for profiler to stop in minutes |
    +
    +Response fields:
    +
    +|Field  |Value |Description|
    +|-----     |----- |-----------|
    +|id   | String | Worker id|
    +|status | String | Response Status |
    +|timeout | String | Requested timeout
    +|dumplink | String | Link to logviewer URL for worker profiler documents.|
    +
    +Examples:
    +
    +```no-highlight
    +1. 
http://ui-daemon-host-name:8080/api/v1/topology/wordcount-1-1446614150/profiling/start/10.11.1.7:6701/10
    +2. 
http://ui-daemon-host-name:8080/api/v1/topology/wordcount-1-1446614150/profiling/start/10.11.1.7:6701/5
    +3. 
http://ui-daemon-host-name:8080/api/v1/topology/wordcount-1-1446614150/profiling/start/10.11.1.7:6701/20
    +```
    +
    +Sample response:
    +
    +```json
    +{
    +   "status": "ok",
    +   "id": "10.11.1.7:6701",
    +   "timeout": "10",
    +   "dumplink": 
"http:\/\/10.11.1.7:8000\/dumps\/wordcount-1-1446614150\/10.11.1.7%3A6701"
    +}
    +```
    +
    +###  /api/v1/topology/:id/profiling/dumpprofile/:host-port (GET)
    +
    +Request to dump profiler recording on worker. Returns status and worker id 
for the request.
    +
    +|Parameter |Value   |Description  |
    +|----------|--------|-------------|
    +|id           |String (required)| Topology Id  |
    --- End diff --
    
    Here too.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to