From 0a093cdd27b49735da40360a44a1956403d60c84 Mon Sep 17 00:00:00 2001 From: Sandhya1874 <39799075+Sandhya1874@users.noreply.github.com> Date: Fri, 28 Feb 2025 15:21:01 +0000 Subject: [PATCH] Corrected radis stream key (#37) --- health_ping.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/health_ping.py b/health_ping.py index 573f594..0ef6006 100755 --- a/health_ping.py +++ b/health_ping.py @@ -121,7 +121,8 @@ def process_env(c_name, e_id, endpoint, endpoint_type, component, env_attributes output = {} # Redis key to use for stream e_name = env_attributes["name"] - stream_key = f'{endpoint_type}:{c_name}:{e_name}' + e_type = env_attributes["type"] + stream_key = f'{endpoint_type}:{c_name}:{e_type}' stream_data = {} stream_data.update({'url': endpoint}) stream_data.update({'dateAdded': datetime.now(timezone.utc).isoformat()})