mirror of
https://github.com/inexio/thola.git
synced 2026-10-25 15:19:17 +03:00
24 lines
516 B
Go
24 lines
516 B
Go
package request
|
|
|
|
import (
|
|
"context"
|
|
"github.com/inexio/go-monitoringplugin"
|
|
)
|
|
|
|
// CheckDiskRequest
|
|
//
|
|
// CheckDiskRequest is the request struct for the check disk request.
|
|
//
|
|
// swagger:model
|
|
type CheckDiskRequest struct {
|
|
CheckDeviceRequest
|
|
DiskThresholds monitoringplugin.Thresholds `json:"diskThresholds" xml:"diskThresholds"`
|
|
}
|
|
|
|
func (r *CheckDiskRequest) validate(ctx context.Context) error {
|
|
if err := r.DiskThresholds.Validate(); err != nil {
|
|
return err
|
|
}
|
|
return r.CheckDeviceRequest.validate(ctx)
|
|
}
|