Represents NetXMS alarm.
- ackBy: int
-
ID of user who acknowledged this alarm.
- ackByUser ⇒ [class-userdbobject]
-
User who acknowledged this alarm (class [class-userdbobject]).
- categories: Array
-
Array with alarm category names.
- creationTime: int
-
Unix timestamp of the alarm creation time.
- dciId: int
-
If alarm was created as a result of DCI threshold violation, this attribute will contain ID of the DCI.
- eventCode: int
-
Event code of originating event.
- eventId: int
-
ID of originating event.
- eventName: String
-
Name of originating event.
- eventTagList: float
-
List of event tags as a comma separated string
- helpdeskReference: String
-
Helpdesk system reference (e.g. issue ID).
- helpdeskState: int
-
Helpdesk state:
-
0 = Ignored
-
1 = Open
-
2 = Closed
-
- id: int
-
Unique identifier of the alarm.
- impact: String
-
Alarm impact text
- key: String
-
Alarm key.
- lastChangeTime: int
-
Unix timestamp of the last update.
- message: String
-
Alarm message.
- originalSeverity: int
-
Original severity of the alarm.
- parentId: int
-
Parent alarm id
- repeatCount: int
-
Repeat count.
- resolvedBy: int
-
ID of user who resolved this alarm.
- resolvedByUser ⇒ [class-userdbobject]
-
User who resolved this alarm (class [class-userdbobject])
- rcaScriptName: String
-
Name of root cause analysis script
- ruleGuid: String
-
Guid of the rule that generated the event.
- ruleDescription: String
-
Description of the rule that generated the event.
- severity: int
-
Current alarm severity.
- sourceObject: int
-
ID of the object where alarm is raised.
- state: int
-
Alarm state:
-
0 = Outstanding
-
1 = Acknowledged
-
2 = Resolved
-
17 = Sticky acknowledged
-
- acknowledge(): int
-
Acknowledge alarm. Return
0on success or error code on failure.
- addComment(commentText, syncWithHelpdesk): int
-
Add new alarm comment.
Table 1. Parameters commentText
String
Text of the new alarm comment.
syncWithHelpdesk
String
Optional. If synchronization with helpdesk should be done. TRUE by default.
ReturnId of the newly created alarm comment.
- expandString(string): String
-
Expand string by replacing macros with their values.
Table 2. Parameters string
String to expand
ReturnFormated string
- getComments(): Array
-
Get array of alarm comments.
ReturnArray of [class-alarmcomment] objects.
- requestAiAssistantComment(): String
-
Request an AI assistant comment for this alarm.
ReturnString containing the AI assistant’s response, or NULL if empty.
- resolve(): int
-
Resolve alarm. Return
0on success or error code on failure.
- terminate(): int
-
Terminate alarm. Return
0on success or error code on failure.