Exemplo n.º 1
0
/*
 * 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;
}
Exemplo n.º 2
0
/**
 * 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);
};
Exemplo n.º 3
0
/**
 * 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);
};
Exemplo n.º 4
0
/**
 * 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);
}