mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-06 02:26:24 +00:00
18 lines
396 B
Go
18 lines
396 B
Go
package gonextcloud
|
|
|
|
import (
|
|
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
|
"net/http"
|
|
)
|
|
|
|
//Monitoring return nextcloud monitoring statistics
|
|
func (c *Client) Monitoring() (*types.Monitoring, error) {
|
|
res, err := c.baseRequest(http.MethodGet, routes.monitor, nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
var m types.MonitoringResponse
|
|
res.JSON(&m)
|
|
return &m.Ocs.Data, nil
|
|
}
|