1. Add API of getting SC metrics. 2. Modify response body of the API of listing all PVCs of a SC

This commit is contained in:
wnxn
2018-05-25 14:02:42 +08:00
parent b7307da620
commit 09d7ccaaba
2 changed files with 57 additions and 9 deletions

View File

@@ -11,4 +11,9 @@ func Register(ws *restful.WebService, subPath string) {
To(models.GetPvcListBySc).Filter(route.RouteLogging)).
Consumes(restful.MIME_JSON, restful.MIME_XML).
Produces(restful.MIME_JSON)
ws.Route(ws.GET(subPath+"/storageclasses/{storageclass}/metrics").
To(models.GetScMetrics).Filter(route.RouteLogging)).
Consumes(restful.MIME_JSON, restful.MIME_XML).
Produces(restful.MIME_JSON)
}