[ 
https://issues.apache.org/jira/browse/MESOS-4512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306083#comment-15306083
 ] 

Vinod Kone commented on MESOS-4512:
-----------------------------------

Why is `role` here misleading? In the v1 master API we are modeling the output 
as QuotaInfo as well. Let me know how you want it to look instead. Note that 
the output needs to be a protobuf not a model() in v1.

> Render quota status consistently with other endpoints.
> ------------------------------------------------------
>
>                 Key: MESOS-4512
>                 URL: https://issues.apache.org/jira/browse/MESOS-4512
>             Project: Mesos
>          Issue Type: Bug
>          Components: master
>            Reporter: Alexander Rukletsov
>            Assignee: Alexander Rukletsov
>              Labels: http, mesosphere
>
> Currently quota status endpoint returns a collection of {{QuotaInfo}} protos 
> converted to JSON. An example response looks like this:
> {code:xml}
> {
>   "infos": [
>     {
>       "role": "role1",
>       "guarantee": [
>         {
>           "name": "cpus",
>           "role": "*",
>           "type": "SCALAR",
>           "scalar": { "value": 12 }
>         },
>         {
>           "name": "mem",
>           "role": "*",
>           "type": "SCALAR",
>           "scalar": { "value": 6144 }
>         }
>       ]
>     }
>   ]
> }
> {code}
> Presence of some fields, e.g. "role", is misleading. To address this issue 
> and make the output more informative, we should probably introduce a  
> {{model()}} function for {{QuotaStatus}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to