Files
grafana/pkg/services/ngalert/api/tooling/definitions/api.go
Alexander Weaver 17e76b06ff Alerting: Fix rendering issues in OpenAPI docs (#50630)
* Clean up status codes

* Missing consumes tag

* Regenerate

* Fix incorrect documented responses and missing UI elements

* Fix response docs

* Fix wrong response copy paste

* Regenerate

* Temporarily revert
2022-06-13 12:51:07 -05:00

47 lines
775 B
Go

// Grafana Alerting API.
//
// Package definitions includes the types required for generating or consuming an OpenAPI
// spec for the Grafana Alerting API.
//
//
// Schemes: http, https
// BasePath: /api/v1
// Version: 1.1.0
//
// Consumes:
// - application/json
//
// Produces:
// - application/json
//
// Security:
// - basic
//
// SecurityDefinitions:
// basic:
// type: basic
//
// swagger:meta
package definitions
type Backend int
const (
GrafanaBackend Backend = iota
AlertmanagerBackend
LoTexRulerBackend
)
func (b Backend) String() string {
switch b {
case GrafanaBackend:
return "grafana"
case AlertmanagerBackend:
return "alertmanager"
case LoTexRulerBackend:
return "lotex"
default:
return ""
}
}