From 14bfc07a1a3ad483f2f91c5d1fde9f073c12867e Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 27 Sep 2023 09:41:49 +0000 Subject: [PATCH] node-proxy: update alert names Given that the 'node-proxy' terminology is internal, let's change the few node-proxy related alert names to something more user friendly as they are intended to be seen by the user (NODE_PROXY_xxx > HARDWARE_xxx). Signed-off-by: Guillaume Abrioux --- src/pybind/mgr/cephadm/agent.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pybind/mgr/cephadm/agent.py b/src/pybind/mgr/cephadm/agent.py index 697f097e143..2c99149998c 100644 --- a/src/pybind/mgr/cephadm/agent.py +++ b/src/pybind/mgr/cephadm/agent.py @@ -166,12 +166,12 @@ class NodeProxy: def raise_alert(self, data: Dict[str, Any]) -> None: mapping: Dict[str, str] = { - 'storage': 'NODE_PROXY_STORAGE', - 'memory': 'NODE_PROXY_MEMORY', - 'processors': 'NODE_PROXY_PROCESSORS', - 'network': 'NODE_PROXY_NETWORK', - 'power': 'NODE_PROXY_POWER', - 'fans': 'NODE_PROXY_FANS' + 'storage': 'HARDWARE_STORAGE', + 'memory': 'HARDWARE_MEMORY', + 'processors': 'HARDWARE_PROCESSORS', + 'network': 'HARDWARE_NETWORK', + 'power': 'HARDWARE_POWER', + 'fans': 'HARDWARE_FANS' } for component in data['data'].keys(): -- 2.39.5