manirajv06 commented on a change in pull request #216:
URL: 
https://github.com/apache/incubator-yunikorn-core/pull/216#discussion_r563316841



##########
File path: pkg/webservice/dao/partition_info.go
##########
@@ -24,12 +24,29 @@ type PartitionDAOInfo struct {
        Queues        QueueDAOInfo      `json:"queues"`
 }
 
+type PartitionInfo struct {
+       Name                    string            `json:"name"`
+       Capacity                PartitionCapacity `json:"capacity"`
+       NodeSortingPolicy       string            `json:"nodeSortingPolicy"`
+       Applications            Applications      `json:"applications"`
+       State                   string            `json:"state"`
+       LastStateTransitionTime string            
`json:"lastStateTransitionTime"`
+}
+
 type PartitionCapacity struct {
        Capacity     string `json:"capacity"`
-       UsedCapacity string `json:"usedcapacity"`
+       UsedCapacity string `json:"usedCapacity"`
 }
 
 type NodeInfo struct {
        NodeID     string `json:"nodeId"`
        Capability string `json:"capability"`
 }
+
+type Applications struct {
+       Total     int `json:"total"`
+       Running   int `json:"running"`
+       Pending   int `json:"pending"`
+       Completed int `json:"completed"`
+       Failed    int `json:"failed"`

Review comment:
       I was trying to sum up certain states under common state. However, 
showing up each state count is also detailed enough. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to