Interviewer - Server > Architecture > Interview Service tier > Quota web service > Quota web service > Reading quotas > /Quota/Projects/[ProjectName]/QuotaGroups URL
 
/Quota/Projects/[ProjectName]/QuotaGroups URL
This URL returns information about all of the quota groups for the requested project
XML example
<QuotaGroups>
<QuotaGroup Name="Expressions" Type="Expression"
    TotalCompleted="20" TotalPending="5" TotalToTarget="25"
    TotalTarget="75" />
  <QuotaGroup Name="UseQ" Type="Table" PendMode="LeastFull"
    PendLimit="3" TotalCompleted="45" TotalPending="5"
    TotalToTarget="50" TotalTarget="100"/>
</QuotaGroups>
JSON example
{
"QuotaGroup": [
{
"Name": "Expressions",
"Type": "Expression",
"TotalCompleted": "20",
        "TotalPending": 5,
        "TotalToTarget": 25,
"TotalTarget": "75"
},
{
"Name": "UseQ",
"Type": "Table",
"PendMode": "LeastFull",
"PendLimit": "3",
"TotalCompleted": "45",
        "TotalPending": 5,
        "TotalToTarget": 50,
        "TotalTarget": "100"
}
]
}
Type attribute
The Type attribute can be one of these values:
Expression
The quota is based on an arbitrary expression, usually used for sample quotas. See also PendMode attribute and PendLimit attribute.
Table
The quota is based on possible answers for a categorical variable.
“Total” attributes
The TotalCompleted, TotalPending, TotalToTarget, and TotalTarget attributes are always present. See also /Quota/Projects/[ProjectName] URL.
PendMode attribute
For quota groups of type “Table” that are based on a multiple response categorical, there is a PendMode attribute.
Possible values for the PendMode attribute are:
Normal
Pend all quotas corresponding to the responses.
Priority
Prioritize based on the priority value of each quota.
Random
Prioritize randomly.
LeastFull
Prioritize based on the percentage completed (completed divided by target).
LeastFullCompletes
Prioritize based on the absolute value of the complete count.
PendMode is not included in the response if its value is “Normal”.
PendLimit attribute
For quota groups of type “Table” that are based on a multiple response categorical, there is a PendMode attribute.
PendLimit is the maximum number of quota cells to pend.
PendLimit is not included in the response if the PendMode is "Normal".
See also
Reading quotas