Entities of Alerts module
Alert template
An Alert Template serves as a blueprint for creating alerts that monitor specific entities for certain conditions. The purpose of an alert template is to define the logic and thresholds for triggering alerts in various scenarios. Commonly, the template blueprint has the structure resembling this: Property of the [Entity or entities] belonging to the [Owner] breaches the [Condition] where condition in turn has a condition operation and threshold. Example:-
Alert template:
credit_low_balance
Entity: Credits Owner: Account Parameters: Threshold Condition: Balance ofEntity: Credits
belonging toOwner: Account
drops belowParameter: Threshold
Alert
An Alert can be imagined as an instance of analert templates
combined with a set of parameters
. Alerts monitor data for breaches depending on the configured condition thresholds.
Example:
-
Alert template:
credit_low_balance
Entity: Credits Owner: Account = Acc1 Parameters: Threshold = 100$ Condition: Balance ofEntity: Credits
belonging toOwner: Account Acc1
drops belowParameter: 100$
Incident
An Incident is created when the condition defined in an alert is met, i.e., when the threshold is breached. The incident serves as a notification or event that requires action. Each incident record includes the open and close time stamps, as well as snapshots of the data being evaluated around the time of each incident also termed asReport Data
.
Short Summary:
- Alert Template + Parameters => Alert
- Alert + Condition is breached => Incident containing Report Data
Alert templates
alertTemplateId | Entity | Owner Details | Parameters | Report Data | Auto Resolvable |
---|---|---|---|---|---|
unprocessed_events | N/A | N/A | unprocessedEventParams | unprocessedEventReportData | FALSE |
usage_breach | USAGE_METER | ACCOUNT | usageBreachParams | usageBreachReportData | FALSE |
credit_low_balance | CREDIT | ACCOUNT | lowBalanceParams | lowBalanceReportData | TRUE |
wallet_low_balance | WALLET | ACCOUNT | lowBalanceParams | lowBalanceReportData | TRUE |
entitlement_low_balance | FEATURE | ACCOUNT | lowBalanceParams | lowBalanceReportData | TRUE |
invoice_due_breach | INVOICE | ACCOUNT | invoiceDueBreachParams | invoiceDueBreachReportData | FALSE |
invoice_overdue_breach | INVOICE | ACCOUNT | invoiceDueBreachParams | invoiceDueBreachReportData | FALSE |
unpaid_invoice_amount_breach | null | ACCOUNT | unpaidInvoiceAmtBreachParams | unpaidInvoiceAmtBreachReportData | TRUE |