Skip to main content

createAlert

A MoogDb v2 method that creates or updates an alert. Optionally updates custom info for deduplicated alerts.

Back to MoogDb V2 API Method Reference.

Request arguments

Method createAlert takes the following request arguments:

Name

Type

Required

Description

alert

Native Object

Yes

A Javascript object containing alert attributes, such as type, severity, etc.

event

CEvent

Yes

A CEvent object representing the alert, containing alert attributes, such as type, severity, etc.

mergeCustomInfo

Boolean

No

Set this to true to merge the custom_info data in this alert with the custom info held in the database.

Response

Method createAlert returns the following response:

Type

Description

CEvent

A CEvent object containing the latest version of the alert.