@acceleratxr/core_sdk / Event
Class: Event#
Describes a single telemetry event. A telemetry event is when something occurs in the system.
REQUIRES: Telemetry Services
author Jean-Philippe Steinmetz info@acceleratxr.com
Hierarchy#
Event
Index#
Constructors#
Properties#
Accessors#
Constructors#
constructor#
+ new Event(other?: any): Event
Defined in src/models/Event.ts:45
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Event
Properties#
environment#
• environment: string = “prod”
Defined in src/models/Event.ts:25
The name of the environment that the event originated from. This is typically dev or prod.
origin#
• origin: string = “”
Defined in src/models/Event.ts:30
The unique name of the service or client that the event originated from.
timestamp#
• timestamp: Date = new Date()
Defined in src/models/Event.ts:35
The date and time that the event occured.
type#
• type: string = “”
Defined in src/models/Event.ts:40
The type of event being recorded.
uid#
• uid: string = uuid.v4()
Defined in src/models/Event.ts:20
The universally unique identifier of the event.
userId#
• userId: string = “”
Defined in src/models/Event.ts:45
The universally unique identifer of the user that sent the event.
Accessors#
ClassName#
• Staticget ClassName(): string
Defined in src/models/Event.ts:15
Returns: string