Documentation ¶
Index ¶
- func CreateTestAlertRule(t testing.TB, ctx context.Context, dbstore *store.DBstore, ...) *models.AlertRule
- func CreateTestAlertRuleWithLabels(t testing.TB, ctx context.Context, dbstore *store.DBstore, ...) *models.AlertRule
- func SetupTestEnv(tb testing.TB, baseInterval time.Duration) (*ngalert.AlertNG, *store.DBstore)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestAlertRule ¶
func CreateTestAlertRule(t testing.TB, ctx context.Context, dbstore *store.DBstore, intervalSeconds int64, orgID int64) *models.AlertRule
CreateTestAlertRule creates a dummy alert definition to be used by the tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.