summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-11-01 15:04:01 +0100
committerGitHub <noreply@github.com>2020-11-01 15:04:01 +0100
commit89bb83a4beb058d1459a6dcb2b2469c5313f8cbb (patch)
tree334773e534a9cc613e43dfa48291f51170b7a030 /api
parent948451af545b089d0f85b2a7ba2ad57f963cf18d (diff)
parent7725a580c0c3938b826c77d39da0b6a0ced119ab (diff)
Merge pull request #59 from atlarge-research/feat/schedulers
Make all implemented schedulers available through API
Diffstat (limited to 'api')
-rw-r--r--api/opendc/api/v2/schedulers/endpoint.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/api/opendc/api/v2/schedulers/endpoint.py b/api/opendc/api/v2/schedulers/endpoint.py
index 127b5f1a..9c19f631 100644
--- a/api/opendc/api/v2/schedulers/endpoint.py
+++ b/api/opendc/api/v2/schedulers/endpoint.py
@@ -1,6 +1,16 @@
from opendc.util.rest import Response
-SCHEDULERS = ['core-mem']
+SCHEDULERS = [
+ 'mem',
+ 'mem-inv',
+ 'core-mem',
+ 'core-mem-inv',
+ 'active-servers',
+ 'active-server-inv',
+ 'provisioned-cores',
+ 'provisioned-cores-inv',
+ 'random'
+]
def GET(_):