Skip to content

Commit dccd844

Browse files
committed
Added a heartbeat plugin for updating sessions
1 parent 4e59552 commit dccd844

12 files changed

+96
-64
lines changed

dist/exceptionless.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export interface IEvent {
88
value?: number;
99
data?: any;
1010
reference_id?: string;
11-
session_id?: string;
1211
}
1312
export interface ILastReferenceIdManager {
1413
getLast(): string;
@@ -216,7 +215,6 @@ export declare class EventBuilder {
216215
constructor(event: IEvent, client: ExceptionlessClient, pluginContextData?: ContextData);
217216
setType(type: string): EventBuilder;
218217
setSource(source: string): EventBuilder;
219-
setSessionId(sessionId: string): EventBuilder;
220218
setReferenceId(referenceId: string): EventBuilder;
221219
setMessage(message: string): EventBuilder;
222220
setGeo(latitude: number, longitude: number): EventBuilder;
@@ -277,10 +275,12 @@ export declare class ExceptionlessClient {
277275
submitLog(source: string, message: string, level: string, callback?: (context: EventPluginContext) => void): void;
278276
createNotFound(resource: string): EventBuilder;
279277
submitNotFound(resource: string, callback?: (context: EventPluginContext) => void): void;
280-
createSessionStart(sessionId: string): EventBuilder;
281-
submitSessionStart(sessionId: string, callback?: (context: EventPluginContext) => void): void;
282-
createSessionEnd(sessionId: string): EventBuilder;
283-
submitSessionEnd(sessionId: string, callback?: (context: EventPluginContext) => void): void;
278+
createSessionStart(userIdentity?: string, userDisplayName?: string): EventBuilder;
279+
submitSessionStart(userIdentity?: string, userDisplayName?: string, callback?: (context: EventPluginContext) => void): void;
280+
createSessionEnd(userIdentity?: string, userDisplayName?: string): EventBuilder;
281+
submitSessionEnd(userIdentity?: string, userDisplayName?: string, callback?: (context: EventPluginContext) => void): void;
282+
createSessionHeartbeat(userIdentity?: string, userDisplayName?: string): EventBuilder;
283+
submitSessionHeartbeat(userIdentity?: string, userDisplayName?: string, callback?: (context: EventPluginContext) => void): void;
284284
createEvent(pluginContextData?: ContextData): EventBuilder;
285285
submitEvent(event: IEvent, pluginContextData?: ContextData, callback?: (context: EventPluginContext) => void): void;
286286
updateUserEmailAndDescription(referenceId: string, email: string, description: string, callback?: (response: SubmissionResponse) => void): void;

dist/exceptionless.js

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.node.js

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.node.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)