enhance log querying in a multi-tenant environment

Signed-off-by: huanggze <“loganhuang@yunify.com”>
This commit is contained in:
huanggze
2019-04-12 18:53:20 +08:00
committed by zryfish
parent 800800acd1
commit eea2bb3724
2 changed files with 48 additions and 0 deletions

View File

@@ -105,6 +105,10 @@ func addWebService(c *restful.Container) error {
Param(ws.PathParameter("workspace", "workspace name")).
Doc("Delete devops project").
Metadata(restfulspec.KeyOpenAPITags, tags))
ws.Route(ws.GET("/logging").
To(tenant.LogQuery).
Doc("Query cluster-level logs in a multi-tenants environment").
Metadata(restfulspec.KeyOpenAPITags, tags))
c.Add(ws)
return nil