NotificationRule

View as Markdown

Struct for a single notification rule.

Full nameMFiles.NotificationRule
Proto filemfiles/structs.proto

Fields

FieldTypeNumberDescription
idint321The ID of the rule. Assigned by the server when the rule is created.
namestring2The name of the notification rule.
object_filterrepeated SearchCondition3The search conditions that an object must meet for the rule to apply, combined with AND. The built-in rules include a "not deleted" condition (STATUS_TYPE_IS_DELETED equal to false).
subscriptionsrepeated EventSubscription4The events that trigger a notification. A single EVENT_TYPE_OBJECT_NOTIFICATION subscription makes the rule filter-based: it then notifies about the objects that match object_filter.
optionsNOTIFICATIONFLAGS5is_enabled turns the rule on, send_digest combines the day's notifications into one message, exclude_self_triggered leaves out events caused by the user, and recurring (filter-based rules only) repeats the notification for objects that still match.
is_commonbool6True for a common rule that notifies the users and groups in recipients; false for a private rule of its owner.
recipientsAccessControlList7For a common rule, the users and groups to notify. Not used by private rules.
notification_days_of_weekuint328For filter-based rules, the days on which the rule is processed, as a bit mask: 1 Sunday, 2 Monday, 4 Tuesday, 8 Wednesday, 16 Thursday, 32 Friday, 64 Saturday. 127 means every day.

Used by methods

Used in fields