mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* tech(routines): move the async logic from notification to alerting notifier
* tech(notification): reduce code dupe
* fix(notification): dont touch the response unless its an error
* feat(alerting): make alerting exeuction async but flow sync
* tech(alerting): remove commented code
* tech(alerting): remove unused code
* tech(alerting): fix typo
* tech(alerting): implement Context on EvalContext
* tech(alerting): wait for all alerts to return
* feat(alerting): dont allow alert responses to cancel
* Revert "feat(alerting): dont allow alert responses to cancel"
This reverts commit 324b006c96
.
* feat(alerting): give alerts some time to finish before closing down
41 lines
628 B
Go
41 lines
628 B
Go
package models
|
|
|
|
import "errors"
|
|
|
|
var ErrInvalidEmailCode = errors.New("Invalid or expired email code")
|
|
|
|
type SendEmailCommand struct {
|
|
To []string
|
|
Template string
|
|
Data map[string]interface{}
|
|
Massive bool
|
|
Info string
|
|
}
|
|
|
|
type SendEmailCommandSync struct {
|
|
SendEmailCommand
|
|
}
|
|
|
|
type SendWebhook struct {
|
|
Url string
|
|
User string
|
|
Password string
|
|
Body string
|
|
}
|
|
|
|
type SendWebhookSync struct {
|
|
Url string
|
|
User string
|
|
Password string
|
|
Body string
|
|
}
|
|
|
|
type SendResetPasswordEmailCommand struct {
|
|
User *User
|
|
}
|
|
|
|
type ValidateResetPasswordCodeQuery struct {
|
|
Code string
|
|
Result *User
|
|
}
|