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

Side by Side Diff: appengine/swarming/elements/res/imp/botlist/bot-list-data.html

Issue 2241413002: Refactor out reusable pieces from new Botlist (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Address comments 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 unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 Copyright 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 5
6 This in an HTML Import-able file that contains the definition 6 This in an HTML Import-able file that contains the definition
7 of the following elements: 7 of the following elements:
8 8
9 <bot-list-data> 9 <bot-list-data>
10 10
(...skipping 12 matching lines...) Expand all
23 server-side. This can have dimensions:Array<String>, quarantined:String 23 server-side. This can have dimensions:Array<String>, quarantined:String
24 and is_dead: String. For example: 24 and is_dead: String. For example:
25 { 25 {
26 "dimensions": ["pool:Skia", "device_type:Sprout"], 26 "dimensions": ["pool:Skia", "device_type:Sprout"],
27 "quarantined": "FALSE", // optional 27 "quarantined": "FALSE", // optional
28 "is_dead": "TRUE", // optional 28 "is_dead": "TRUE", // optional
29 } 29 }
30 For a full list of dimensions in the fleet, see the API call: 30 For a full list of dimensions in the fleet, see the API call:
31 https://[swarming_url]/_ah/api/swarming/v1/bots/dimensions 31 https://[swarming_url]/_ah/api/swarming/v1/bots/dimensions
32 // outputs 32 // outputs
33 bots: Array<Object>, all bots returned by the botlist. This is an Object 33 bots: Array<Object>, all bots returned by the server. This is an Object
34 with at least the following structure: 34 with at least the following structure:
35 dimensions: Array<Object>: Has key:String and value:Array<String> 35 dimensions: Array<Object>: Has key:String and value:Array<String>
36 task_id: String 36 task_id: String
37 external_ip: String 37 external_ip: String
38 is_dead: Object: Is usually Boolean, but could be message string 38 is_dead: Object: Is usually Boolean, but could be message string
39 quarantined: Object: Is usually Boolean, but could be message string 39 quarantined: Object: Is usually Boolean, but could be message string
40 bot_id: String 40 bot_id: String
41 state: String, Stringified JSON that has many pieces of information, like 41 state: String, Stringified JSON that has many pieces of information, like
42 devices, disk space, temperature, etc. 42 devices, disk space, temperature, etc.
43 busy: Boolean, if any ajax requests are in flight. 43 busy: Boolean, if any ajax requests are in flight.
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 // No need to sort any of this, bot-filters sorts secondary items 279 // No need to sort any of this, bot-filters sorts secondary items
280 // automatically, especially when the user types a query. 280 // automatically, especially when the user types a query.
281 return pMap; 281 return pMap;
282 }, 282 },
283 283
284 }); 284 });
285 })(); 285 })();
286 </script> 286 </script>
287 </dom-module> 287 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698