IDashboardEvent
Base type for all dashboard events.
export interface IDashboardEvent<TPayload = any>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| string | (Optional) If this event was triggered as part of a command processing, then the prop will contain command’s correlation ID. | |
| Dashboard context in which the event occurred. | ||
| { acceptedTimestamp: number; } | (Optional) Metadata about the event useful for logging and handling of the event. | |
| TPayload | (Optional) Specify any additional data the custom event needs. | |
| Event type. Always starts with “GDC.DASH/EVT”. |
Property details
IDashboardEvent.correlationIdproperty
If this event was triggered as part of a command processing, then the prop will contain command’s correlation ID.
readonly correlationId?: string;
IDashboardEvent.ctxproperty
Dashboard context in which the event occurred.
readonly ctx: DashboardContext;
IDashboardEvent.metaproperty
Metadata about the event useful for logging and handling of the event.
readonly meta?: {
acceptedTimestamp: number;
};
IDashboardEvent.payloadproperty
Specify any additional data the custom event needs.
readonly payload?: TPayload;
IDashboardEvent.typeproperty
Event type. Always starts with “GDC.DASH/EVT”.
readonly type: DashboardEventType;