Skip to content

Commit

Permalink
update alert messages
Browse files Browse the repository at this point in the history
Signed-off-by: fbalak <fbalak@redhat.com>
  • Loading branch information
fbalak committed May 15, 2024
1 parent 8e2f804 commit aaa2be6
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,31 @@ def test_change_client_ocs_version_and_stop_heartbeat(
client_name = measure_change_client_ocs_version_and_stop_heartbeat.get(
"metadata"
).get("client_name")
cluster_namespace = config.ENV_DATA["cluster_namespace"]
cluster_name = config.ENV_DATA["storage_cluster_name"]
target_alerts = [
{
"label": constants.ALERT_STORAGECLIENTHEARTBEATMISSED,
"msg": f"Storage Client ({client_name}) heartbeat missed for more than 120 (s)",
"msg": (
f"Storage Client ({client_name}) heartbeat missed for more than 120 (s) "
f"in namespace:cluster {cluster_namespace}:{cluster_name}."
),
"severity": "warning",
},
{
"label": constants.ALERT_STORAGECLIENTHEARTBEATMISSED,
"msg": f"Storage Client ({client_name}) heartbeat missed for more than 300 (s)",
"msg": (
f"Storage Client ({client_name}) heartbeat missed for more than 300 (s) "
f"in namespace:cluster {cluster_namespace}:{cluster_name}."
),
"severity": "error",
},
{
"label": constants.ALERT_STORAGECLIENTINCOMPATIBLEOPERATORVERSION,
"msg": f"Storage Client Operator ({client_name}) differs by more than 1 minor version",
"msg": (
f"Storage Client Operator ({client_name}) differs by more than 1 minor "
f"version in namespace:cluster {cluster_namespace}:{cluster_name}."
),
"severity": "error",
},
]
Expand Down

0 comments on commit aaa2be6

Please sign in to comment.