Skip to content

Commit

Permalink
Corrected radis stream key (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 authored Feb 28, 2025
1 parent 3e9ecee commit 0a093cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion health_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()})
Expand Down

0 comments on commit 0a093cd

Please sign in to comment.