MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / event2status

Function event2status

tools/notifyServicelogEvent.c:53–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53STATUS
54event2status(struct sl_event * event)
55{
56 STATUS status = STATUS_GREEN;
57
58 crm_debug("Severity = %d, Disposition = %d", event->severity, event->disposition);
59
60 /* @TBD */
61 if (event->severity == SL_SEV_WARNING) {
62 status = STATUS_YELLOW;
63 }
64
65 if (event->disposition == SL_DISP_UNRECOVERABLE) {
66 status = STATUS_RED;
67 }
68
69 return status;
70}
71
72static struct crm_option long_options[] = {
73 /* Top-level Options */

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected