#include "motr/iem.h"
#include "lib/trace.h"
Go to the source code of this file.
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_M0D |
Definition at line 23 of file iem.c.
◆ anonymous enum
Enumerator |
---|
INTERVAL | Time interval (seconds) to throttle messages.
|
THRESHOLD | How many messages during INTERVAL.
|
Definition at line 51 of file iem.c.
◆ m0_iem()
The function must be called with appropriate parameters using the macros M0_MOTR_IEM() & M0_MOTR_IEM_DESC() to send an IEM alert. This IEM is throttled by a simple throttling scheme. The throttling scheme is the maximum number of IEM alerts for the defined interval.
- Parameters
-
file | from where m0_iem is called, use FILE |
function | from where m0_iem is called, use FUNCTION |
line | from where m0_iem is called, use LINE |
sev_id | a valid value from enum m0_motr_iem_severity |
mod_id | a valid value from enum m0_motr_iem_module |
evt_id | a valid value from enum m0_motr_iem_event |
desc | a string description with variable args. Can be NULL, max (512-1) bytes in length. |
Definition at line 58 of file iem.c.
◆ iem_re
Definition at line 49 of file iem.c.
◆ M0_MOTR_IEM_COMPONENT_ID_MOTR
const int M0_MOTR_IEM_COMPONENT_ID_MOTR = 2 |
Definition at line 34 of file iem.c.
◆ m0_motr_iem_severity
Definition at line 36 of file iem.c.
◆ M0_MOTR_IEM_SOURCE_ID
const char M0_MOTR_IEM_SOURCE_ID = 'S' |
Definition at line 31 of file iem.c.