Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: common/api/swarming/swarming/v1/swarming-api.json

Issue 2219023003: Update APIs to use new Google cloud paths. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: common/api/swarming/swarming/v1/swarming-api.json
diff --git a/common/api/swarming/swarming/v1/swarming-api.json b/common/api/swarming/swarming/v1/swarming-api.json
index cd7fa6c284efc6ca6b0246472e6ce8eea6bc2b2f..cf206f0c2de04fffef9bcbac46c89b546a0a9359 100644
--- a/common/api/swarming/swarming/v1/swarming-api.json
+++ b/common/api/swarming/swarming/v1/swarming-api.json
@@ -1,6 +1,6 @@
{
"kind": "discovery#restDescription",
- "etag": "\"zRMgE0l9nVDW4S28VYYcYQF9UW4/8_shWf2ZUvFErNzQ1lbRNMlwmCs\"",
+ "etag": "\"zRMgE0l9nVDW4S28VYYcYQF9UW4/stcRi2opcnMI_33ybfewv4rTtu4\"",
"discoveryVersion": "v1",
"id": "swarming:v1",
"name": "swarming",
@@ -225,6 +225,33 @@
}
}
},
+ "SwarmingRpcsBotsCount": {
+ "id": "SwarmingRpcsBotsCount",
+ "type": "object",
+ "description": "Returns the count, as requested.",
+ "properties": {
+ "busy": {
+ "type": "string",
+ "format": "int64"
+ },
+ "count": {
+ "type": "string",
+ "format": "int64"
+ },
+ "dead": {
+ "type": "string",
+ "format": "int64"
+ },
+ "now": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "quarantined": {
+ "type": "string",
+ "format": "int64"
+ }
+ }
+ },
"SwarmingRpcsCancelResponse": {
"id": "SwarmingRpcsCancelResponse",
"type": "object",
@@ -902,6 +929,35 @@
},
"bots": {
"methods": {
+ "count": {
+ "id": "swarming.bots.count",
+ "path": "bots/count",
+ "httpMethod": "GET",
+ "description": "Counts number of bots with given dimensions.",
+ "parameters": {
+ "cursor": {
+ "type": "string",
+ "location": "query"
+ },
+ "dimensions": {
+ "type": "string",
+ "repeated": true,
+ "location": "query"
+ },
+ "limit": {
+ "type": "string",
+ "default": "200",
+ "format": "int64",
+ "location": "query"
+ }
+ },
+ "response": {
+ "$ref": "SwarmingRpcsBotsCount"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/userinfo.email"
+ ]
+ },
"list": {
"id": "swarming.bots.list",
"path": "bots/list",

Powered by Google App Engine
This is Rietveld 408576698