health_cmdapi.h 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef NETDATA_WEB_HEALTH_SVG_H
  3. #define NETDATA_WEB_HEALTH_SVG_H 1
  4. #include "libnetdata/libnetdata.h"
  5. #include "web/server/web_client.h"
  6. #include "health/health.h"
  7. #define HEALTH_CMDAPI_CMD_SILENCEALL "SILENCE ALL"
  8. #define HEALTH_CMDAPI_CMD_DISABLEALL "DISABLE ALL"
  9. #define HEALTH_CMDAPI_CMD_SILENCE "SILENCE"
  10. #define HEALTH_CMDAPI_CMD_DISABLE "DISABLE"
  11. #define HEALTH_CMDAPI_CMD_RESET "RESET"
  12. #define HEALTH_CMDAPI_CMD_LIST "LIST"
  13. #define HEALTH_CMDAPI_MSG_AUTHERROR "Auth Error\n"
  14. #define HEALTH_CMDAPI_MSG_SILENCEALL "All alarm notifications are silenced\n"
  15. #define HEALTH_CMDAPI_MSG_DISABLEALL "All health checks are disabled\n"
  16. #define HEALTH_CMDAPI_MSG_RESET "All health checks and notifications are enabled\n"
  17. #define HEALTH_CMDAPI_MSG_DISABLE "Health checks disabled for alarms matching the selectors\n"
  18. #define HEALTH_CMDAPI_MSG_SILENCE "Alarm notifications silenced for alarms matching the selectors\n"
  19. #define HEALTH_CMDAPI_MSG_ADDED "Alarm selector added\n"
  20. #define HEALTH_CMDAPI_MSG_STYPEWARNING "WARNING: Added alarm selector to silence/disable alarms without a SILENCE or DISABLE command.\n"
  21. #define HEALTH_CMDAPI_MSG_NOSELECTORWARNING "WARNING: SILENCE or DISABLE command is ineffective without defining any alarm selectors.\n"
  22. extern int web_client_api_request_v1_mgmt_health(RRDHOST *host, struct web_client *w, char *url);
  23. #include "web/api/web_api_v1.h"
  24. #endif /* NETDATA_WEB_HEALTH_SVG_H */