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- }
111export interface IEvent {
122 type ?: string ;
133 source ?: string ;
@@ -20,38 +10,21 @@ export interface IEvent {
2010 reference_id ?: string ;
2111 session_id ?: string ;
2212}
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+ }
2323export interface IEventQueue {
2424 enqueue ( event : IEvent ) : void ;
2525 process ( ) : void ;
2626 suspendProcessing ( durationInMinutes ?: number , discardFutureQueuedItems ?: boolean , clearQueue ?: boolean ) : void ;
2727}
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- }
5528export interface IEnvironmentInfoCollector {
5629 getEnvironmentInfo ( context : EventPluginContext ) : IEnvironmentInfo ;
5730}
@@ -251,6 +224,15 @@ export interface IUserDescription {
251224 description ?: string ;
252225 data ?: any ;
253226}
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+ }
254236export declare class SubmissionResponse {
255237 success : boolean ;
256238 badRequest : boolean ;
@@ -333,6 +315,38 @@ export interface IModule {
333315 created_date ?: Date ;
334316 modified_date ?: Date ;
335317}
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+ }
336350export declare class ConfigurationDefaultsPlugin implements IEventPlugin {
337351 priority : number ;
338352 name : string ;
@@ -348,20 +362,6 @@ export declare class ModuleInfoPlugin implements IEventPlugin {
348362 name : string ;
349363 run ( context : EventPluginContext , next ?: ( ) => void ) : void ;
350364}
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- }
365365export declare class RequestInfoPlugin implements IEventPlugin {
366366 priority : number ;
367367 name : string ;
0 commit comments