/* * Fetch the event severity filter value. * @throw Exception if not set */ wbem::framework::UINT32 wbem::support::EventLogFilter::getSeverity() throw (framework::Exception) { if (!hasSeverity()) { COMMON_LOG_ERROR("requested severity filter when none set"); throw framework::ExceptionBadParameter("severity"); } return m_severityValue; }
/** * Check if there are any alarms with critical or higher severity * @return 0 if no alarms are found, 1 if at least one alarm is found */ int32_t AlarmsHasCritical() { return hasSeverity(SYSTEMALARMS_ALARM_CRITICAL); };
/** * Check if there are any alarms with error or higher severity * @return 0 if no alarms are found, 1 if at least one alarm is found */ int32_t AlarmsHasErrors() { return hasSeverity(SYSTEMALARMS_ALARM_ERROR); };
/** * Check if there are any alarms with the given or higher severity * @return 0 if no alarms are found, 1 if at least one alarm is found */ int32_t AlarmsHasWarnings() { return hasSeverity(SYSTEMALARMS_ALARM_WARNING); }