Skip to content

Commit

Permalink
add total_nodes and node_provider_name to messages.nodes_status_message
Browse files Browse the repository at this point in the history
  • Loading branch information
mourginakis committed Oct 19, 2023
1 parent e916ef8 commit 4829d3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node_monitor/node_monitor_helpers/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ def _render_frac(numerator: int, denominator: int) -> str:
f"Nodes Down: { _render_frac(len(nodes_down), total_nodes) }\n"
f"Nodes Unassigned: { _render_frac(len(nodes_unassigned), total_nodes) }\n"
f"Nodes Disabled: { _render_frac(len(nodes_disabled), total_nodes) }\n"
f"Nodes Degraded: { _render_frac(len(nodes_degraded), total_nodes) }\n\n"
f"Nodes Degraded: { _render_frac(len(nodes_degraded), total_nodes) }\n"
f"\n"
f"Total Nodes: {total_nodes}\n"
f"Node Provider: {nodes[0].node_provider_name}\n"
f"\n"
f"{render_footer()}")
return (subject, message)

Expand Down

0 comments on commit 4829d3f

Please sign in to comment.