adamantal commented on a change in pull request #109: [YUNIKORN-14] Add rest
API to retrieve app/container history info
URL:
https://github.com/apache/incubator-yunikorn-core/pull/109#discussion_r398556921
##########
File path: pkg/webservice/handlers.go
##########
@@ -235,3 +236,57 @@ func getNodeJSON(nodeInfo *cache.NodeInfo)
*dao.NodeDAOInfo {
Schedulable: nodeInfo.IsSchedulable(),
}
}
+
+func GetApplicationHistory(w http.ResponseWriter, r *http.Request) {
+ writeHeaders(w)
+
+ var result []*dao.ApplicationHistoryDAOInfo
+ lists := gClusterInfo.ListPartitions()
+ for _, k := range lists {
Review comment:
Agreed. Modified this and other classes in the PR accordingly.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]