You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Dhilip Kumar S (JIRA)" <ji...@apache.org> on 2016/07/20 21:26:20 UTC
[jira] [Updated] (MESOS-5873) Quota Status REST api to respond with
more information
[ https://issues.apache.org/jira/browse/MESOS-5873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dhilip Kumar S updated MESOS-5873:
----------------------------------
Description:
The Status Rest API for Quota
https://mesos.apache.org/documentation/latest/quota/
{code}
Currently responds with below json,
{
"infos": [{
"guarantee": [{
"name": "cpus",
"role": "*",
"scalar": {
"value": 10.0
},
"type": "SCALAR"
}],
"role": "test"
}]
}
{code}
It will be more meaningful if the status also responds with additional information such as how much of the Quota is currently being satisfied. Something like below introducing a *'satisfied'* attribute in json response
{code}
{
"infos": [{
"guarantee": [{
"name": "cpus",
"role": "*",
"scalar": {
"value": 10.0,
"satisfied": 8.0
},
"type": "SCALAR"
}],
"role": "test"
}]
}
{code}
was:
The Status Rest API for Quota
https://mesos.apache.org/documentation/latest/quota/
Currently responds with below json,
{
"infos": [{
"guarantee": [{
"name": "cpus",
"role": "*",
"scalar": {
"value": 10.0
},
"type": "SCALAR"
}],
"role": "test"
}]
}
It will be more meaningful if the status also responds with additional information such as how much of the Quota is currently being satisfied. Something like below
{
"infos": [{
"guarantee": [{
"name": "cpus",
"role": "*",
"scalar": {
"value": 10.0,
"satisfied": 8.0
},
"type": "SCALAR"
}],
"role": "test"
}]
}
> Quota Status REST api to respond with more information
> ------------------------------------------------------
>
> Key: MESOS-5873
> URL: https://issues.apache.org/jira/browse/MESOS-5873
> Project: Mesos
> Issue Type: Improvement
> Components: HTTP API
> Environment: https://mesos.apache.org/documentation/latest/quota/
> Reporter: Dhilip Kumar S
> Priority: Minor
>
> The Status Rest API for Quota
> https://mesos.apache.org/documentation/latest/quota/
> {code}
> Currently responds with below json,
> {
> "infos": [{
> "guarantee": [{
> "name": "cpus",
> "role": "*",
> "scalar": {
> "value": 10.0
> },
> "type": "SCALAR"
> }],
> "role": "test"
> }]
> }
> {code}
> It will be more meaningful if the status also responds with additional information such as how much of the Quota is currently being satisfied. Something like below introducing a *'satisfied'* attribute in json response
> {code}
> {
> "infos": [{
> "guarantee": [{
> "name": "cpus",
> "role": "*",
> "scalar": {
> "value": 10.0,
> "satisfied": 8.0
> },
> "type": "SCALAR"
> }],
> "role": "test"
> }]
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)