Files

72 lines
3.0 KiB
C++

/**
* @file include/ActivMiddleware/AlertIds.h
*
* @brief IDs for system alerts.
*/
#if (!defined ACTIV_ALERT_IDS_H)
#define ACTIV_ALERT_IDS_H
//! Activ namespace.
namespace Activ
{
#define ACTIV_DECLARE_ALERT_ID(value, id, name) const AlertId id = value;
/**
* @brief Alert ids.
*
* Activ developers - please read https://web1-tlx.activfinancial.com/devwiki/index.php/AlertMessage_and_Integrating_SNMP_Support_into_Applications
* and contact SNMPDevelopmentSupport before using in your application.
*
* These are network constant values.
*/
#define ACTIV_ALERT_ID_LIST(d) \
d(1, ALERT_ID_MANUAL, "Manual") \
d(2, ALERT_ID_MISC, "Miscellaneous") \
d(3, ALERT_ID_AUTH, "Authentication") \
d(4, ALERT_ID_PROCESS_DIE, "Process die") \
d(5, ALERT_ID_PROCESS_FAILED_TO_START, "Process failed to start") \
d(6, ALERT_ID_SERVICE_STATE_CHANGE, "Service state change") \
d(7, ALERT_ID_DATABASE_INTEGRITY, "Database integrity") \
d(8, ALERT_ID_NO_DATA, "No data") \
d(9, ALERT_ID_CROSSED_ORDER_BOOK, "Crossed order book") \
d(10, ALERT_ID_FEED_CONFLATION_CHANGE, "Feed conflation change") \
d(11, ALERT_ID_QUEUE_LIMIT_REACHED, "Queue limit reached") \
d(12, ALERT_ID_SOURCE_MACHINE_CHANGE, "Source machine change") \
d(13, ALERT_ID_REQUEST_POST_OR_DESERIALIZE, "Request post or deserialize") \
d(14, ALERT_ID_CONNECTIVITY, "Connectivity") \
d(15, ALERT_ID_FILE_OUTPUT, "File output") \
d(16, ALERT_ID_MEMORY, "Memory") \
d(17, ALERT_ID_USER_LOGON, "User logon") \
d(18, ALERT_ID_SHUTTING_DOWN, "Shutting down") \
d(19, ALERT_ID_CONFIGURATION, "Configuration") \
d(20, ALERT_ID_HARDWARE, "Hardware") \
d(21, ALERT_ID_FILE_DOWNLOAD_FAILED, "File download failed") \
d(22, ALERT_ID_SYSTEM_INTEGRITY, "System integrity") \
d(23, ALERT_ID_INVALID_ENDPOINT_COMPONENT, "Invalid endpoint component") \
d(24, ALERT_ID_FILE_UPLOAD_FAILED, "File upload failed") \
d(25, ALERT_ID_CLIENT_DISCONNECT, "Client disconnect") \
d(26, ALERT_ID_TOPIC_COUNT_MISMATCH, "Topic count mismatch") \
d(27, ALERT_ID_INVALID_TOPIC, "Invalid topic") \
d(28, ALERT_ID_RECORD_NOT_FOUND, "Record not found") \
d(29, ALERT_ID_INVALID_DATA, "Invalid data") \
d(30, ALERT_ID_INVALID_FIELD, "Invalid field") \
d(31, ALERT_ID_SQL_ERROR, "SQL error") \
d(32, ALERT_ID_DATABASE_DOWN, "Database down") \
d(33, ALERT_ID_RING_BUFFER_BLOCKING_WRITE_DROP, "Ring buffer drop") \
d(34, ALERT_ID_FILE_ERROR, "File error") \
d(35, ALERT_ID_MISSING_DATA, "Missing data") \
d(36, ALERT_ID_QUOTA_EXCEEDED, "Quota exceeded")
/**
* @brief Alert id constants.
*/
ACTIV_ALERT_ID_LIST(ACTIV_DECLARE_ALERT_ID)
#undef ACTIV_DECLARE_ALERT_ID
} // namespace Activ
#endif // (!defined ACTIV_ALERT_IDS_H)