2025-02-06 20:35:40 +08:00
|
|
|
package checks
|
|
|
|
|
|
|
|
import (
|
|
|
|
advisor "github.com/grafana/grafana/apps/advisor/pkg/apis/advisor/v0alpha1"
|
|
|
|
)
|
|
|
|
|
2025-02-10 20:15:41 +08:00
|
|
|
const (
|
|
|
|
TypeLabel = "advisor.grafana.app/type"
|
|
|
|
StatusAnnotation = "advisor.grafana.app/status"
|
|
|
|
)
|
|
|
|
|
2025-02-07 22:48:18 +08:00
|
|
|
func NewCheckReportFailure(
|
|
|
|
severity advisor.CheckReportFailureSeverity,
|
2025-02-06 20:35:40 +08:00
|
|
|
reason string,
|
|
|
|
action string,
|
|
|
|
stepID string,
|
|
|
|
itemID string,
|
2025-02-07 22:48:18 +08:00
|
|
|
) *advisor.CheckReportFailure {
|
|
|
|
return &advisor.CheckReportFailure{
|
2025-02-06 20:35:40 +08:00
|
|
|
Severity: severity,
|
|
|
|
Reason: reason,
|
|
|
|
Action: action,
|
|
|
|
StepID: stepID,
|
|
|
|
ItemID: itemID,
|
|
|
|
}
|
|
|
|
}
|