mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
f6a46744a6
Backend: * Update the Grafana Alerting engine to provide feedback to HysteresisCommand. The feedback information is stored in state.Manager as a fingerprint of each state. The fingerprint is persisted to the database. Only fingerprints that belong to Pending and Alerting states are considered as "loaded" and provided back to the command. - add ResultFingerprint to state.State. It's different from other fingerprints we store in the state because it is calculated from the result labels. - add rule_fingerprint column to alert_instance - update alerting evaluator to accept AlertingResultsReader via context, and update scheduler to provide it. - add AlertingResultsFromRuleState that implements the new interface in eval package - update getExprRequest to patch the hysteresis command. * Only one "Recovery Threshold" query is allowed to be used in the alert rule and it must be the Condition. Frontend: * Add hysteresis option to Threshold in UI. It's called "Recovery Threshold" * Add test for getUnloadEvaluatorTypeFromCondition * Hide hysteresis in panel expressions * Refactor isInvalid and add test for it * Remove unnecesary React.memo * Add tests for updateEvaluatorConditions --------- Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com> |
||
---|---|---|
.. | ||
accesscontrol | ||
anonservice | ||
oauthserver | ||
signingkeys | ||
ssosettings | ||
ualert | ||
alert_mig.go | ||
annotation_mig.go | ||
apikey_mig.go | ||
cache_data_mig.go | ||
common.go | ||
correlations_mig.go | ||
dashboard_acl.go | ||
dashboard_mig.go | ||
dashboard_public_mig.go | ||
dashboard_snapshot_mig.go | ||
dashboard_version_mig.go | ||
datasource_mig.go | ||
db_file_storage.go | ||
entity_events_mig.go | ||
external_alertmanagers.go | ||
folder_mig.go | ||
heartbeat_mig.go | ||
kv_store_mig.go | ||
libraryelements.go | ||
login_attempt_mig.go | ||
migrations_test.go | ||
migrations.go | ||
org_mig.go | ||
playlist_mig.go | ||
plugin_setting.go | ||
preferences_mig.go | ||
query_history_mig.go | ||
query_history_star_mig.go | ||
quota_mig.go | ||
secrets_mig.go | ||
serverlock_migrations.go | ||
session_mig.go | ||
short_url_mig.go | ||
stats_mig.go | ||
tag_mig.go | ||
team_mig.go | ||
temp_user.go | ||
user_auth_mig.go | ||
user_auth_token_mig.go | ||
user_mig.go |