Notification Service events
Overview
In the Notification Service, event triggers are set up which listen to events and determine when to send a notification. This section provides a list of the events which are available to use.
Resource events
Events are linked to resources. The actual type of the resource is indicated by the resource.type property.
The other properties shown for a given resource depend on the type.
Refer to the event listings later in this section for different services, indicating the resource types and the properties which are available.
Event filtering
An event trigger fires only for events that match its filters. You set the filters in the trigger's _event._filters property, as a set of property paths and the values to match.
{
"_event": {
"_filters": {
"event": "resource.ResourceCreated",
"resource.type": "itemsvc.*",
"resource.namespaces": "proj_DrZrSNrW"
}
}
}
Property paths
Write the property path in dot notation. The Notification Service reads the matching value from that path in the event. For example, resource.type reads the type property inside the event's resource object.
For the properties each event carries, see the example events later on this page.
Matching values
Every filter must match, so adding a filter narrows the set of events that fire the trigger.
Under event and resource.type, a value of exactly two parts is rewritten before it is matched. These two properties carry fully qualified names, such as com.invicara.svc.event.resource.ResourceCreated, and the rewrite saves you writing the package out:
| Property | You write | The service matches |
|---|
event | resource.ResourceCreated | *.resource.ResourceCreated |
resource.type | itemsvc.NamedUserCollection | *.itemsvc.*.NamedUserCollection |
The rewrite counts parts, not asterisks, so a two-part wildcard is rewritten as well: under resource.type, itemsvc.* becomes *.itemsvc.*.*. A value of one part, or of three or more, is matched as written, as is every value under every other property.
Once any rewrite has been applied:
- A value that contains an asterisk is a wildcard. Each asterisk matches any sequence of characters, dots included, and the rest of the value matches literally.
- A value that contains no asterisk must match the event value exactly.
Either way the whole event value must match, end to end. To match any value, use a single asterisk.
Note what this means for a two-part value under resource.type: it gains a segment, so it matches only a type that has a package before the service name and a segment between the service name and the type. That is the shape every platform resource type has, but a bare itemsvc.Item is not one, and matches nothing.
When the event property holds an array, the filter matches if any element of the array matches. This is how resource.namespaces works, because an event can name more than one namespace.
Filtering by namespace
Unless you hold the Platform Manager role, every filter set must name a namespace. Use one of the following properties:
resource.namespaces
resource.applicationNamespaces
resource.organizationNamespaces
namespaces
namespace
applicationNamespaces
organizationNamespaces
The Notification Service checks your permission in the namespace the filter names, as well as in the trigger's own namespaces. Any action on notificationsvc:trigger in that namespace is enough; you do not need a particular one.
Only one of these properties is used for that check. The service takes the first one present, in the order listed above, and ignores the rest. Name the namespace in a single property to keep the check and the matching in step.
The value is read literally for the permission check, so a wildcard such as proj_* is treated as the name of a namespace rather than as a pattern. The check then fails for anyone without the Platform Manager role, even though the same value still works as a wildcard when events are matched.
A trigger whose filters name none of these properties is unscoped, so it requires the Platform Manager role. If you do not hold that role, the trigger fails validation with the message must contain a valid namespace filter.
A Platform Manager is not restricted by the namespaces in a filter. The role can create an event trigger whose filters name no namespace, and that trigger matches events in every namespace. For more information, see Permissions and namespaces.
Example
To fire a trigger when the Item Service creates a resource in your project, use the following filters.
{
"_event": {
"_filters": {
"event": "resource.ResourceCreated",
"resource.type": "itemsvc.*",
"resource.namespaces": "proj_DrZrSNrW"
}
}
}
List of events
These sections list the following types of events:
List of resource types
These sections list the following resource types:
Common events
resource.ResourceCreated
A resource created event is emitted when a resource is created.
| Property | Type |
|---|
uuid | UUID |
resource | |
user | |
_id | string |
timestamp | timestamp |
requestId | string |
Example event
{
"event": "resource.ResourceCreated",
"uuid": "8f2792c7-b01a-4493-ba5a-d0588a4aad8e",
"resource": {
"type": "custom.Resource",
...
}
"user": {
"id": "00b82755-b5e6-4c8b-a4cf-66bb4f697f17"
},
"requestId": "abe50236-cf30-435f-b7fc-c05cb8f0f320"
}
resource.ResourceUpdated
A resource updated event is emitted when a resource is changed.
| Property | Type |
|---|
uuid | UUID |
resource | |
user | |
_id | string |
timestamp | timestamp |
requestId | string |
Example event
{
"event": "resource.ResourceUpdated",
"uuid": "8f2792c7-b01a-4493-ba5a-d0588a4aad8e",
"resource": {
"type": "custom.Resource",
...
}
"user": {
"id": "00b82755-b5e6-4c8b-a4cf-66bb4f697f17"
},
"requestId": "abe50236-cf30-435f-b7fc-c05cb8f0f320"
}
resource.ResourceSoftDeleted
A resource soft deleted event is emitted if a resource is marked for deletion but not yet permanently deleted.
Typically, a resource.ResourceHardDeleted event will follow a resource.ResourceSoftDeleted event. However, not all services support soft delete and in this case, only a resource.ResourceHardDeleted is emitted.
| Property | Type |
|---|
uuid | UUID |
resource | |
user | |
_id | string |
timestamp | timestamp |
requestId | string |
Example event
{
"event": "resource.ResourceSoftDeleted",
"uuid": "8f2792c7-b01a-4493-ba5a-d0588a4aad8e",
"resource": {
"type": "custom.Resource",
...
}
"user": {
"id": "00b82755-b5e6-4c8b-a4cf-66bb4f697f17"
},
"requestId": "abe50236-cf30-435f-b7fc-c05cb8f0f320"
}
resource.ResourceHardDeleted
A resource hard deleted event is emitted if a resource is deleted permanently. This means is it either deleted with ?purge=true or otherwise deleted in a way that means it cannot be recovered.
| Property | Type |
|---|
uuid | UUID |
resource | |
user | |
_id | string |
timestamp | timestamp |
requestId | string |
Example event
{
"event": "resource.ResourceHardDeleted",
"uuid": "8f2792c7-b01a-4493-ba5a-d0588a4aad8e",
"resource": {
"type": "custom.Resource",
...
}
"user": {
"id": "00b82755-b5e6-4c8b-a4cf-66bb4f697f17"
},
"requestId": "abe50236-cf30-435f-b7fc-c05cb8f0f320"
}
Passport Service events
passportsvc.Login
A login event is emitted when a user logs into the Passport Service. This type of event is only emitted when a login is initiated through a user interface, for example, through a web page. It does not occur for requests that are only authenticated as a particular user.
| Property | Type |
|---|
uuid | string |
user | |
_id | string |
timestamp | timestamp |
requestId | string |
Example event
{
"event": "passportsvc.Login",
"uuid": "8f2792c7-b01a-4493-ba5a-d0588a4aad8e",
"user": {
"id": "00b82755-b5e6-4c8b-a4cf-66bb4f697f17"
},
"requestId": "abe50236-cf30-435f-b7fc-c05cb8f0f320"
}
passportsvc.Logout
A logout event is emitted when a user logs outs of the Passport Service, for example, by clicking logout in the console.
| Property | Type |
|---|
uuid | string |
user | |
_id | string |
timestamp | timestamp |
requestId | string |
Example event
{
"event": "passportsvc.Logout",
"uuid": "8f2792c7-b01a-4493-ba5a-d0588a4aad8e",
"user": {
"id": "00b82755-b5e6-4c8b-a4cf-66bb4f697f17"
},
"requestId": "abe50236-cf30-435f-b7fc-c05cb8f0f320"
}
Workflow Service events
A user input event is emitted from a workflow at the point where a workflow requires user input.
This could be used to send a notification to the user that indicates they need to provide input in order to continue the workflow.
| Property | Type |
|---|
uuid | string |
namespaces | string[] |
notificationId | string |
url | string |
inputParams | map |
requestId | string |
timestamp | timestamp |
Example event
{
"event": "workflowsvc.UserInput",
"uuid": "8f2792c7-b01a-4493-ba5a-d0588a4aad8e",
"notificationId": "00b82755-b5e6-4c8b-a4cf-66bb4f697f17",
"url": "http://example.com",
"inputParams": {
"some": "value",
"other": 1
},
"requestId": "abe50236-cf30-435f-b7fc-c05cb8f0f320"
}
Resource types
Passport Service resource types
passportsvc.Application
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| organizationId | string |
| organizationNamespaces | string[] |
| configs | map |
before | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| namespaces | string[] |
| configs | map |
| appOwner | string |
after | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| namespaces | string[] |
| configs | map |
| appOwner | string |
passportsvc.Namespace
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| namespaces | string[] |
after | | |
| namespaces | string[] |
passportsvc.Organization
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| namespaces | string[] |
| orgOwner | string |
after | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| namespaces | string[] |
| orgOwner | string |
passportsvc.Workspace
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| appId | string |
| applicationNamespaces | string[] |
before | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| namespaces | string[] |
| appId | string |
after | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| namespaces | string[] |
| appId | string |
passportsvc.UserGroup
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| appId | string |
| orgId | string |
| applicationNamespaces | string[] |
before | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| namespaces | string[] |
| appId | string |
| orgId | string |
after | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| namespaces | string[] |
| appId | string |
| orgId | string |
passportsvc.User
| Object | Property | Type |
|---|
resource | | |
| id | string |
before | | |
| firstName | string |
| lastName | string |
| email | string |
| eusa | boolean |
| privacy | boolean |
| disabled | boolean |
| notificationConfigured | boolean |
after | | |
| firstName | string |
| lastName | string |
| email | string |
| eusa | boolean |
| privacy | boolean |
| disabled | boolean |
| notificationConfigured | boolean |
passportsvc.ApiKey
| Object | Property | Type |
|---|
resource | | |
| id | string |
| user | string |
| namespace | string |
before | | |
| name | string |
| expiryDateTime | timestamp |
| revoked | boolean |
| revokedBy | string |
| revokedDateTime | timestamp |
after | | |
| name | string |
| expiryDateTime | timestamp |
| revoked | boolean |
| revokedBy | string |
| revokedDateTime | timestamp |
File Service resource types
filesvc.File
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| fileType | string |
before | | |
| name | string |
| parents | string[] |
| namespaces | string[] |
| fileType | string |
| status | string |
| tags | string[] |
| tipVersion | integer |
after | | |
| name | string |
| parents | string[] |
| namespaces | string[] |
| fileType | string |
| status | string |
| tags | string[] |
| tipVersion | integer |
filesvc.FileVersion
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| fileType | string |
| field | string |
| version | integer |
before | | |
| name | string |
| field | string |
| version | integer |
| parents | string[] |
| namespaces | string[] |
| fileType | string |
| status | string |
| tags | string[] |
| size | integer |
after | | |
| name | string |
| field | string |
| version | integer |
| parents | string[] |
| namespaces | string[] |
| fileType | string |
| status | string |
| tags | string[] |
| size | integer |
Item Service resource types
itemsvc.NamedCompositeItem
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| userItemid | string |
before | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipVersion | integer |
after | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipVersion | integer |
itemsvc.NamedCompositeItemVersion
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| userItemDbld | string |
| userItemId | string |
| version | integer |
before | | |
| namespaces | string[] |
| userItemDbld | string |
| userItemId | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipVersion | integer |
after | | |
| namespaces | string[] |
| userItemDbld | string |
| userItemId | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipVersion | integer |
itemsvc.NamedTelemetryCollectionVersion
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| userItemDbld | string |
| userItemId | string |
| version | integer |
before | | |
| namespaces | string[] |
| userItemDbld | string |
| userItemId | string |
| itemClass | string |
| version | integer |
after | | |
| namespaces | string[] |
| userItemDbld | string |
| userItemId | string |
| itemClass | string |
| version | integer |
itemsvc.NamedUserCollection
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| userItemId | string |
before | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipversion | integer |
after | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipversion | integer |
itemsvc.NamedUserCollectionVersion
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| userItemDbId | string |
| userItemId | string |
| version | integer |
before | | |
| namespaces | string[] |
| userItemDbld | string |
| userItemId | string |
| itemClass | string |
| version | integer |
after | | |
| namespaces | string[] |
| userItemDbld | string |
| userItemId | string |
| itemClass | string |
| version | integer |
itemsvc.SchemaDefinition
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| definition | string |
| namespaces | string[] |
after | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| definition | string |
| namespaces | string[] |
itemsvc.Script
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| userItemId | string |
before | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipVersion | integer |
after | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipVersion | integer |
itemsvc.ScriptVersion
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| userItemDbId | string |
| userItemId | string |
| version | integer |
before | | |
| namespaces | string[] |
| userItemDbId | string |
| userItemId | string |
| itemClass | string |
| version | integer |
after | | |
| namespaces | string[] |
| userItemDbId | string |
| userItemId | string |
| itemClass | string |
| version | integer |
itemsvc.UserConfig
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| userItemId | string |
before | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipVersion | integer |
after | | |
| name | string |
| description | string |
| userType | string |
| shortName | string |
| itemClass | string |
| kind | string |
| namespaces | string[] |
| tipVersion | integer |
itemsvc.UserConfigVersion
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| userItemDbId | string |
| userItemId | string |
| version | integer |
before | | |
| namespaces | string[] |
| userItemDbId | string |
| userItemId | string |
| itemClass | string |
| version | integer |
after | | |
| namespaces | string[] |
| userItemDbId | string |
| userItemId | string |
| itemClass | string |
| version | integer |
Object Model Service resource types
omapisvc.APIConfig
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| name | string |
| description | string |
after | | |
| name | string |
| description | string |
Example:
{
"event": "resource.ResourceUpdated",
"resource": {
"type": "omapisvc.APIConfig",
"namespaces": ["X"],
"before": {
"name": "old name",
...
},
"after": {
"name": "new name",
...
},
...
},
...
}
Datasources Service resource types
datasources.Orchestrator
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| name | string |
| userType | string |
| orchestratorClass | string |
after | | |
| name | string |
| userType | string |
| orchestratorClass | string |
Example:
{
"event": "resource.ResourceUpdated",
"resource": {
"type": "datasources.Orchestrator",
"namespaces": ["X"],
"before": {
"name": "X",
...
},
"after": {
"name": "Y",
...
},
...
},
...
}
datasources.OrchestratorRun
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| orchestratorId | string |
before | | |
| namespaces | string[] |
| orchestratorId | string |
| status | string |
after | | |
| namespaces | string[] |
| orchestratorId | string |
| status | string |
Example:
{
"event": "resource.ResourceUpdated",
"resource": {
"type": "datasources.OrchestratorRun",
"namespaces": ["X"],
"orchestratorId": "68a15d18-620c-4672-9e39-34106ed50b08"
"before": {
"status": "RUNNING",
...
},
"after": {
"status": "COMPLETED",
...
},
...
},
...
}
datasources.OrchestratorSchedule
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
| orchestratorId | string |
before | | |
| namespaces | string[] |
| orchestratorId | string |
| runinterval | string |
after | | |
| namespaces | string[] |
| orchestratorId | string |
| runinterval | string |
Example:
{
"event": "resource.ResourceUpdated",
"resource": {
"type": "datasources.OrchestratorSchedule",
"namespaces": ["X"],
"orchestratorId": "68a15d18-620c-4672-9e39-34106ed50b08",
"before": {
"runinterval": "* * * 0",
...
},
"after": {
"runinterval": "* * * 1",
...
},
...
},
...
}
AI Service resource types
aisvc.Agent
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| namespaces | string[] |
| name | string |
| description | string |
| background | string |
| user_type | string |
| type | string |
| config | object |
| tools | string[] |
| knowledgebases | string[] |
| agent_class | string |
after | | |
| namespaces | string[] |
| name | string |
| description | string |
| background | string |
| user_type | string |
| type | string |
| config | object |
| tools | string[] |
| knowledgebases | string[] |
| agent_class | string |
aisvc.Team
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| namespaces | string[] |
| name | string |
| agents | array |
| flow | array |
| permissionProfileId | string |
after | | |
| namespaces | string[] |
| name | string |
| agents | array |
| flow | array |
| permissionProfileId | string |
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| namespaces | string[] |
| name | string |
| description | string |
| user_type | string |
| tool_class | string |
| type | string |
after | | |
| namespaces | string[] |
| name | string |
| description | string |
| user_type | string |
| tool_class | string |
| type | string |
aisvc.KnowledgeBase
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| namespaces | string[] |
| user_type | string |
| name | string |
| vectorized_status | string |
| file_id | string |
| file_version_id | string |
after | | |
| namespaces | string[] |
| user_type | string |
| name | string |
| vectorized_status | string |
| file_id | string |
| file_version_id | string |
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| namespaces | string[] |
| name | string |
| description | string |
| script | object |
| schema | object |
after | | |
| namespaces | string[] |
| name | string |
| description | string |
| script | object |
| schema | object |
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| namespaces | string[] |
| name | string |
| description | string |
| user_type | string |
| criteria | object |
after | | |
| namespaces | string[] |
| name | string |
| description | string |
| user_type | string |
| criteria | object |
aisvc.ExternalMcpServerConfig
| Object | Property | Type |
|---|
resource | | |
| id | string |
| namespaces | string[] |
before | | |
| namespaces | string[] |
| name | string |
| description | string |
| user_type | string |
| transport | string |
| connection | object |
after | | |
| namespaces | string[] |
| name | string |
| description | string |
| user_type | string |
| transport | string |
| connection | object |
Workflow Service resource types
workflowsvc.Workflow
| Object | Property | Type |
|---|
resource | | |
| id | string |
before | | |
| _id | UUID |
| _workflowDefId | UUID |
| _name | string |
| _description | string |
| _namespaces | string[] |
| _userType | string |
| _status | string |
| _duration | number |
after | | |
| _id | UUID |
| _workflowDefId | UUID |
| _name | string |
| _description | string |
| _namespaces | string[] |
| _userType | string |
| _status | string |
| _duration | number |
workflowsvc.WorkflowDef
| Object | Property | Type |
|---|
resource | | |
| id | string |
before | | |
| _id | UUID |
| _name | string |
| _description | string |
| _namespaces | string[] |
| _userType | string |
after | | |
| _id | UUID |
| _name | string |
| _description | string |
| _namespaces | string[] |
| _userType | string |
workflowsvc.WorkflowCompleted
| Object | Property | Type |
|---|
resource | | |
id | string | |
after (typical) | | |
| _id | UUID |
| _workflowDefId | UUID |
| _name | string |
| _description | string |
| _namespaces | string[] |
| _userType | string |
| _status | string |
| _duration | number |
workflowsvc.Task
| Object | Property | Type |
|---|
resource | | |
| id | string |
after (typical) | | |
| _id | UUID |
| _workflowId | UUID |
| _name | string |
| _description | string |
| _namespaces | string[] |
| _taskType | string |
| _status | string |
| _duration | number |
workflowsvc.WorkflowSchedule
| Object | Property | Type |
|---|
resource | | |
| id | string (job key) |
before | | |
| _namespaces | string[] |
| _workflowDefId | UUID |
| _workflowDefName | string |
| _jobKey | string |
after | | |
| _namespaces | string[] |
| _workflowDefId | UUID |
| _workflowDefName | string |
| _jobKey | string |