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
|
|
|
stepID string,
|
2025-02-19 22:11:55 +08:00
|
|
|
item string,
|
|
|
|
links []advisor.CheckErrorLink,
|
2025-02-07 22:48:18 +08:00
|
|
|
) *advisor.CheckReportFailure {
|
|
|
|
return &advisor.CheckReportFailure{
|
2025-02-06 20:35:40 +08:00
|
|
|
Severity: severity,
|
|
|
|
StepID: stepID,
|
2025-02-19 22:11:55 +08:00
|
|
|
Item: item,
|
|
|
|
Links: links,
|
2025-02-06 20:35:40 +08:00
|
|
|
}
|
|
|
|
}
|