You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2019/11/08 05:56:26 UTC

[GitHub] [cassandra-sidecar] nvharikrishna commented on a change in pull request #4: Virtual tables API endpoints for sidecar for CASSANDRA-15124

nvharikrishna commented on a change in pull request #4: Virtual tables API endpoints for sidecar for CASSANDRA-15124
URL: https://github.com/apache/cassandra-sidecar/pull/4#discussion_r343997811
 
 

 ##########
 File path: api.yaml
 ##########
 @@ -15,6 +15,130 @@ tags:
     description: Execute, coordinate, or schedule operations
 
 paths:
+  /api/v1/threadpools:
+    get:
+      tags:
+        - visibility
+      summary: Thread pools
+      operationId: threadpools
+      description: |
+        Provides usage statistics of thread pools
+      responses:
+        '200':
+          description: Thread pool statistics
+          content:
+            application/json:
+              schema:
+                type: object
+                additionalProperties:
+                  $ref: '#/components/schemas/ThreadPool'
+                example:
+                  "ReadStage": {
+                    "activeTasks": 0,
+                    "activeTasksLimit": 32,
+                    "pendingTasks": 0,
+                    "completedTasks": 75,
+                    "blockedTasks": 0,
+                    "blockedTasksAllTime": 0
+                  }
+                  "MutationStage": {
+                    "activeTasks": 32,
+                    "activeTasksLimit": 32,
+                    "pendingTasks": 1023,
+                    "completedTasks": 0,
+                    "blockedTasks": 0,
+                    "blockedTasksAllTime": 0
+                  }
+        '503':
+          description: Resource not available due to version conflict or connectivity to cluster
+          content:
+            application/json:
+              schema:
+                type: object
+                items:
+                  $ref: '#/components/schemas/Error'
+
+  /api/v1/settings:
 
 Review comment:
   "v1" indicates major api version, but mentioning it here leaves the possibility of of having multiple major versions of an endpoint where others don't have. Can we use server object to mention the version like shown here: https://swagger.io/specification/#serverObject ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org