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