Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4512

Render quota status consistently with other endpoints.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: master
    • Labels:

      Description

      Currently quota status endpoint returns a collection of QuotaInfo protos converted to JSON. An example response looks like this:

      {
        "infos": [
          {
            "role": "role1",
            "guarantee": [
              {
                "name": "cpus",
                "role": "*",
                "type": "SCALAR",
                "scalar": { "value": 12 }
              },
              {
                "name": "mem",
                "role": "*",
                "type": "SCALAR",
                "scalar": { "value": 6144 }
              }
            ]
          }
        ]
      }
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alexr Alex R
                Reporter:
                alexr Alex R
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: