@capacitor-firebase/performance 6.1.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs.json CHANGED
@@ -113,6 +113,170 @@
113
113
  "IsEnabledResult"
114
114
  ],
115
115
  "slug": "isenabled"
116
+ },
117
+ {
118
+ "name": "putAttribute",
119
+ "signature": "(options: PutAttributeOptions) => Promise<void>",
120
+ "parameters": [
121
+ {
122
+ "name": "options",
123
+ "docs": "",
124
+ "type": "PutAttributeOptions"
125
+ }
126
+ ],
127
+ "returns": "Promise<void>",
128
+ "tags": [
129
+ {
130
+ "name": "since",
131
+ "text": "6.3.0"
132
+ }
133
+ ],
134
+ "docs": "Sets a custom attribute of a trace to a given value.",
135
+ "complexTypes": [
136
+ "PutAttributeOptions"
137
+ ],
138
+ "slug": "putattribute"
139
+ },
140
+ {
141
+ "name": "getAttribute",
142
+ "signature": "(options: GetAttributeOptions) => Promise<GetAttributeResult>",
143
+ "parameters": [
144
+ {
145
+ "name": "options",
146
+ "docs": "",
147
+ "type": "GetAttributeOptions"
148
+ }
149
+ ],
150
+ "returns": "Promise<GetAttributeResult>",
151
+ "tags": [
152
+ {
153
+ "name": "since",
154
+ "text": "6.3.0"
155
+ }
156
+ ],
157
+ "docs": "Returns the value of a custom attribute of a trace.",
158
+ "complexTypes": [
159
+ "GetAttributeResult",
160
+ "GetAttributeOptions"
161
+ ],
162
+ "slug": "getattribute"
163
+ },
164
+ {
165
+ "name": "getAttributes",
166
+ "signature": "(options: GetAttributesOptions) => Promise<GetAttributesResult>",
167
+ "parameters": [
168
+ {
169
+ "name": "options",
170
+ "docs": "",
171
+ "type": "GetAttributesOptions"
172
+ }
173
+ ],
174
+ "returns": "Promise<GetAttributesResult>",
175
+ "tags": [
176
+ {
177
+ "name": "since",
178
+ "text": "6.3.0"
179
+ }
180
+ ],
181
+ "docs": "Gets the all the custom attributes of a trace with their values.",
182
+ "complexTypes": [
183
+ "GetAttributesResult",
184
+ "GetAttributesOptions"
185
+ ],
186
+ "slug": "getattributes"
187
+ },
188
+ {
189
+ "name": "removeAttribute",
190
+ "signature": "(options: RemoveAttributeOptions) => Promise<void>",
191
+ "parameters": [
192
+ {
193
+ "name": "options",
194
+ "docs": "",
195
+ "type": "GetAttributeOptions"
196
+ }
197
+ ],
198
+ "returns": "Promise<void>",
199
+ "tags": [
200
+ {
201
+ "name": "since",
202
+ "text": "6.3.0"
203
+ }
204
+ ],
205
+ "docs": "Removes a custom attribute from a trace given its name.",
206
+ "complexTypes": [
207
+ "RemoveAttributeOptions"
208
+ ],
209
+ "slug": "removeattribute"
210
+ },
211
+ {
212
+ "name": "putMetric",
213
+ "signature": "(options: PutMetricOptions) => Promise<void>",
214
+ "parameters": [
215
+ {
216
+ "name": "options",
217
+ "docs": "",
218
+ "type": "PutMetricOptions"
219
+ }
220
+ ],
221
+ "returns": "Promise<void>",
222
+ "tags": [
223
+ {
224
+ "name": "since",
225
+ "text": "6.3.0"
226
+ }
227
+ ],
228
+ "docs": "Sets the value of a custom metric.",
229
+ "complexTypes": [
230
+ "PutMetricOptions"
231
+ ],
232
+ "slug": "putmetric"
233
+ },
234
+ {
235
+ "name": "getMetric",
236
+ "signature": "(options: GetMetricOptions) => Promise<GetMetricResult>",
237
+ "parameters": [
238
+ {
239
+ "name": "options",
240
+ "docs": "",
241
+ "type": "GetMetricOptions"
242
+ }
243
+ ],
244
+ "returns": "Promise<GetMetricResult>",
245
+ "tags": [
246
+ {
247
+ "name": "since",
248
+ "text": "6.3.0"
249
+ }
250
+ ],
251
+ "docs": "Get the value of a custom metric by name.",
252
+ "complexTypes": [
253
+ "GetMetricResult",
254
+ "GetMetricOptions"
255
+ ],
256
+ "slug": "getmetric"
257
+ },
258
+ {
259
+ "name": "record",
260
+ "signature": "(options: RecordOptions) => Promise<void>",
261
+ "parameters": [
262
+ {
263
+ "name": "options",
264
+ "docs": "",
265
+ "type": "RecordOptions"
266
+ }
267
+ ],
268
+ "returns": "Promise<void>",
269
+ "tags": [
270
+ {
271
+ "name": "since",
272
+ "text": "6.3.0"
273
+ }
274
+ ],
275
+ "docs": "Records a trace given its name and options.\n\nOnly available on web.",
276
+ "complexTypes": [
277
+ "RecordOptions"
278
+ ],
279
+ "slug": "record"
116
280
  }
117
281
  ],
118
282
  "properties": []
@@ -270,9 +434,373 @@
270
434
  "type": "boolean"
271
435
  }
272
436
  ]
437
+ },
438
+ {
439
+ "name": "PutAttributeOptions",
440
+ "slug": "putattributeoptions",
441
+ "docs": "",
442
+ "tags": [
443
+ {
444
+ "text": "6.3.0",
445
+ "name": "since"
446
+ }
447
+ ],
448
+ "methods": [],
449
+ "properties": [
450
+ {
451
+ "name": "traceName",
452
+ "tags": [
453
+ {
454
+ "text": "6.3.0",
455
+ "name": "since"
456
+ }
457
+ ],
458
+ "docs": "Name of the trace to set its attribute.",
459
+ "complexTypes": [],
460
+ "type": "string"
461
+ },
462
+ {
463
+ "name": "attribute",
464
+ "tags": [
465
+ {
466
+ "text": "6.3.0",
467
+ "name": "since"
468
+ },
469
+ {
470
+ "text": "\"experiment\"",
471
+ "name": "example"
472
+ }
473
+ ],
474
+ "docs": "Name of the attribute to set its value.",
475
+ "complexTypes": [],
476
+ "type": "string"
477
+ },
478
+ {
479
+ "name": "value",
480
+ "tags": [
481
+ {
482
+ "text": "6.3.0",
483
+ "name": "since"
484
+ },
485
+ {
486
+ "text": "\"A\"",
487
+ "name": "example"
488
+ }
489
+ ],
490
+ "docs": "The value to set to the attribute.",
491
+ "complexTypes": [],
492
+ "type": "string"
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "name": "GetAttributeResult",
498
+ "slug": "getattributeresult",
499
+ "docs": "",
500
+ "tags": [
501
+ {
502
+ "text": "6.3.0",
503
+ "name": "since"
504
+ }
505
+ ],
506
+ "methods": [],
507
+ "properties": [
508
+ {
509
+ "name": "value",
510
+ "tags": [
511
+ {
512
+ "text": "6.3.0",
513
+ "name": "since"
514
+ }
515
+ ],
516
+ "docs": "The value of the custom attribute.",
517
+ "complexTypes": [],
518
+ "type": "string | null"
519
+ }
520
+ ]
521
+ },
522
+ {
523
+ "name": "GetAttributeOptions",
524
+ "slug": "getattributeoptions",
525
+ "docs": "",
526
+ "tags": [
527
+ {
528
+ "text": "6.3.0",
529
+ "name": "since"
530
+ }
531
+ ],
532
+ "methods": [],
533
+ "properties": [
534
+ {
535
+ "name": "traceName",
536
+ "tags": [
537
+ {
538
+ "text": "6.3.0",
539
+ "name": "since"
540
+ }
541
+ ],
542
+ "docs": "Name of the trace to set its attribute.",
543
+ "complexTypes": [],
544
+ "type": "string"
545
+ },
546
+ {
547
+ "name": "attribute",
548
+ "tags": [
549
+ {
550
+ "text": "6.3.0",
551
+ "name": "since"
552
+ }
553
+ ],
554
+ "docs": "Name of the attribute to retrieve its value.",
555
+ "complexTypes": [],
556
+ "type": "string"
557
+ }
558
+ ]
559
+ },
560
+ {
561
+ "name": "GetAttributesResult",
562
+ "slug": "getattributesresult",
563
+ "docs": "",
564
+ "tags": [
565
+ {
566
+ "text": "6.3.0",
567
+ "name": "since"
568
+ }
569
+ ],
570
+ "methods": [],
571
+ "properties": [
572
+ {
573
+ "name": "attributes",
574
+ "tags": [
575
+ {
576
+ "text": "6.3.0",
577
+ "name": "since"
578
+ }
579
+ ],
580
+ "docs": "A map of all custom attributes of a trace with their values.",
581
+ "complexTypes": [],
582
+ "type": "{ [key: string]: string; }"
583
+ }
584
+ ]
585
+ },
586
+ {
587
+ "name": "GetAttributesOptions",
588
+ "slug": "getattributesoptions",
589
+ "docs": "",
590
+ "tags": [
591
+ {
592
+ "text": "6.3.0",
593
+ "name": "since"
594
+ }
595
+ ],
596
+ "methods": [],
597
+ "properties": [
598
+ {
599
+ "name": "traceName",
600
+ "tags": [
601
+ {
602
+ "text": "6.3.0",
603
+ "name": "since"
604
+ }
605
+ ],
606
+ "docs": "Name of the trace to get its attributes.",
607
+ "complexTypes": [],
608
+ "type": "string"
609
+ }
610
+ ]
611
+ },
612
+ {
613
+ "name": "PutMetricOptions",
614
+ "slug": "putmetricoptions",
615
+ "docs": "",
616
+ "tags": [
617
+ {
618
+ "text": "6.3.0",
619
+ "name": "since"
620
+ }
621
+ ],
622
+ "methods": [],
623
+ "properties": [
624
+ {
625
+ "name": "traceName",
626
+ "tags": [
627
+ {
628
+ "text": "6.3.0",
629
+ "name": "since"
630
+ }
631
+ ],
632
+ "docs": "Name of the trace to set its metric.",
633
+ "complexTypes": [],
634
+ "type": "string"
635
+ },
636
+ {
637
+ "name": "metricName",
638
+ "tags": [
639
+ {
640
+ "text": "6.3.0",
641
+ "name": "since"
642
+ }
643
+ ],
644
+ "docs": "The metric name.",
645
+ "complexTypes": [],
646
+ "type": "string"
647
+ },
648
+ {
649
+ "name": "num",
650
+ "tags": [
651
+ {
652
+ "text": "6.3.0",
653
+ "name": "since"
654
+ }
655
+ ],
656
+ "docs": "The value to set for the metric.\nThe given value is floored down to the nearest integer.",
657
+ "complexTypes": [],
658
+ "type": "number"
659
+ }
660
+ ]
661
+ },
662
+ {
663
+ "name": "GetMetricResult",
664
+ "slug": "getmetricresult",
665
+ "docs": "",
666
+ "tags": [
667
+ {
668
+ "text": "6.3.0",
669
+ "name": "since"
670
+ }
671
+ ],
672
+ "methods": [],
673
+ "properties": [
674
+ {
675
+ "name": "value",
676
+ "tags": [
677
+ {
678
+ "text": "6.3.0",
679
+ "name": "since"
680
+ }
681
+ ],
682
+ "docs": "The value of the metric if exists.",
683
+ "complexTypes": [],
684
+ "type": "number"
685
+ }
686
+ ]
687
+ },
688
+ {
689
+ "name": "GetMetricOptions",
690
+ "slug": "getmetricoptions",
691
+ "docs": "",
692
+ "tags": [
693
+ {
694
+ "text": "6.3.0",
695
+ "name": "since"
696
+ }
697
+ ],
698
+ "methods": [],
699
+ "properties": [
700
+ {
701
+ "name": "traceName",
702
+ "tags": [
703
+ {
704
+ "text": "6.3.0",
705
+ "name": "since"
706
+ }
707
+ ],
708
+ "docs": "Name of the trace to get its metric.",
709
+ "complexTypes": [],
710
+ "type": "string"
711
+ },
712
+ {
713
+ "name": "metricName",
714
+ "tags": [
715
+ {
716
+ "text": "6.3.0",
717
+ "name": "since"
718
+ }
719
+ ],
720
+ "docs": "The metric name.",
721
+ "complexTypes": [],
722
+ "type": "string"
723
+ }
724
+ ]
725
+ },
726
+ {
727
+ "name": "RecordOptions",
728
+ "slug": "recordoptions",
729
+ "docs": "",
730
+ "tags": [
731
+ {
732
+ "text": "6.3.0",
733
+ "name": "since"
734
+ }
735
+ ],
736
+ "methods": [],
737
+ "properties": [
738
+ {
739
+ "name": "traceName",
740
+ "tags": [
741
+ {
742
+ "text": "6.3.0",
743
+ "name": "since"
744
+ }
745
+ ],
746
+ "docs": "Name of the trace to record.",
747
+ "complexTypes": [],
748
+ "type": "string"
749
+ },
750
+ {
751
+ "name": "startTime",
752
+ "tags": [
753
+ {
754
+ "text": "6.3.0",
755
+ "name": "since"
756
+ }
757
+ ],
758
+ "docs": "Start time of the trace since epoch in milliseconds.",
759
+ "complexTypes": [],
760
+ "type": "number"
761
+ },
762
+ {
763
+ "name": "duration",
764
+ "tags": [
765
+ {
766
+ "text": "6.3.0",
767
+ "name": "since"
768
+ }
769
+ ],
770
+ "docs": "The duration of the trace in milliseconds.",
771
+ "complexTypes": [],
772
+ "type": "number"
773
+ },
774
+ {
775
+ "name": "options",
776
+ "tags": [
777
+ {
778
+ "text": "6.3.0",
779
+ "name": "since"
780
+ }
781
+ ],
782
+ "docs": "An optional object that holds optional maps of custom metrics and attributes.",
783
+ "complexTypes": [],
784
+ "type": "{ metrics?: { [key: string]: number; } | undefined; attributes?: { [key: string]: string; } | undefined; } | undefined"
785
+ }
786
+ ]
273
787
  }
274
788
  ],
275
789
  "enums": [],
276
- "typeAliases": [],
790
+ "typeAliases": [
791
+ {
792
+ "name": "RemoveAttributeOptions",
793
+ "slug": "removeattributeoptions",
794
+ "docs": "",
795
+ "types": [
796
+ {
797
+ "text": "GetAttributeOptions",
798
+ "complexTypes": [
799
+ "GetAttributeOptions"
800
+ ]
801
+ }
802
+ ]
803
+ }
804
+ ],
277
805
  "pluginConfigs": []
278
806
  }