For arlanix/notification 1.1.0
Events
An event is something that happens in the store, such as a new order or a failed import. A rule sends a message when its event happens.
Each event has fields, such as the order number or the total. You use fields in two places:
- In a rule's conditions, to choose which events send a message.
- In a rule's subject and body, in braces, such as
{order.increment_id}.
In the rule form, Variables lists the fields of the event you chose, and Preview shows the message with sample values.
Where events come from
Events come from three places:
- Store events add orders, invoices, refunds, shipments, customers, reviews, the newsletter and the contact form.
- Monitoring adds admin sign-ins, the store's health, orders that stop, and imports and exports. See Monitoring.
- Arlanix Product Feed, if your store has it, adds feeds that fail or work again, and products that a feed leaves out or the channel refuses. See Get told when a feed fails.
How to read the tables
Each event below has a table of its fields. Field is what you type in braces. Name is what the rule form shows. Notes uses these terms:
- In the details: when the rule's Add details is on, the message shows this field below the body. It does so whatever the subject and the body say.
- Personal data: the field holds a customer's name or email, a review's text, a contact form message or an admin's IP address. A message includes it only when the rule's subject or body names it. The details never show it.
- A list: the field holds a code, such as
pendingor1. A condition on it offers a list of choices. The details show the name, such as Pending or General.
Sales
New order
Happens when an order is placed at checkout, in the admin or through the API. Severity: Info. Event code: sales_order_placed.
| Field | Name | Notes |
|---|---|---|
order.increment_id |
Order number | In the details |
order.grand_total |
Grand total | A number |
order.grand_total_formatted |
Total | In the details |
order.currency |
Currency | |
order.status |
Status | In the details, a list |
order.status_label |
Status name | |
order.state |
State | |
order.payment_method |
Payment method code | |
order.payment_title |
Payment | In the details |
order.shipping_method |
Shipping method code | |
order.shipping_description |
Shipping | In the details |
order.items_count |
Products | A number |
order.items_qty |
Quantity | A number |
order.items |
Items | |
order.coupon_code |
Coupon code | |
store.id |
Store view | A list |
store.name |
Store | In the details |
store.website |
Website | |
customer.is_guest |
Guest checkout | Yes or no |
customer.group |
Customer group | A list |
customer.group_label |
Customer group name | |
customer.name |
Customer name | Personal data |
customer.email |
Customer email | Personal data |
Order status changed
Happens when an order gets a new status, such as Processing or On Hold. Severity: Info. Event code: sales_order_status_changed.
It has all the fields of a new order, plus these:
| Field | Name | Notes |
|---|---|---|
order.status_from |
Status before | In the details, a list |
order.status_from_label |
Status before, name | |
order.state_from |
State before |
Invoice created
Happens when an invoice is created for an order. Severity: Info. Event code: sales_invoice_created.
It has all the fields of a new order, plus these:
| Field | Name | Notes |
|---|---|---|
invoice.increment_id |
Invoice number | In the details |
invoice.grand_total |
Invoice total | A number |
invoice.grand_total_formatted |
Invoiced | In the details |
invoice.is_paid |
Paid | In the details, yes or no |
Refund
Happens when a credit memo refunds an order, fully or partly. Severity: Warning. Event code: sales_creditmemo_created.
It has all the fields of a new order, plus these:
| Field | Name | Notes |
|---|---|---|
creditmemo.increment_id |
Credit memo number | In the details |
creditmemo.grand_total |
Refunded total | A number |
creditmemo.grand_total_formatted |
Refunded | In the details |
creditmemo.adjustment |
Adjustment | A number |
Shipment
Happens when a shipment is created for an order. Severity: Info. Event code: sales_shipment_created.
It has all the fields of a new order, plus these:
| Field | Name | Notes |
|---|---|---|
shipment.increment_id |
Shipment number | In the details |
shipment.total_qty |
Quantity shipped | A number |
shipment.tracks |
Tracking | In the details |
Orders stopped
Happens when a store view gets far fewer orders than usual for this time of the week. The message says why. Either shoppers still fill carts but their orders fail, or the shoppers are gone. When the orders come back, a second message is sent with severity Info.
This event comes from the Monitoring module. It checks every five minutes and, by default, sends a change only after two checks in a row see it. See Orders that stop.
Severity: Error. Event code: orders_stalled.
| Field | Name | Notes |
|---|---|---|
store.id |
Store view | A list |
store.code |
Store view code | |
store.name |
Store | In the details |
store.website |
Website | |
orders.state |
State | A list |
orders.reason |
Reason | A list. Empty in the message about recovery. |
orders.actual |
Orders | In the details, a number |
orders.expected |
Orders expected | In the details, a number |
carts.actual |
Carts | In the details, a number |
carts.expected |
Carts expected | In the details, a number. Empty when the store has not kept enough weeks of carts to compare. |
orders.window_minutes |
Minutes looked at | A number |
orders.summary |
Summary |
Customers
New customer
Happens when a customer account is created on the storefront, in the admin or through the API. Severity: Info. Event code: customer_created.
| Field | Name | Notes |
|---|---|---|
customer.id |
Customer ID | A number |
customer.group |
Customer group | In the details, a list |
customer.group_label |
Customer group name | |
customer.website |
Website | In the details |
customer.name |
Customer name | Personal data |
customer.email |
Customer email | Personal data |
store.id |
Store view | A list |
store.name |
Store | In the details |
store.website |
Website |
Customer group changed
Happens when a customer moves to another customer group. Severity: Info. Event code: customer_group_changed.
| Field | Name | Notes |
|---|---|---|
customer.id |
Customer ID | A number |
customer.group |
Customer group | In the details, a list |
customer.group_label |
Customer group name | |
customer.group_from |
Customer group before | In the details, a list |
customer.group_from_label |
Customer group before, name | |
customer.website |
Website | |
customer.name |
Customer name | Personal data |
customer.email |
Customer email | Personal data |
store.id |
Store view | A list |
store.name |
Store | In the details |
store.website |
Website |
Newsletter subscription
Happens when someone subscribes to the newsletter or unsubscribes. The event is available only while the Magento_Newsletter module is enabled. Severity: Info. Event code: newsletter_subscription_changed.
| Field | Name | Notes |
|---|---|---|
subscription.status |
Status | In the details, a list |
subscription.status_label |
Status name | |
subscription.status_from |
Status before | In the details, a list |
subscription.status_from_label |
Status before, name | |
subscription.is_customer |
A customer | Yes or no |
subscription.email |
Personal data | |
store.id |
Store view | A list |
store.name |
Store | In the details |
store.website |
Website |
Contact form
Happens when someone sends a message through the store's contact form. The event is available only while the Magento_Contact module is enabled. Severity: Info. Event code: contact_form_submitted.
| Field | Name | Notes |
|---|---|---|
contact.name |
Name | Personal data |
contact.email |
Personal data | |
contact.telephone |
Telephone | Personal data |
contact.comment |
Comment | Personal data |
store.id |
Store view | A list |
store.name |
Store | In the details |
store.website |
Website |
Catalog
Review to moderate
Happens when someone writes a review on the storefront and the review waits for moderation. The event is available only while the Magento_Review module is enabled. Severity: Info. Event code: review_submitted.
| Field | Name | Notes |
|---|---|---|
product.id |
Product ID | A number |
product.sku |
SKU | In the details |
product.name |
Product | In the details |
review.title |
Review title | Personal data |
review.detail |
Review | Personal data |
review.nickname |
Nickname | Personal data |
store.id |
Store view | A list |
store.name |
Store | In the details |
store.website |
Website |
Security
Admin login failed
Happens when someone fails to sign in to the admin. For example, the password is wrong, or the admin user is locked or inactive. Severity: Warning. Event code: admin_login_failed.
| Field | Name | Notes |
|---|---|---|
admin.username |
Username | In the details |
admin.reason |
Reason | In the details |
admin.ip |
IP address | Personal data |
Admin logged in
Happens when an admin user signs in. Severity: Info. Event code: admin_login.
Two fields tell you whether the sign-in is unusual:
- From a new address is Yes when the admin has not signed in from this IP address in the past year.
- From a new device is Yes when the admin has not signed in from this browser in the past year.
| Field | Name | Notes |
|---|---|---|
admin.username |
Username | In the details |
admin.new_ip |
From a new address | In the details, yes or no |
admin.new_device |
From a new device | In the details, yes or no |
admin.ip |
IP address | Personal data |
admin.user_agent |
Browser | Personal data |
System
Cron job failed
Happens when a cron job ends with an error. The check runs every five minutes and reports the jobs that failed since it last ran. Severity: Error. Event code: cron_job_failed.
| Field | Name | Notes |
|---|---|---|
cron.job_code |
Job | In the details |
cron.message |
Error | |
cron.scheduled_at |
Scheduled at | In the details |
Cron stopped
Happens when no cron job has run for 15 minutes. You can change the number of minutes in Monitoring. When a job runs again, a second message is sent with severity Info.
This message is sent at once. It does not wait in the queue, because the queue needs cron to run.
Severity: Error. Event code: cron_stopped.
| Field | Name | Notes |
|---|---|---|
cron.state |
State | A list |
cron.minutes |
Minutes since the last run | A number |
cron.last_run |
Last run | In the details |
cron.summary |
Summary |
Indexer needs reindex
Happens when an indexer becomes invalid and needs a reindex. When the indexer is valid again, a second message is sent with severity Info. Severity: Warning. Event code: indexer_invalid.
| Field | Name | Notes |
|---|---|---|
indexer.id |
Indexer code | |
indexer.title |
Indexer | In the details |
indexer.state |
State | A list |
indexer.summary |
Summary |
Application error
Happens when the store writes an error to its log. The same error is sent at most once every ten minutes. Severity: Error. Event code: app_error.
| Field | Name | Notes |
|---|---|---|
error.message |
Error | |
error.level |
Level | In the details |
error.exception |
Exception | In the details |
error.file |
Where | In the details |
Import and export
Import finished
Happens when an import ends. The import can start from System > Data Transfer > Import, through the API or on a schedule. Rows with errors do not stop an import. Look at Errors to see whether rows were left out. Severity: Info. Event code: import_finished.
| Field | Name | Notes |
|---|---|---|
import.entity |
Entity | In the details, a list |
import.entity_label |
Entity name | |
import.behavior |
Import behavior | In the details, a list |
import.behavior_label |
Import behavior name | |
import.file |
File | In the details |
import.created |
Created | In the details, a number |
import.updated |
Updated | In the details, a number |
import.deleted |
Deleted | A number |
import.errors |
Errors | In the details, a number |
import.user |
Started by | In the details |
File and Started by come from Magento's Import History. Magento keeps a history record for an import started on the Import page. For an import started another way, both fields can be empty.
Import failed
Happens when an import stops before it ends. It stops when it reaches the maximum number of errors, or when an error stops it at once. Severity: Error. Event code: import_failed.
| Field | Name | Notes |
|---|---|---|
import.entity |
Entity | In the details, a list |
import.entity_label |
Entity name | |
import.behavior |
Import behavior | In the details, a list |
import.behavior_label |
Import behavior name | |
import.file |
File | In the details |
import.errors |
Errors | In the details, a number |
import.message |
Reason | |
import.user |
Started by | In the details |
Export finished
Happens when an export file is ready to download in System > Data Transfer > Export. Magento creates export files in the background after an admin requests one. Severity: Info. Event code: export_finished.
| Field | Name | Notes |
|---|---|---|
export.entity |
Entity | In the details, a list |
export.entity_label |
Entity name | |
export.format |
Format | In the details |
export.file |
File | In the details |
Export failed
Happens when an export creates no file. For example, no data matched the export's filters. Severity: Error. Event code: export_failed.
| Field | Name | Notes |
|---|---|---|
export.entity |
Entity | In the details, a list |
export.entity_label |
Entity name | |
export.format |
Format | In the details |
export.file |
File | |
export.message |
Reason |
Product feeds
A feed sends a message when its state changes, not after every run. If a feed fails the same way on every run, you get one message.
Feed failed
Happens when one of these goes wrong with a feed:
- Its delivery fails.
- It would be empty, so it is not delivered.
- A run stops responding.
When a delivery works again, a second message is sent with severity Info. If a failing feed starts to fail in a different way, another message is sent. Severity: Error. Event code: feed_failed.
| Field | Name | Notes |
|---|---|---|
feed.id |
Feed | In the details, a list |
feed.identifier |
Feed identifier | |
feed.type |
Feed type | A list |
feed.channel |
Channel | In the details, a list |
feed.store_id |
Store view | A list |
feed.store |
Store | In the details |
feed.state |
State | A list: Problem or Recovered |
feed.problem |
Problem | A list: Failed, Empty, not delivered or Stopped responding. In the message about recovery, the problem the feed recovered from. |
feed.summary |
Summary | |
feed.reason |
Reason |
Products left out
Happens when a delivery leaves out more of the feed's products than the feed last told of, by as many as What the feed tells says. Severity: Warning. Event code: feed_products_left_out.
| Field | Name | Notes |
|---|---|---|
feed.id |
Feed | In the details, a list |
feed.identifier |
Feed identifier | |
feed.type |
Feed type | A list |
feed.channel |
Channel | In the details, a list |
feed.store_id |
Store view | A list |
feed.store |
Store | In the details |
products.left_out |
Products left out | In the details, a number |
products.new |
Newly left out | A number: how many more than the feed last told of |
products.summary |
Summary |
Products refused by the channel
Happens when the channel refuses more of the feed's products than the feed last told of, by as many as Products left out takes. For a Merchant API feed, the channel is Google. Severity: Warning. Event code: feed_products_refused.
| Field | Name | Notes |
|---|---|---|
feed.id |
Feed | In the details, a list |
feed.identifier |
Feed identifier | |
feed.type |
Feed type | A list |
feed.channel |
Channel | In the details, a list |
feed.store_id |
Store view | A list |
feed.store |
Store | In the details |
products.refused |
Products refused | In the details, a number |
products.new |
Newly refused | A number: how many more than the feed last told of |
products.summary |
Summary |