summaryrefslogtreecommitdiff
path: root/opendc-api-spec.yml
diff options
context:
space:
mode:
authorjc0b <j@jc0b.computer>2020-07-08 17:00:44 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:00 +0200
commit0e6283dafb3378a4e86de330f3f53aa100b757de (patch)
tree045514ce4e8e708e9fe3a6d505dfaf0353773809 /opendc-api-spec.yml
parent5d5b32abb37330f1de5b49dfe639bb65b358f6f1 (diff)
parentb30906bbe0d5f343b337a80de1b4b70ebf288331 (diff)
Merge branch 'master' of github.com:atlarge-research/opendc-dev
Diffstat (limited to 'opendc-api-spec.yml')
-rw-r--r--opendc-api-spec.yml62
1 files changed, 6 insertions, 56 deletions
diff --git a/opendc-api-spec.yml b/opendc-api-spec.yml
index ad9c91fc..aa78a84a 100644
--- a/opendc-api-spec.yml
+++ b/opendc-api-spec.yml
@@ -500,7 +500,7 @@ paths:
put:
tags:
- scenarios
- description: "Update this Scenario."
+ description: "Update this Scenario's name (other properties are read-only)."
parameters:
- name: scenarioId
in: path
@@ -509,7 +509,7 @@ paths:
type: string
- name: scenario
in: body
- description: Scenario's new properties.
+ description: Scenario with new name.
required: true
schema:
$ref: '#/definitions/Scenario'
@@ -550,7 +550,7 @@ paths:
/schedulers:
get:
tags:
- - experiments
+ - simulation
description: Get all available Schedulers
responses:
'200':
@@ -564,7 +564,7 @@ paths:
/traces:
get:
tags:
- - experiments
+ - simulation
description: Get all available Traces (non-populated).
responses:
'200':
@@ -583,7 +583,7 @@ paths:
'/traces/{traceId}':
get:
tags:
- - experiments
+ - simulation
description: Get this Trace.
parameters:
- name: traceId
@@ -703,22 +703,6 @@ paths:
description: Prefab not found.
definitions:
- MachineState:
- type: object
- properties:
- _id:
- type: string
- machineId:
- type: string
- experimentId:
- type: string
- tick:
- type: integer
- inUseMemoryMb:
- type: integer
- loadFraction:
- type: number
- format: float
Prefab:
type: object
properties:
@@ -732,38 +716,6 @@ definitions:
datetimeLastEdited:
type: string
format: dateTime
- RackState:
- type: object
- properties:
- _id:
- type: string
- rackId:
- type: string
- experimentId:
- type: string
- tick:
- type: integer
- inUseMemoryMb:
- type: integer
- loadFraction:
- type: number
- format: float
- RoomState:
- type: object
- properties:
- _id:
- type: string
- roomId:
- type: string
- experimentId:
- type: string
- tick:
- type: integer
- inUseMemoryMb:
- type: integer
- loadFraction:
- type: number
- format: float
Scheduler:
type: object
properties:
@@ -786,7 +738,7 @@ definitions:
type: array
items:
type: string
- experimentIds:
+ portfolioIds:
type: array
items:
type: string
@@ -886,8 +838,6 @@ definitions:
type: string
name:
type: string
- type:
- type: string
scenarioIds:
type: array
items: