1
- export interface ILastReferenceIdManager {
2
- getLast ( ) : string ;
3
- clearLast ( ) : void ;
4
- setLast ( eventId : string ) : void ;
5
- }
6
- export interface ILog {
7
- info ( message : string ) : void ;
8
- warn ( message : string ) : void ;
9
- error ( message : string ) : void ;
10
- }
11
1
export interface IEvent {
12
2
type ?: string ;
13
3
source ?: string ;
@@ -20,38 +10,21 @@ export interface IEvent {
20
10
reference_id ?: string ;
21
11
session_id ?: string ;
22
12
}
13
+ export interface ILastReferenceIdManager {
14
+ getLast ( ) : string ;
15
+ clearLast ( ) : void ;
16
+ setLast ( eventId : string ) : void ;
17
+ }
18
+ export interface ILog {
19
+ info ( message : string ) : void ;
20
+ warn ( message : string ) : void ;
21
+ error ( message : string ) : void ;
22
+ }
23
23
export interface IEventQueue {
24
24
enqueue ( event : IEvent ) : void ;
25
25
process ( ) : void ;
26
26
suspendProcessing ( durationInMinutes ?: number , discardFutureQueuedItems ?: boolean , clearQueue ?: boolean ) : void ;
27
27
}
28
- export interface IEnvironmentInfo {
29
- processor_count ?: number ;
30
- total_physical_memory ?: number ;
31
- available_physical_memory ?: number ;
32
- command_line ?: string ;
33
- process_name ?: string ;
34
- process_id ?: string ;
35
- process_memory_size ?: number ;
36
- thread_id ?: string ;
37
- architecture ?: string ;
38
- o_s_name ?: string ;
39
- o_s_version ?: string ;
40
- ip_address ?: string ;
41
- machine_name ?: string ;
42
- install_id ?: string ;
43
- runtime_version ?: string ;
44
- data ?: any ;
45
- }
46
- export declare class ContextData {
47
- setException ( exception : Error ) : void ;
48
- hasException : boolean ;
49
- getException ( ) : Error ;
50
- markAsUnhandledError ( ) : void ;
51
- isUnhandledError : boolean ;
52
- setSubmissionMethod ( method : string ) : void ;
53
- getSubmissionMethod ( ) : string ;
54
- }
55
28
export interface IEnvironmentInfoCollector {
56
29
getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
57
30
}
@@ -251,6 +224,15 @@ export interface IUserDescription {
251
224
description ?: string ;
252
225
data ?: any ;
253
226
}
227
+ export declare class ContextData {
228
+ setException ( exception : Error ) : void ;
229
+ hasException : boolean ;
230
+ getException ( ) : Error ;
231
+ markAsUnhandledError ( ) : void ;
232
+ isUnhandledError : boolean ;
233
+ setSubmissionMethod ( method : string ) : void ;
234
+ getSubmissionMethod ( ) : string ;
235
+ }
254
236
export declare class SubmissionResponse {
255
237
success : boolean ;
256
238
badRequest : boolean ;
@@ -333,6 +315,38 @@ export interface IModule {
333
315
created_date ?: Date ;
334
316
modified_date ?: Date ;
335
317
}
318
+ export interface IRequestInfo {
319
+ user_agent ?: string ;
320
+ http_method ?: string ;
321
+ is_secure ?: boolean ;
322
+ host ?: string ;
323
+ port ?: number ;
324
+ path ?: string ;
325
+ referrer ?: string ;
326
+ client_ip_address ?: string ;
327
+ cookies ?: any ;
328
+ post_data ?: any ;
329
+ query_string ?: any ;
330
+ data ?: any ;
331
+ }
332
+ export interface IEnvironmentInfo {
333
+ processor_count ?: number ;
334
+ total_physical_memory ?: number ;
335
+ available_physical_memory ?: number ;
336
+ command_line ?: string ;
337
+ process_name ?: string ;
338
+ process_id ?: string ;
339
+ process_memory_size ?: number ;
340
+ thread_id ?: string ;
341
+ architecture ?: string ;
342
+ o_s_name ?: string ;
343
+ o_s_version ?: string ;
344
+ ip_address ?: string ;
345
+ machine_name ?: string ;
346
+ install_id ?: string ;
347
+ runtime_version ?: string ;
348
+ data ?: any ;
349
+ }
336
350
export declare class ConfigurationDefaultsPlugin implements IEventPlugin {
337
351
priority : number ;
338
352
name : string ;
@@ -348,20 +362,6 @@ export declare class ModuleInfoPlugin implements IEventPlugin {
348
362
name : string ;
349
363
run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
350
364
}
351
- export interface IRequestInfo {
352
- user_agent ?: string ;
353
- http_method ?: string ;
354
- is_secure ?: boolean ;
355
- host ?: string ;
356
- port ?: number ;
357
- path ?: string ;
358
- referrer ?: string ;
359
- client_ip_address ?: string ;
360
- cookies ?: any ;
361
- post_data ?: any ;
362
- query_string ?: any ;
363
- data ?: any ;
364
- }
365
365
export declare class RequestInfoPlugin implements IEventPlugin {
366
366
priority : number ;
367
367
name : string ;
0 commit comments