mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* add get mute timing by name to MuteTimingService * update get mute timing request handler to use the service method * replace validation, uniqueness and used errors with errutils * update mute timing methods return errutil responses * use the term "time interval" in errors bevause mute timings are deprecated in Alertmanager and will be replaced by time intervals in the future. * update create and update methods to return struct instead of pointer
30 lines
511 B
Go
30 lines
511 B
Go
package definitions
|
|
|
|
import "github.com/grafana/grafana/pkg/util/errutil"
|
|
|
|
// swagger:model
|
|
type NotFound struct{}
|
|
|
|
// swagger:model
|
|
type Ack struct{}
|
|
|
|
// swagger:model
|
|
type ValidationError struct {
|
|
// example: error message
|
|
Msg string `json:"msg"`
|
|
}
|
|
|
|
// swagger:model
|
|
type ForbiddenError struct {
|
|
// The response message
|
|
// in: body
|
|
Body errutil.PublicError `json:"body"`
|
|
}
|
|
|
|
// swagger:model
|
|
type GenericPublicError struct {
|
|
// The response message
|
|
// in: body
|
|
Body errutil.PublicError `json:"body"`
|
|
}
|