Skip to content

Commit

Permalink
Fix formatting in rest/node.rst and statement.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
steveburnett committed Aug 14, 2024
1 parent c8a4c55 commit d3dd60a
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 236 deletions.
165 changes: 82 additions & 83 deletions presto-docs/src/main/sphinx/rest/node.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,25 @@ Node Resource

**Example response**:

.. sourcecode:: http

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

[
{
"uri":"http://10.209.57.156:8080",
"recentRequests":25.181940555111073,
"recentFailures":0.0,
"recentSuccesses":25.195472984170983,
"lastRequestTime":"2013-12-22T13:32:44.673-05:00",
"lastResponseTime":"2013-12-22T13:32:44.677-05:00",
"age":"14155.28ms",
"recentFailureRatio":0.0,
"recentFailuresByType":{}
}
]

.. sourcecode:: http

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

[
{
"uri":"http://10.209.57.156:8080",
"recentRequests":25.181940555111073,
"recentFailures":0.0,
"recentSuccesses":25.195472984170983,
"lastRequestTime":"2013-12-22T13:32:44.673-05:00",
"lastResponseTime":"2013-12-22T13:32:44.677-05:00",
"age":"14155.28ms",
"recentFailureRatio":0.0,
"recentFailuresByType":{}
}
]

If a node is experiencing errors, you'll see a response that looks
like the following. Here we have a node which has experienced a
Expand All @@ -53,37 +52,37 @@ Node Resource

**Example response with Errors**:

.. sourcecode:: http
HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

[
{
"age": "4.45m",
"lastFailureInfo": {
"message": "Connect Timeout",
"stack": [
"org.eclipse.jetty.io.ManagedSelector$ConnectTimeout.run(ManagedSelector.java:683)",
....
"java.lang.Thread.run(Thread.java:745)"
],
"suppressed": [],
"type": "java.net.SocketTimeoutException"
},
"lastRequestTime": "2017-08-05T11:53:00.647Z",
"lastResponseTime": "2017-08-05T11:53:00.647Z",
"recentFailureRatio": 0.47263053472046446,
"recentFailures": 2.8445543205610617,
"recentFailuresByType": {
"java.net.SocketTimeoutException": 2.8445543205610617
},
"recentRequests": 6.018558073577414,
"recentSuccesses": 3.1746446343010297,
"uri": "http://172.19.0.3:8080"
}
]
.. sourcecode:: http

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

[
{
"age": "4.45m",
"lastFailureInfo": {
"message": "Connect Timeout",
"stack": [
"org.eclipse.jetty.io.ManagedSelector$ConnectTimeout.run(ManagedSelector.java:683)",
....
"java.lang.Thread.run(Thread.java:745)"
],
"suppressed": [],
"type": "java.net.SocketTimeoutException"
},
"lastRequestTime": "2017-08-05T11:53:00.647Z",
"lastResponseTime": "2017-08-05T11:53:00.647Z",
"recentFailureRatio": 0.47263053472046446,
"recentFailures": 2.8445543205610617,
"recentFailuresByType": {
"java.net.SocketTimeoutException": 2.8445543205610617
},
"recentRequests": 6.018558073577414,
"recentSuccesses": 3.1746446343010297,
"uri": "http://172.19.0.3:8080"
}
]

.. function:: GET /v1/node/failed

Expand All @@ -94,35 +93,35 @@ Node Resource

**Example response**:

.. sourcecode:: http

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

[
{
"age": "1.37m",
"lastFailureInfo": {
"message": "Connect Timeout",
"stack": [
"org.eclipse.jetty.io.ManagedSelector$ConnectTimeout.run(ManagedSelector.java:683)",
.....
"java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)",
"java.lang.Thread.run(Thread.java:745)"
],
"suppressed": [],
"type": "java.net.SocketTimeoutException"
},
"lastRequestTime": "2017-08-05T11:52:42.647Z",
"lastResponseTime": "2017-08-05T11:52:42.647Z",
"recentFailureRatio": 0.22498784153043677,
"recentFailures": 20.11558290058638,
"recentFailuresByType": {
"java.net.SocketTimeoutException": 20.11558290058638
},
"recentRequests": 89.40742203558189,
"recentSuccesses": 69.30583024727453,
"uri": "http://172.19.0.3:8080"
}
]
.. sourcecode:: http

HTTP/1.1 200 OK
Vary: Accept
Content-Type: text/javascript

[
{
"age": "1.37m",
"lastFailureInfo": {
"message": "Connect Timeout",
"stack": [
"org.eclipse.jetty.io.ManagedSelector$ConnectTimeout.run(ManagedSelector.java:683)",
....
"java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)",
"java.lang.Thread.run(Thread.java:745)"
],
"suppressed": [],
"type": "java.net.SocketTimeoutException"
},
"lastRequestTime": "2017-08-05T11:52:42.647Z",
"lastResponseTime": "2017-08-05T11:52:42.647Z",
"recentFailureRatio": 0.22498784153043677,
"recentFailures": 20.11558290058638,
"recentFailuresByType": {
"java.net.SocketTimeoutException": 20.11558290058638
},
"recentRequests": 89.40742203558189,
"recentSuccesses": 69.30583024727453,
"uri": "http://172.19.0.3:8080"
}
]
Loading

0 comments on commit d3dd60a

Please sign in to comment.