Alerts and events¶
Alert definitions, actions, templates, commands, calendars and queues, the alert firing history, and the events they produce.
Generated automatically from pandora-cli docs (version 0.9.0, branch develop, commit 4f61789e07). Do not edit by hand; run make cli-ref.
Entities¶
| Entity | Aliases | Commands | Summary |
|---|---|---|---|
alert |
— | 1 | Alert counters |
alert-action |
alert-actions |
6 | Alert actions |
alert-calendar |
alert-calendars |
5 | Alert calendars |
alert-command |
alert-commands |
6 | Alert commands |
alert-execution-queue |
alert-execution-queues |
2 | Alert executions waiting in the queue |
alert-special-day |
alert-special-days |
5 | Special days of an alert calendar |
alert-template |
alert-templates |
6 | Alert templates |
fired-alert |
fired-alerts |
2 | Alert fired history |
event |
events |
18 | Monitoring events |
event-alert |
event-alerts |
5 | Event alerts |
event-alert-action |
event-alert-actions |
5 | Actions of an event alert |
event-alert-rule |
event-alert-rules |
5 | Rules that trigger an event alert |
event-filter |
event-filters |
5 | Saved event filters |
event-tag |
event-tags |
5 | Event tags |
alert¶
Alert counters
Only the counters live here; alert actions, commands, templates and calendars are the alert-* entities.
| Command | Method | Path |
|---|---|---|
alert summary |
GET | /alert/summary |
alert-action¶
Alert actions
Holds action DEFINITIONS (what to do when an alert fires: execute a command, send an email, run a script) and their configuration, not whether an alert has actually fired. For the firing history see alert-fired; for alerts assigned to a module see module-alert, and for the actions a module alert fired see module-alert-action.
Aliases: alert-actions
| Command | Method | Path |
|---|---|---|
alert-action list |
POST | /alert/action/list |
alert-action get <idAlertAction> |
GET | /alert/action/{idAlertAction} |
alert-action create |
POST | /alert/action |
alert-action update <idAlertAction> |
PUT | /alert/action/{idAlertAction} |
alert-action delete <idAlertAction> |
DELETE | /alert/action/{idAlertAction} |
alert-action copy <idAlertAction> |
POST | /alert/action/{idAlertAction}/copy |
Fields for --where, --fields and --in: actionThreshold, createWorkunitInItsm, idAlertAction, idAlertCommand, idGroup, isDefault, name
--filter additionally accepts every other field of the entity (14 in total).
alert-calendar¶
Alert calendars
Aliases: alert-calendars
| Command | Method | Path |
|---|---|---|
alert-calendar list |
POST | /alert/calendar/list |
alert-calendar get <idAlertCalendar> |
GET | /alert/calendar/{idAlertCalendar} |
alert-calendar create |
POST | /alert/calendar |
alert-calendar update <idAlertCalendar> |
PUT | /alert/calendar/{idAlertCalendar} |
alert-calendar delete <idAlertCalendar> |
DELETE | /alert/calendar/{idAlertCalendar} |
Fields for --where, --fields and --in: description, idAlertCalendar, idGroup, name
--filter additionally accepts every other field of the entity (9 in total).
alert-command¶
Alert commands
Aliases: alert-commands
| Command | Method | Path |
|---|---|---|
alert-command list |
POST | /alert/command/list |
alert-command get <idAlertCommand> |
GET | /alert/command/{idAlertCommand} |
alert-command create |
POST | /alert/command |
alert-command update <idAlertCommand> |
PUT | /alert/command/{idAlertCommand} |
alert-command delete <idAlertCommand> |
DELETE | /alert/command/{idAlertCommand} |
alert-command copy <idAlertCommand> |
POST | /alert/command/{idAlertCommand}/copy |
Fields for --where, --fields and --in: description, idAlertCommand, idGroup, internal, name
--filter additionally accepts every other field of the entity (14 in total).
alert-command copy— The specification declares no request body for this copy.
alert-execution-queue¶
Alert executions waiting in the queue
Aliases: alert-execution-queues
| Command | Method | Path |
|---|---|---|
alert-execution-queue list |
POST | /alert/executionQueue/list |
alert-execution-queue get <idAlertExecutionQueue> |
GET | /alert/executionQueue/{idAlertExecutionQueue} |
Fields for --where, --fields and --in: data, idAlertExecutionQueue, utimestamp
--filter additionally accepts every other field of the entity (9 in total).
alert-special-day¶
Special days of an alert calendar
Aliases: alert-special-days
| Command | Method | Path |
|---|---|---|
alert-special-day list <idAlertCalendar> |
POST | /alert/calendar/{idAlertCalendar}/special-day/list |
alert-special-day get <idAlertCalendar> <idAlertSpecialDay> |
GET | /alert/calendar/{idAlertCalendar}/special-day/{idAlertSpecialDay} |
alert-special-day create <idAlertCalendar> |
POST | /alert/calendar/{idAlertCalendar}/special-day |
alert-special-day update <idAlertCalendar> <idAlertSpecialDay> |
PUT | /alert/calendar/{idAlertCalendar}/special-day/{idAlertSpecialDay} |
alert-special-day delete <idAlertCalendar> <idAlertSpecialDay> |
DELETE | /alert/calendar/{idAlertCalendar}/special-day/{idAlertSpecialDay} |
Fields for --where, --fields and --in: date, dayCode, description, idAlertCalendar, idAlertSpecialDay, idGroup
--filter additionally accepts every other field of the entity (10 in total).
alert-template¶
Alert templates
Aliases: alert-templates
| Command | Method | Path |
|---|---|---|
alert-template list |
POST | /alert/template/list |
alert-template get <idAlertTemplate> |
GET | /alert/template/{idAlertTemplate} |
alert-template create |
POST | /alert/template |
alert-template update <idAlertTemplate> |
PUT | /alert/template/{idAlertTemplate} |
alert-template delete <idAlertTemplate> |
DELETE | /alert/template/{idAlertTemplate} |
alert-template copy <idAlertTemplate> |
POST | /alert/template/{idAlertTemplate}/copy |
Fields for --where, --fields and --in: condition, description, idAlertAction, idAlertTemplate, idGroup, isInternal, matchesValue, mathFunction, maxAlerts, maxValue, minAlerts, minValue, name, priority, timeThreshold, timeWindow, type, value, wizardLevel
--filter additionally accepts every other field of the entity (41 in total).
fired-alert¶
Alert fired history
Read-only history of the alerts that actually fired, one row per firing, served by /alert/fired. It holds no alert definitions: see alert-action, alert-template and module-alert for those.
Rows whose alert assignment no longer exists are not listed, cannot be authorized and answer 404 on get. On a metaconsole serverId is required and selects one node; calls are not aggregated.
Aliases: fired-alerts
| Command | Method | Path |
|---|---|---|
fired-alert list |
POST | /alert/fired/list |
fired-alert get <idAlertFired> |
GET | /alert/fired/{idAlertFired} |
Fields for --where, --fields and --in: idAgentModuleAlert, idAlertFired, recovered, recoveryType, recoveryUtimestamp, utimestamp
--filter additionally accepts every other field of the entity (13 in total).
event¶
Monitoring events
Aliases: events
| Command | Method | Path |
|---|---|---|
event list |
POST | /event/list |
event get <idEvent> |
GET | /event/{idEvent} |
event create |
POST | /event |
event update <idEvent> |
PUT | /event/{idEvent} |
event delete <idEvent> |
DELETE | /event/{idEvent} |
event bulk-create |
POST | /events |
event comment list <idEvent> |
POST | /event/{idEvent}/comment/list |
event comment get <idEvent> <idComment> |
GET | /event/{idEvent}/comment/{idComment} |
event comment add <idEvent> |
POST | /event/{idEvent}/comment |
event comment update <idEvent> <idComment> |
PUT | /event/{idEvent}/comment/{idComment} |
event comment delete <idEvent> <idComment> |
DELETE | /event/{idEvent}/comment/{idComment} |
event lifetime list <idEvent> |
POST | /event/{idEvent}/lifetime/list |
event lifetime get <idEvent> <idLifetime> |
GET | /event/{idEvent}/lifetime/{idLifetime} |
event tag list <idEvent> |
POST | /event/{idEvent}/tag/list |
event tag get <idEvent> <idEventTagRelation> |
GET | /event/{idEvent}/tag/{idEventTagRelation} |
event tag assign <idEvent> <idEventTag> |
POST | /event/{idEvent}/tag/{idEventTag} |
event tag remove <idEvent> <idEventTagRelation> |
DELETE | /event/{idEvent}/tag/{idEventTagRelation} |
event summary |
GET | /event/summary |
event bulk-create— A bulk create on a plural path, outside the verb convention.
event tag assign— The second id is the payload, not a body. Outside the verb convention.
event summary— Takes an optional event filter (--set severity=4, --set idGroup=0...) in the request body of a GET. Without any filter, or without a date range, it covers the last 8 hours. On a metaconsole, target a node with --set serverId=; the value travels in the filter body as an array, exactly as in event list.
event-alert¶
Event alerts
Aliases: event-alerts
| Command | Method | Path |
|---|---|---|
event-alert list |
POST | /alert/event/list |
event-alert get <idEventAlert> |
GET | /alert/event/{idEventAlert} |
event-alert create |
POST | /alert/event |
event-alert update <idEventAlert> |
PUT | /alert/event/{idEventAlert} |
event-alert delete <idEventAlert> |
DELETE | /alert/event/{idEventAlert} |
Fields for --where, --fields and --in: description, disableEvent, disabled, forceExecution, groupBy, idEventAlert, idGroup, idTemplateConditions, idTemplateFields, internalCounter, lastEvaluation, lastFired, lastReference, maxAlerts, minAlerts, mode, name, order, poolOccurrences, priority, recoveryNotify, specialDays, standby, timeThreshold, timesFired
--filter additionally accepts every other field of the entity (34 in total).
event-alert-action¶
Actions of an event alert
Aliases: event-alert-actions
| Command | Method | Path |
|---|---|---|
event-alert-action list <idEventAlert> |
POST | /alert/event/{idEventAlert}/action/list |
event-alert-action get <idEventAlert> <idEventAlertAction> |
GET | /alert/event/{idEventAlert}/action/{idEventAlertAction} |
event-alert-action create <idEventAlert> |
POST | /alert/event/{idEventAlert}/action |
event-alert-action update <idEventAlert> <idEventAlertAction> |
PUT | /alert/event/{idEventAlert}/action/{idEventAlertAction} |
event-alert-action delete <idEventAlert> <idEventAlertAction> |
DELETE | /alert/event/{idEventAlert}/action/{idEventAlertAction} |
Fields for --where, --fields and --in: firesMax, firesMin, idAlertAction, idEventAlert, idEventAlertAction, lastExecution, moduleActionThreshold
--filter additionally accepts every other field of the entity (11 in total).
event-alert-rule¶
Rules that trigger an event alert
Aliases: event-alert-rules
| Command | Method | Path |
|---|---|---|
event-alert-rule list <idEventAlert> |
POST | /alert/event/{idEventAlert}/rule/list |
event-alert-rule get <idEventAlert> <idEventRule> |
GET | /alert/event/{idEventAlert}/rule/{idEventRule} |
event-alert-rule create <idEventAlert> |
POST | /alert/event/{idEventAlert}/rule |
event-alert-rule update <idEventAlert> <idEventRule> |
PUT | /alert/event/{idEventAlert}/rule/{idEventRule} |
event-alert-rule delete <idEventAlert> <idEventRule> |
DELETE | /alert/event/{idEventAlert}/rule/{idEventRule} |
Fields for --where, --fields and --in: agent, alert, count, criticity, event, eventType, groupRecursion, idEventAlert, idEventRule, idGroup, idTag, idUser, logAgent, logContent, logSource, module, name, operation, operatorAgent, operatorAlert, operatorCriticity, operatorEvent, operatorEventType, operatorIdGroup, operatorIdTag, operatorIdUser, operatorLogAgent, operatorLogContent, operatorLogSource, operatorModule, order, window
--filter additionally accepts every other field of the entity (36 in total).
event-filter¶
Saved event filters
Aliases: event-filters
| Command | Method | Path |
|---|---|---|
event-filter list |
POST | /event/filter/list |
event-filter get <idEventFilter> |
GET | /event/filter/{idEventFilter} |
event-filter create |
POST | /event/filter |
event-filter update <idEventFilter> |
PUT | /event/filter/{idEventFilter} |
event-filter delete <idEventFilter> |
DELETE | /event/filter/{idEventFilter} |
Fields for --where, --fields and --in: customData, idAgent, idAgentModule, idEventFilter, idExtra, idGroup, idGroupFilter, idSourceEvent, idUserAck, isNotSearch, name, ownerUser, pagination, privateFilterUser, search, searchRecursiveGroups, searchSecondaryGroups, source, textAgent, userComment
--filter additionally accepts every other field of the entity (36 in total).
event-tag¶
Event tags
Aliases: event-tags
| Command | Method | Path |
|---|---|---|
event-tag list |
POST | /event/eventTag/list |
event-tag get <idEventTag> |
GET | /event/eventTag/{idEventTag} |
event-tag create |
POST | /event/eventTag |
event-tag update <idEventTag> |
PUT | /event/eventTag/{idEventTag} |
event-tag delete <idEventTag> |
DELETE | /event/eventTag/{idEventTag} |
Fields for --where, --fields and --in: backgroundColor, createdAt, description, idEventTag, textColor, title, updatedAt
--filter additionally accepts every other field of the entity (12 in total).