Type | Read/write | Author | Availability |
Read | FINBOURNE | Provided with LUSID |
Providing you have sufficient access control permissions, the Notification.EventType
provider enables you to write a Luminesce SQL query that retrieves the event types and their schemas that you can subscribe to with LUSID's Notification Service.
See also: Notification.Subscription
Basic usage
select * from Notification.EventType where <filter-expression>
Data fields
By default, Notification.EventType
returns a table of data populated with particular fields (columns). You can return a subset of these fields.
To list fields available to return, their data types, whether fields are considered 'main', and an explanation for each, run the following query using a suitable tool:
select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field where TableName = 'Notification.EventType' and FieldType = 'Column';
Note: Fields marked 'main' are returned by queries that select a caret character, for example
select ^ from Notification.EventType
.
Examples
Note: For more example Luminesce SQL queries, visit our Github repo.
Example 1: Retrieve all event types
select * from Notification.EventType group by Id;
Example 2: Retrieve first ten event types and their schemas
select * from Notification.EventType limit 10;
Example 3: Retrieve the schema for a particular event type
select * from Notification.EventType where Id = 'PortfolioCreated';