forked from DataDog/dd-sdk-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapiSurface
1032 lines (1032 loc) · 39.9 KB
/
apiSurface
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
object com.datadog.android.Datadog
DEPRECATED fun initialize(android.content.Context, DatadogConfig)
DEPRECATED fun initialize(android.content.Context, com.datadog.android.privacy.TrackingConsent, DatadogConfig)
fun initialize(android.content.Context, com.datadog.android.core.configuration.Credentials, com.datadog.android.core.configuration.Configuration, com.datadog.android.privacy.TrackingConsent)
fun isInitialized(): Boolean
fun clearAllData()
fun setVerbosity(Int)
fun setTrackingConsent(com.datadog.android.privacy.TrackingConsent)
fun setUserInfo(String? = null, String? = null, String? = null, Map<String, Any?> = emptyMap())
DEPRECATED class com.datadog.android.DatadogConfig
DEPRECATED class Builder
constructor(String, String, java.util.UUID)
constructor(String, String)
constructor(String, String, String)
fun build(): DatadogConfig
fun setLogsEnabled(Boolean): Builder
fun setTracesEnabled(Boolean): Builder
fun setCrashReportsEnabled(Boolean): Builder
fun setRumEnabled(Boolean): Builder
fun setServiceName(String): Builder
DEPRECATED fun setEnvironmentName(String): Builder
fun setFirstPartyHosts(List<String>): Builder
fun useEUEndpoints(): Builder
fun useUSEndpoints(): Builder
fun useGovEndpoints(): Builder
fun useCustomLogsEndpoint(String): Builder
fun useCustomTracesEndpoint(String): Builder
fun useCustomCrashReportsEndpoint(String): Builder
fun useCustomRumEndpoint(String): Builder
fun trackInteractions(Array<com.datadog.android.rum.tracking.ViewAttributesProvider> = emptyArray()): Builder
fun useViewTrackingStrategy(com.datadog.android.rum.tracking.ViewTrackingStrategy): Builder
fun addPlugin(com.datadog.android.plugin.DatadogPlugin, com.datadog.android.plugin.Feature): Builder
fun sampleRumSessions(Float): Builder
fun setRumViewEventMapper(com.datadog.android.event.ViewEventMapper): Builder
fun setRumResourceEventMapper(com.datadog.android.event.EventMapper<com.datadog.android.rum.model.ResourceEvent>): Builder
fun setRumActionEventMapper(com.datadog.android.event.EventMapper<com.datadog.android.rum.model.ActionEvent>): Builder
fun setRumErrorEventMapper(com.datadog.android.event.EventMapper<com.datadog.android.rum.model.ErrorEvent>): Builder
companion object
object com.datadog.android.DatadogEndpoint
const val LOGS_US: String
const val LOGS_EU: String
const val LOGS_GOV: String
const val TRACES_US: String
const val TRACES_EU: String
const val TRACES_GOV: String
const val RUM_US: String
const val RUM_EU: String
const val RUM_GOV: String
const val NTP_0: String
const val NTP_1: String
const val NTP_2: String
const val NTP_3: String
class com.datadog.android.DatadogEventListener : okhttp3.EventListener
override fun callStart(okhttp3.Call)
override fun dnsStart(okhttp3.Call, String)
override fun dnsEnd(okhttp3.Call, String, MutableList<java.net.InetAddress>)
override fun connectStart(okhttp3.Call, java.net.InetSocketAddress, java.net.Proxy)
override fun connectEnd(okhttp3.Call, java.net.InetSocketAddress, java.net.Proxy, okhttp3.Protocol?)
override fun secureConnectStart(okhttp3.Call)
override fun secureConnectEnd(okhttp3.Call, okhttp3.Handshake?)
override fun responseHeadersStart(okhttp3.Call)
override fun responseHeadersEnd(okhttp3.Call, okhttp3.Response)
override fun responseBodyStart(okhttp3.Call)
override fun responseBodyEnd(okhttp3.Call, Long)
override fun callEnd(okhttp3.Call)
override fun callFailed(okhttp3.Call, java.io.IOException)
class Factory : okhttp3.EventListener.Factory
override fun create(okhttp3.Call): okhttp3.EventListener
open class com.datadog.android.DatadogInterceptor : com.datadog.android.tracing.TracingInterceptor
constructor(List<String>, com.datadog.android.tracing.TracedRequestListener = NoOpTracedRequestListener())
constructor(com.datadog.android.tracing.TracedRequestListener = NoOpTracedRequestListener())
override fun intercept(okhttp3.Interceptor.Chain): okhttp3.Response
override fun onRequestIntercepted(okhttp3.Request, io.opentracing.Span?, okhttp3.Response?, Throwable?)
override fun canSendSpan(): Boolean
companion object
enum com.datadog.android.core.configuration.BatchSize
constructor(Long)
- SMALL
- MEDIUM
- LARGE
class com.datadog.android.core.configuration.Configuration
class Builder
constructor(Boolean, Boolean, Boolean, Boolean)
fun build(): Configuration
fun setFirstPartyHosts(List<String>): Builder
fun useEUEndpoints(): Builder
fun useUSEndpoints(): Builder
fun useGovEndpoints(): Builder
fun useCustomLogsEndpoint(String): Builder
fun useCustomTracesEndpoint(String): Builder
fun useCustomCrashReportsEndpoint(String): Builder
fun useCustomRumEndpoint(String): Builder
fun trackInteractions(Array<com.datadog.android.rum.tracking.ViewAttributesProvider> = emptyArray()): Builder
fun trackLongTasks(Long = DEFAULT_LONG_TASK_THRESHOLD_MS): Builder
fun useViewTrackingStrategy(com.datadog.android.rum.tracking.ViewTrackingStrategy): Builder
fun addPlugin(com.datadog.android.plugin.DatadogPlugin, com.datadog.android.plugin.Feature): Builder
fun setBatchSize(BatchSize): Builder
fun setUploadFrequency(UploadFrequency): Builder
fun sampleRumSessions(Float): Builder
fun setRumViewEventMapper(com.datadog.android.event.ViewEventMapper): Builder
fun setRumResourceEventMapper(com.datadog.android.event.EventMapper<com.datadog.android.rum.model.ResourceEvent>): Builder
fun setRumActionEventMapper(com.datadog.android.event.EventMapper<com.datadog.android.rum.model.ActionEvent>): Builder
fun setRumErrorEventMapper(com.datadog.android.event.EventMapper<com.datadog.android.rum.model.ErrorEvent>): Builder
companion object
class com.datadog.android.core.configuration.Credentials
constructor(String, String, String, String?, String? = null)
enum com.datadog.android.core.configuration.UploadFrequency
constructor(Long)
- FREQUENT
- AVERAGE
- RARE
class com.datadog.android.core.model.NetworkInfo
constructor(Connectivity = Connectivity.NETWORK_NOT_CONNECTED, kotlin.String? = null, kotlin.Long = -1L, kotlin.Long = -1L, kotlin.Long = -1L, kotlin.Long = -2147483648L, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): NetworkInfo
enum Connectivity
constructor(kotlin.String)
- NETWORK_NOT_CONNECTED
- NETWORK_ETHERNET
- NETWORK_WIFI
- NETWORK_WIMAX
- NETWORK_BLUETOOTH
- NETWORK_2G
- NETWORK_3G
- NETWORK_4G
- NETWORK_5G
- NETWORK_MOBILE_OTHER
- NETWORK_CELLULAR
- NETWORK_OTHER
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
class com.datadog.android.core.model.UserInfo
constructor(kotlin.String? = null, kotlin.String? = null, kotlin.String? = null, kotlin.collections.Map<kotlin.String, kotlin.Any?> = emptyMap())
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): UserInfo
interface com.datadog.android.event.EventMapper<T: Any>
fun map(T): T?
interface com.datadog.android.event.ViewEventMapper : EventMapper<com.datadog.android.rum.model.ViewEvent>
override fun map(com.datadog.android.rum.model.ViewEvent): com.datadog.android.rum.model.ViewEvent
object com.datadog.android.log.LogAttributes
const val APPLICATION_PACKAGE: String
const val APPLICATION_VERSION: String
const val ENV: String
const val DATE: String
const val DB_INSTANCE: String
const val DB_OPERATION: String
const val DB_STATEMENT: String
const val DB_USER: String
const val DD_SPAN_ID: String
const val DD_TRACE_ID: String
const val DURATION: String
const val ERROR_KIND: String
const val ERROR_MESSAGE: String
const val ERROR_STACK: String
const val HOST: String
const val HTTP_METHOD: String
const val HTTP_REFERRER: String
const val HTTP_REQUEST_ID: String
const val HTTP_STATUS_CODE: String
const val HTTP_URL: String
const val HTTP_USERAGENT: String
const val HTTP_VERSION: String
const val LOGGER_METHOD_NAME: String
const val LOGGER_NAME: String
const val LOGGER_THREAD_NAME: String
const val LOGGER_VERSION: String
const val MESSAGE: String
const val NETWORK_CARRIER_ID: String
const val NETWORK_CARRIER_NAME: String
const val NETWORK_CLIENT_IP: String
const val NETWORK_CLIENT_PORT: String
const val NETWORK_CONNECTIVITY: String
const val NETWORK_DOWN_KBPS: String
const val NETWORK_SIGNAL_STRENGTH: String
const val NETWORK_UP_KBPS: String
const val RUM_APPLICATION_ID: String
const val RUM_SESSION_ID: String
const val RUM_VIEW_ID: String
const val SERVICE_NAME: String
const val SOURCE: String
const val STATUS: String
const val USR_EMAIL: String
const val USR_ID: String
const val USR_NAME: String
class com.datadog.android.log.Logger
fun v(String, Throwable? = null, Map<String, Any?> = emptyMap())
fun d(String, Throwable? = null, Map<String, Any?> = emptyMap())
fun i(String, Throwable? = null, Map<String, Any?> = emptyMap())
fun w(String, Throwable? = null, Map<String, Any?> = emptyMap())
fun e(String, Throwable? = null, Map<String, Any?> = emptyMap())
fun wtf(String, Throwable? = null, Map<String, Any?> = emptyMap())
fun log(Int, String, Throwable? = null, Map<String, Any?> = emptyMap())
class Builder
fun build(): Logger
fun setServiceName(String): Builder
fun setDatadogLogsEnabled(Boolean): Builder
fun setLogcatLogsEnabled(Boolean): Builder
fun setNetworkInfoEnabled(Boolean): Builder
fun setLoggerName(String): Builder
fun setBundleWithTraceEnabled(Boolean): Builder
fun setBundleWithRumEnabled(Boolean): Builder
fun setSampleRate(Float): Builder
fun addAttribute(String, Boolean)
fun addAttribute(String, Int)
fun addAttribute(String, Long)
fun addAttribute(String, Float)
fun addAttribute(String, Double)
fun addAttribute(String, String?)
fun addAttribute(String, java.util.Date?)
fun addAttribute(String, com.google.gson.JsonObject?)
fun addAttribute(String, com.google.gson.JsonArray?)
fun removeAttribute(String)
fun addTag(String, String)
fun addTag(String)
fun removeTag(String)
fun removeTagsWithKey(String)
class com.datadog.android.plugin.DatadogContext
constructor(DatadogRumContext? = null)
interface com.datadog.android.plugin.DatadogPlugin : com.datadog.android.privacy.TrackingConsentProviderCallback
fun register(DatadogPluginConfig)
fun unregister()
fun onContextChanged(DatadogContext)
class com.datadog.android.plugin.DatadogPluginConfig
constructor(android.content.Context, String, String, String, com.datadog.android.privacy.TrackingConsent)
class com.datadog.android.plugin.DatadogRumContext
constructor(String? = null, String? = null, String? = null)
enum com.datadog.android.plugin.Feature
constructor(String)
- LOG
- CRASH
- TRACE
- RUM
enum com.datadog.android.privacy.TrackingConsent
- GRANTED
- NOT_GRANTED
- PENDING
interface com.datadog.android.privacy.TrackingConsentProviderCallback
fun onConsentUpdated(TrackingConsent, TrackingConsent)
object com.datadog.android.rum.GlobalRum
fun isRegistered(): Boolean
fun registerIfAbsent(RumMonitor): Boolean
fun registerIfAbsent(java.util.concurrent.Callable<RumMonitor>): Boolean
fun get(): RumMonitor
fun addAttribute(String, Any?)
fun removeAttribute(String)
enum com.datadog.android.rum.RumActionType
- TAP
- SCROLL
- SWIPE
- CLICK
- CUSTOM
object com.datadog.android.rum.RumAttributes
const val APPLICATION_VERSION: String
const val ENV: String
const val SERVICE_NAME: String
const val SOURCE: String
const val VARIANT: String
const val SDK_VERSION: String
const val INTERNAL_ERROR_TYPE: String
const val INTERNAL_TIMESTAMP: String
const val TRACE_ID: String
const val SPAN_ID: String
const val ERROR_RESOURCE_METHOD: String
const val ERROR_RESOURCE_STATUS_CODE: String
const val ERROR_RESOURCE_URL: String
const val ERROR_DATABASE_VERSION: String
const val ERROR_DATABASE_PATH: String
const val ACTION_TARGET_CLASS_NAME: String
const val ACTION_TARGET_TITLE: String
const val ACTION_TARGET_PARENT_INDEX: String
const val ACTION_TARGET_PARENT_CLASSNAME: String
const val ACTION_TARGET_PARENT_RESOURCE_ID: String
const val ACTION_TARGET_RESOURCE_ID: String
const val ACTION_GESTURE_DIRECTION: String
const val LONG_TASK_TARGET: String
const val NETWORK_CARRIER_ID: String
const val NETWORK_CARRIER_NAME: String
const val NETWORK_CONNECTIVITY: String
const val NETWORK_DOWN_KBPS: String
const val NETWORK_SIGNAL_STRENGTH: String
const val NETWORK_UP_KBPS: String
const val NETWORK_BYTES_READ: String
enum com.datadog.android.rum.RumErrorSource
- NETWORK
- SOURCE
- CONSOLE
- LOGGER
- AGENT
- WEBVIEW
class com.datadog.android.rum.RumInterceptor : com.datadog.android.DatadogInterceptor
constructor(List<String> = emptyList())
interface com.datadog.android.rum.RumMonitor
fun startView(Any, String, Map<String, Any?> = emptyMap())
fun stopView(Any, Map<String, Any?> = emptyMap())
fun addUserAction(RumActionType, String, Map<String, Any?>)
fun startUserAction(RumActionType, String, Map<String, Any?>)
fun stopUserAction(Map<String, Any?> = emptyMap())
fun stopUserAction(RumActionType, String, Map<String, Any?> = emptyMap())
fun startResource(String, String, String, Map<String, Any?> = emptyMap())
fun stopResource(String, Int?, Long?, RumResourceKind, Map<String, Any?>)
fun stopResourceWithError(String, Int?, String, RumErrorSource, Throwable)
fun addError(String, RumErrorSource, Throwable?, Map<String, Any?>)
fun addErrorWithStacktrace(String, RumErrorSource, String?, Map<String, Any?>)
fun addTiming(String)
class Builder
fun sampleRumSessions(Float): Builder
fun build(): RumMonitor
companion object
enum com.datadog.android.rum.RumResourceKind
constructor(String)
- BEACON
- FETCH
- XHR
- DOCUMENT
- UNKNOWN
- IMAGE
- JS
- FONT
- CSS
- MEDIA
- OTHER
companion object
class com.datadog.android.rum.model.ActionEvent
constructor(kotlin.Long, Application, kotlin.String? = null, Session, View, Usr? = null, Connectivity? = null, Dd, Action)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ActionEvent
class Application
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Application
class Session
constructor(kotlin.String, SessionType, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Session
class View
constructor(kotlin.String, kotlin.String? = null, kotlin.String, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): View
class Usr
constructor(kotlin.String? = null, kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Usr
class Connectivity
constructor(Status, kotlin.collections.List<Interface>, Cellular? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
class Dd
val formatVersion: kotlin.Long
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Dd
class Action
constructor(ActionType, kotlin.String? = null, kotlin.Long? = null, Target? = null, Error? = null, Crash? = null, LongTask? = null, Resource? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Action
class Cellular
constructor(kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
class Target
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Target
class Error
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Error
class Crash
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Crash
class LongTask
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): LongTask
class Resource
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Resource
enum SessionType
constructor(kotlin.String)
- USER
- SYNTHETICS
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): SessionType
enum Status
constructor(kotlin.String)
- CONNECTED
- NOT_CONNECTED
- MAYBE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Status
enum Interface
constructor(kotlin.String)
- BLUETOOTH
- CELLULAR
- ETHERNET
- WIFI
- WIMAX
- MIXED
- OTHER
- UNKNOWN
- NONE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Interface
enum ActionType
constructor(kotlin.String)
- CUSTOM
- CLICK
- TAP
- SCROLL
- SWIPE
- APPLICATION_START
- BACK
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ActionType
class com.datadog.android.rum.model.ErrorEvent
constructor(kotlin.Long, Application, kotlin.String? = null, Session, View, Usr? = null, Connectivity? = null, Dd, Error, Action? = null)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ErrorEvent
class Application
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Application
class Session
constructor(kotlin.String, SessionType, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Session
class View
constructor(kotlin.String, kotlin.String? = null, kotlin.String, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): View
class Usr
constructor(kotlin.String? = null, kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Usr
class Connectivity
constructor(Status, kotlin.collections.List<Interface>, Cellular? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
class Dd
val formatVersion: kotlin.Long
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Dd
class Error
constructor(kotlin.String, Source, kotlin.String? = null, kotlin.Boolean? = null, kotlin.String? = null, Resource? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Error
class Action
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Action
class Cellular
constructor(kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
class Resource
constructor(Method, kotlin.Long, kotlin.String, Provider? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Resource
class Provider
constructor(kotlin.String? = null, kotlin.String? = null, ProviderType? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Provider
enum SessionType
constructor(kotlin.String)
- USER
- SYNTHETICS
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): SessionType
enum Status
constructor(kotlin.String)
- CONNECTED
- NOT_CONNECTED
- MAYBE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Status
enum Interface
constructor(kotlin.String)
- BLUETOOTH
- CELLULAR
- ETHERNET
- WIFI
- WIMAX
- MIXED
- OTHER
- UNKNOWN
- NONE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Interface
enum Source
constructor(kotlin.String)
- NETWORK
- SOURCE
- CONSOLE
- LOGGER
- AGENT
- WEBVIEW
- CUSTOM
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Source
enum Method
constructor(kotlin.String)
- POST
- GET
- HEAD
- PUT
- DELETE
- PATCH
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Method
enum ProviderType
constructor(kotlin.String)
- AD
- ADVERTISING
- ANALYTICS
- CDN
- CONTENT
- CUSTOMER_SUCCESS
- FIRST_PARTY
- HOSTING
- MARKETING
- OTHER
- SOCIAL
- TAG_MANAGER
- UTILITY
- VIDEO
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ProviderType
class com.datadog.android.rum.model.LongTaskEvent
constructor(kotlin.Long, Application, kotlin.String? = null, Session, View, Usr? = null, Connectivity? = null, Dd, LongTask, Action? = null)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): LongTaskEvent
class Application
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Application
class Session
constructor(kotlin.String, Type, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Session
class View
constructor(kotlin.String, kotlin.String? = null, kotlin.String, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): View
class Usr
constructor(kotlin.String? = null, kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Usr
class Connectivity
constructor(Status, kotlin.collections.List<Interface>, Cellular? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
class Dd
val formatVersion: kotlin.Long
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Dd
class LongTask
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): LongTask
class Action
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Action
class Cellular
constructor(kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
enum Type
constructor(kotlin.String)
- USER
- SYNTHETICS
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Type
enum Status
constructor(kotlin.String)
- CONNECTED
- NOT_CONNECTED
- MAYBE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Status
enum Interface
constructor(kotlin.String)
- BLUETOOTH
- CELLULAR
- ETHERNET
- WIFI
- WIMAX
- MIXED
- OTHER
- UNKNOWN
- NONE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Interface
class com.datadog.android.rum.model.ResourceEvent
constructor(kotlin.Long, Application, kotlin.String? = null, Session, View, Usr? = null, Connectivity? = null, Dd? = null, Resource, Action? = null)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ResourceEvent
class Application
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Application
class Session
constructor(kotlin.String, SessionType, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Session
class View
constructor(kotlin.String, kotlin.String? = null, kotlin.String, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): View
class Usr
constructor(kotlin.String? = null, kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Usr
class Connectivity
constructor(Status, kotlin.collections.List<Interface>, Cellular? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
class Dd
constructor(kotlin.String? = null, kotlin.String? = null)
val formatVersion: kotlin.Long
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Dd
class Resource
constructor(kotlin.String? = null, ResourceType, Method? = null, kotlin.String, kotlin.Long? = null, kotlin.Long, kotlin.Long? = null, Redirect? = null, Dns? = null, Connect? = null, Ssl? = null, FirstByte? = null, Download? = null, Provider? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Resource
class Action
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Action
class Cellular
constructor(kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
class Redirect
constructor(kotlin.Long, kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Redirect
class Dns
constructor(kotlin.Long, kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Dns
class Connect
constructor(kotlin.Long, kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connect
class Ssl
constructor(kotlin.Long, kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Ssl
class FirstByte
constructor(kotlin.Long, kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): FirstByte
class Download
constructor(kotlin.Long, kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Download
class Provider
constructor(kotlin.String? = null, kotlin.String? = null, ProviderType? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Provider
enum SessionType
constructor(kotlin.String)
- USER
- SYNTHETICS
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): SessionType
enum Status
constructor(kotlin.String)
- CONNECTED
- NOT_CONNECTED
- MAYBE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Status
enum Interface
constructor(kotlin.String)
- BLUETOOTH
- CELLULAR
- ETHERNET
- WIFI
- WIMAX
- MIXED
- OTHER
- UNKNOWN
- NONE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Interface
enum ResourceType
constructor(kotlin.String)
- DOCUMENT
- XHR
- BEACON
- FETCH
- CSS
- JS
- IMAGE
- FONT
- MEDIA
- OTHER
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ResourceType
enum Method
constructor(kotlin.String)
- POST
- GET
- HEAD
- PUT
- DELETE
- PATCH
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Method
enum ProviderType
constructor(kotlin.String)
- AD
- ADVERTISING
- ANALYTICS
- CDN
- CONTENT
- CUSTOMER_SUCCESS
- FIRST_PARTY
- HOSTING
- MARKETING
- OTHER
- SOCIAL
- TAG_MANAGER
- UTILITY
- VIDEO
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ProviderType
class com.datadog.android.rum.model.ViewEvent
constructor(kotlin.Long, Application, kotlin.String? = null, Session, View, Usr? = null, Connectivity? = null, Dd)
val type: kotlin.String
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): ViewEvent
class Application
constructor(kotlin.String)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Application
class Session
constructor(kotlin.String, Type, kotlin.Boolean? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Session
class View
constructor(kotlin.String, kotlin.String? = null, kotlin.String, kotlin.String? = null, kotlin.Long? = null, LoadingType? = null, kotlin.Long, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Double? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, kotlin.Long? = null, CustomTimings? = null, kotlin.Boolean? = null, Action, Error, Crash? = null, LongTask? = null, Resource)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): View
class Usr
constructor(kotlin.String? = null, kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Usr
class Connectivity
constructor(Status, kotlin.collections.List<Interface>, Cellular? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Connectivity
class Dd
constructor(kotlin.Long)
val formatVersion: kotlin.Long
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Dd
class CustomTimings
constructor(kotlin.collections.Map<kotlin.String, kotlin.Long> = emptyMap())
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): CustomTimings
class Action
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Action
class Error
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Error
class Crash
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Crash
class LongTask
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): LongTask
class Resource
constructor(kotlin.Long)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Resource
class Cellular
constructor(kotlin.String? = null, kotlin.String? = null)
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Cellular
enum Type
constructor(kotlin.String)
- USER
- SYNTHETICS
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Type
enum LoadingType
constructor(kotlin.String)
- INITIAL_LOAD
- ROUTE_CHANGE
- ACTIVITY_DISPLAY
- ACTIVITY_REDISPLAY
- FRAGMENT_DISPLAY
- FRAGMENT_REDISPLAY
- VIEW_CONTROLLER_DISPLAY
- VIEW_CONTROLLER_REDISPLAY
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): LoadingType
enum Status
constructor(kotlin.String)
- CONNECTED
- NOT_CONNECTED
- MAYBE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Status
enum Interface
constructor(kotlin.String)
- BLUETOOTH
- CELLULAR
- ETHERNET
- WIFI
- WIMAX
- MIXED
- OTHER
- UNKNOWN
- NONE
fun toJson(): com.google.gson.JsonElement
companion object
fun fromJson(kotlin.String): Interface
class com.datadog.android.rum.resource.RumResourceInputStream : java.io.InputStream
constructor(java.io.InputStream, String)
override fun read(): Int
override fun read(ByteArray): Int
override fun read(ByteArray, Int, Int): Int
override fun available(): Int
override fun skip(Long): Long
override fun markSupported(): Boolean
override fun mark(Int)
override fun reset()
override fun close()
companion object
open class com.datadog.android.rum.tracking.AcceptAllActivities : ComponentPredicate<android.app.Activity>
override fun accept(android.app.Activity): Boolean
override fun getViewName(android.app.Activity): String?
open class com.datadog.android.rum.tracking.AcceptAllDefaultFragment : ComponentPredicate<android.app.Fragment>
override fun accept(android.app.Fragment): Boolean
override fun getViewName(android.app.Fragment): String?
open class com.datadog.android.rum.tracking.AcceptAllNavDestinations : ComponentPredicate<androidx.navigation.NavDestination>
override fun accept(androidx.navigation.NavDestination): Boolean
override fun getViewName(androidx.navigation.NavDestination): String?
open class com.datadog.android.rum.tracking.AcceptAllSupportFragments : ComponentPredicate<androidx.fragment.app.Fragment>
override fun accept(androidx.fragment.app.Fragment): Boolean
override fun getViewName(androidx.fragment.app.Fragment): String?
abstract class com.datadog.android.rum.tracking.ActivityLifecycleTrackingStrategy : android.app.Application.ActivityLifecycleCallbacks, TrackingStrategy
override fun register(android.content.Context)
override fun unregister(android.content.Context?)
override fun onActivityPaused(android.app.Activity)
override fun onActivityStarted(android.app.Activity)
override fun onActivityDestroyed(android.app.Activity)
override fun onActivitySaveInstanceState(android.app.Activity, android.os.Bundle)
override fun onActivityStopped(android.app.Activity)
override fun onActivityCreated(android.app.Activity, android.os.Bundle?)
override fun onActivityResumed(android.app.Activity)
protected fun convertToRumAttributes(android.os.Bundle?): Map<String, Any?>
companion object
class com.datadog.android.rum.tracking.ActivityViewTrackingStrategy : ActivityLifecycleTrackingStrategy, ViewTrackingStrategy
constructor(Boolean, ComponentPredicate<android.app.Activity> = AcceptAllActivities())
override fun onActivityCreated(android.app.Activity, android.os.Bundle?)
override fun onActivityStarted(android.app.Activity)
override fun onActivityResumed(android.app.Activity)
override fun onActivityPostResumed(android.app.Activity)
override fun onActivityPaused(android.app.Activity)
override fun onActivityDestroyed(android.app.Activity)
interface com.datadog.android.rum.tracking.ComponentPredicate<T>
fun accept(T): Boolean
fun getViewName(T): String?
class com.datadog.android.rum.tracking.FragmentViewTrackingStrategy : ActivityLifecycleTrackingStrategy, ViewTrackingStrategy
constructor(Boolean, ComponentPredicate<androidx.fragment.app.Fragment> = AcceptAllSupportFragments(), ComponentPredicate<android.app.Fragment> = AcceptAllDefaultFragment())
override fun onActivityStarted(android.app.Activity)
override fun onActivityStopped(android.app.Activity)
class com.datadog.android.rum.tracking.MixedViewTrackingStrategy : ActivityLifecycleTrackingStrategy, ViewTrackingStrategy
constructor(Boolean, ComponentPredicate<android.app.Activity> = AcceptAllActivities(), ComponentPredicate<androidx.fragment.app.Fragment> = AcceptAllSupportFragments(), ComponentPredicate<android.app.Fragment> = AcceptAllDefaultFragment())
override fun onActivityCreated(android.app.Activity, android.os.Bundle?)
override fun onActivityStarted(android.app.Activity)
override fun onActivityResumed(android.app.Activity)
override fun onActivityPaused(android.app.Activity)
override fun onActivityStopped(android.app.Activity)
override fun onActivityDestroyed(android.app.Activity)
class com.datadog.android.rum.tracking.NavigationViewTrackingStrategy : ActivityLifecycleTrackingStrategy, ViewTrackingStrategy, androidx.navigation.NavController.OnDestinationChangedListener
constructor(Int, Boolean, ComponentPredicate<androidx.navigation.NavDestination> = AcceptAllNavDestinations())
override fun onActivityStarted(android.app.Activity)
override fun onActivityStopped(android.app.Activity)
override fun onActivityPaused(android.app.Activity)
override fun onDestinationChanged(androidx.navigation.NavController, androidx.navigation.NavDestination, android.os.Bundle?)
companion object
interface com.datadog.android.rum.tracking.TrackingStrategy
fun register(android.content.Context)
fun unregister(android.content.Context?)
interface com.datadog.android.rum.tracking.ViewAttributesProvider
fun extractAttributes(android.view.View, MutableMap<String, Any?>)
interface com.datadog.android.rum.tracking.ViewTrackingStrategy : TrackingStrategy
open class com.datadog.android.rum.webview.RumWebChromeClient : android.webkit.WebChromeClient
constructor()
override fun onConsoleMessage(android.webkit.ConsoleMessage?): Boolean
companion object