mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-16 01:56:24 +00:00
17 lines
328 B
Go
17 lines
328 B
Go
|
package gonextcloud
|
||
|
|
||
|
import (
|
||
|
"github.com/partitio/gonextcloud/types"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func (c *Client) Monitoring() (*types.Monitoring, error) {
|
||
|
res, err := c.baseRequest(routes.monitor, "", "", nil, http.MethodGet)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
var m types.MonitoringResponse
|
||
|
res.JSON(&m)
|
||
|
return &m.Ocs.Data, nil
|
||
|
}
|