Skip to content

Commit

Permalink
openapi: return human-readable quota values
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez committed Oct 16, 2020
1 parent c250e92 commit f4a76d8
Showing 1 changed file with 60 additions and 8 deletions.
68 changes: 60 additions & 8 deletions reana_commons/openapi_specifications/reana_server.json
Expand Up @@ -2329,12 +2329,26 @@
"full_name": "John Doe",
"quota": {
"cpu": {
"limit": 200000,
"usage": 70536
"health": "healthy",
"limit": {
"human_readable": "3m 20s",
"raw": 200000
},
"usage": {
"human_readable": "1m 10s",
"raw": 70536
}
},
"disk": {
"limit": 200000,
"usage": 408
"health": "healthy",
"limit": {
"human_readable": "50 MB",
"raw": 52430000
},
"usage": {
"human_readable": "766 KB",
"raw": 784384
}
}
},
"reana_token": {
Expand All @@ -2354,22 +2368,60 @@
"properties": {
"cpu": {
"properties": {
"health": {
"type": "string"
},
"limit": {
"type": "number"
"properties": {
"human_readable": {
"type": "string"
},
"raw": {
"type": "number"
}
},
"type": "object"
},
"usage": {
"type": "number"
"properties": {
"human_readable": {
"type": "string"
},
"raw": {
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
},
"disk": {
"properties": {
"health": {
"type": "string"
},
"limit": {
"type": "number"
"properties": {
"human_readable": {
"type": "string"
},
"raw": {
"type": "number"
}
},
"type": "object"
},
"usage": {
"type": "number"
"properties": {
"human_readable": {
"type": "string"
},
"raw": {
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
Expand Down

0 comments on commit f4a76d8

Please sign in to comment.