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

Quota Status REST api to respond with more information

    XMLWordPrintableJSON

Details

    Description

      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 introducing a 'satisfied' attribute in json response

      {
      	"infos": [{
      		"guarantee": [{
      			"name": "cpus",
      			"role": "*",
      			"scalar": {
      				"value": 10.0,
      				"satisfied": 8.0
      			},
      			"type": "SCALAR"
      		}],
      		"role": "test"
      	}]
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dhilipkumars Dhilip Kumar S
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: