forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
2554 lines (2328 loc) · 94.5 KB
/
models.go
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
package insights
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"encoding/json"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/date"
)
// The package's fully qualified name.
const fqdn = "github.com/Azure/azure-sdk-for-go/services/appinsights/v1/insights"
// EventType enumerates the values for event type.
type EventType string
const (
// All ...
All EventType = "$all"
// AvailabilityResults ...
AvailabilityResults EventType = "availabilityResults"
// BrowserTimings ...
BrowserTimings EventType = "browserTimings"
// CustomEvents ...
CustomEvents EventType = "customEvents"
// CustomMetrics ...
CustomMetrics EventType = "customMetrics"
// Dependencies ...
Dependencies EventType = "dependencies"
// Exceptions ...
Exceptions EventType = "exceptions"
// PageViews ...
PageViews EventType = "pageViews"
// PerformanceCounters ...
PerformanceCounters EventType = "performanceCounters"
// Requests ...
Requests EventType = "requests"
// Traces ...
Traces EventType = "traces"
)
// PossibleEventTypeValues returns an array of possible values for the EventType const type.
func PossibleEventTypeValues() []EventType {
return []EventType{All, AvailabilityResults, BrowserTimings, CustomEvents, CustomMetrics, Dependencies, Exceptions, PageViews, PerformanceCounters, Requests, Traces}
}
// MetricID enumerates the values for metric id.
type MetricID string
const (
// AvailabilityResultsavailabilityPercentage ...
AvailabilityResultsavailabilityPercentage MetricID = "availabilityResults/availabilityPercentage"
// AvailabilityResultsduration ...
AvailabilityResultsduration MetricID = "availabilityResults/duration"
// BillingtelemetryCount ...
BillingtelemetryCount MetricID = "billing/telemetryCount"
// ClientnetworkDuration ...
ClientnetworkDuration MetricID = "client/networkDuration"
// ClientprocessingDuration ...
ClientprocessingDuration MetricID = "client/processingDuration"
// ClientreceiveDuration ...
ClientreceiveDuration MetricID = "client/receiveDuration"
// ClientsendDuration ...
ClientsendDuration MetricID = "client/sendDuration"
// ClienttotalDuration ...
ClienttotalDuration MetricID = "client/totalDuration"
// CustomEventscount ...
CustomEventscount MetricID = "customEvents/count"
// Dependenciescount ...
Dependenciescount MetricID = "dependencies/count"
// Dependenciesduration ...
Dependenciesduration MetricID = "dependencies/duration"
// Dependenciesfailed ...
Dependenciesfailed MetricID = "dependencies/failed"
// Exceptionsbrowser ...
Exceptionsbrowser MetricID = "exceptions/browser"
// Exceptionscount ...
Exceptionscount MetricID = "exceptions/count"
// Exceptionsserver ...
Exceptionsserver MetricID = "exceptions/server"
// PageViewscount ...
PageViewscount MetricID = "pageViews/count"
// PageViewsduration ...
PageViewsduration MetricID = "pageViews/duration"
// PerformanceCountersexceptionsPerSecond ...
PerformanceCountersexceptionsPerSecond MetricID = "performanceCounters/exceptionsPerSecond"
// PerformanceCountersmemoryAvailableBytes ...
PerformanceCountersmemoryAvailableBytes MetricID = "performanceCounters/memoryAvailableBytes"
// PerformanceCountersprocessCPUPercentage ...
PerformanceCountersprocessCPUPercentage MetricID = "performanceCounters/processCpuPercentage"
// PerformanceCountersprocessIOBytesPerSecond ...
PerformanceCountersprocessIOBytesPerSecond MetricID = "performanceCounters/processIOBytesPerSecond"
// PerformanceCountersprocessorCPUPercentage ...
PerformanceCountersprocessorCPUPercentage MetricID = "performanceCounters/processorCpuPercentage"
// PerformanceCountersprocessPrivateBytes ...
PerformanceCountersprocessPrivateBytes MetricID = "performanceCounters/processPrivateBytes"
// PerformanceCountersrequestExecutionTime ...
PerformanceCountersrequestExecutionTime MetricID = "performanceCounters/requestExecutionTime"
// PerformanceCountersrequestsInQueue ...
PerformanceCountersrequestsInQueue MetricID = "performanceCounters/requestsInQueue"
// PerformanceCountersrequestsPerSecond ...
PerformanceCountersrequestsPerSecond MetricID = "performanceCounters/requestsPerSecond"
// Requestscount ...
Requestscount MetricID = "requests/count"
// Requestsduration ...
Requestsduration MetricID = "requests/duration"
// Requestsfailed ...
Requestsfailed MetricID = "requests/failed"
// Sessionscount ...
Sessionscount MetricID = "sessions/count"
// Usersauthenticated ...
Usersauthenticated MetricID = "users/authenticated"
// Userscount ...
Userscount MetricID = "users/count"
)
// PossibleMetricIDValues returns an array of possible values for the MetricID const type.
func PossibleMetricIDValues() []MetricID {
return []MetricID{AvailabilityResultsavailabilityPercentage, AvailabilityResultsduration, BillingtelemetryCount, ClientnetworkDuration, ClientprocessingDuration, ClientreceiveDuration, ClientsendDuration, ClienttotalDuration, CustomEventscount, Dependenciescount, Dependenciesduration, Dependenciesfailed, Exceptionsbrowser, Exceptionscount, Exceptionsserver, PageViewscount, PageViewsduration, PerformanceCountersexceptionsPerSecond, PerformanceCountersmemoryAvailableBytes, PerformanceCountersprocessCPUPercentage, PerformanceCountersprocessIOBytesPerSecond, PerformanceCountersprocessorCPUPercentage, PerformanceCountersprocessPrivateBytes, PerformanceCountersrequestExecutionTime, PerformanceCountersrequestsInQueue, PerformanceCountersrequestsPerSecond, Requestscount, Requestsduration, Requestsfailed, Sessionscount, Usersauthenticated, Userscount}
}
// MetricsAggregation enumerates the values for metrics aggregation.
type MetricsAggregation string
const (
// Avg ...
Avg MetricsAggregation = "avg"
// Count ...
Count MetricsAggregation = "count"
// Max ...
Max MetricsAggregation = "max"
// Min ...
Min MetricsAggregation = "min"
// Sum ...
Sum MetricsAggregation = "sum"
// Unique ...
Unique MetricsAggregation = "unique"
)
// PossibleMetricsAggregationValues returns an array of possible values for the MetricsAggregation const type.
func PossibleMetricsAggregationValues() []MetricsAggregation {
return []MetricsAggregation{Avg, Count, Max, Min, Sum, Unique}
}
// MetricsSegment enumerates the values for metrics segment.
type MetricsSegment string
const (
// ApplicationBuild ...
ApplicationBuild MetricsSegment = "applicationBuild"
// ApplicationVersion ...
ApplicationVersion MetricsSegment = "applicationVersion"
// AuthenticatedOrAnonymousTraffic ...
AuthenticatedOrAnonymousTraffic MetricsSegment = "authenticatedOrAnonymousTraffic"
// Browser ...
Browser MetricsSegment = "browser"
// BrowserVersion ...
BrowserVersion MetricsSegment = "browserVersion"
// City ...
City MetricsSegment = "city"
// CloudRoleName ...
CloudRoleName MetricsSegment = "cloudRoleName"
// CloudServiceName ...
CloudServiceName MetricsSegment = "cloudServiceName"
// Continent ...
Continent MetricsSegment = "continent"
// CountryOrRegion ...
CountryOrRegion MetricsSegment = "countryOrRegion"
// DeploymentID ...
DeploymentID MetricsSegment = "deploymentId"
// DeploymentUnit ...
DeploymentUnit MetricsSegment = "deploymentUnit"
// DeviceType ...
DeviceType MetricsSegment = "deviceType"
// Environment ...
Environment MetricsSegment = "environment"
// HostingLocation ...
HostingLocation MetricsSegment = "hostingLocation"
// InstanceName ...
InstanceName MetricsSegment = "instanceName"
)
// PossibleMetricsSegmentValues returns an array of possible values for the MetricsSegment const type.
func PossibleMetricsSegmentValues() []MetricsSegment {
return []MetricsSegment{ApplicationBuild, ApplicationVersion, AuthenticatedOrAnonymousTraffic, Browser, BrowserVersion, City, CloudRoleName, CloudServiceName, Continent, CountryOrRegion, DeploymentID, DeploymentUnit, DeviceType, Environment, HostingLocation, InstanceName}
}
// Type enumerates the values for type.
type Type string
const (
// TypeAvailabilityResult ...
TypeAvailabilityResult Type = "availabilityResult"
// TypeBrowserTiming ...
TypeBrowserTiming Type = "browserTiming"
// TypeCustomEvent ...
TypeCustomEvent Type = "customEvent"
// TypeCustomMetric ...
TypeCustomMetric Type = "customMetric"
// TypeDependency ...
TypeDependency Type = "dependency"
// TypeEventsResultData ...
TypeEventsResultData Type = "eventsResultData"
// TypeException ...
TypeException Type = "exception"
// TypePageView ...
TypePageView Type = "pageView"
// TypePerformanceCounter ...
TypePerformanceCounter Type = "performanceCounter"
// TypeRequest ...
TypeRequest Type = "request"
// TypeTrace ...
TypeTrace Type = "trace"
)
// PossibleTypeValues returns an array of possible values for the Type const type.
func PossibleTypeValues() []Type {
return []Type{TypeAvailabilityResult, TypeBrowserTiming, TypeCustomEvent, TypeCustomMetric, TypeDependency, TypeEventsResultData, TypeException, TypePageView, TypePerformanceCounter, TypeRequest, TypeTrace}
}
// Column a column in a table.
type Column struct {
// Name - The name of this column.
Name *string `json:"name,omitempty"`
// Type - The data type of this column.
Type *string `json:"type,omitempty"`
}
// ErrorDetail ...
type ErrorDetail struct {
// Code - The error's code.
Code *string `json:"code,omitempty"`
// Message - A human readable error message.
Message *string `json:"message,omitempty"`
// Target - Indicates which property in the request is responsible for the error.
Target *string `json:"target,omitempty"`
// Value - Indicates which value in 'target' is responsible for the error.
Value *string `json:"value,omitempty"`
// Resources - Indicates resources which were responsible for the error.
Resources *[]string `json:"resources,omitempty"`
AdditionalProperties interface{} `json:"additionalProperties,omitempty"`
}
// ErrorInfo ...
type ErrorInfo struct {
// Code - A machine readable error code.
Code *string `json:"code,omitempty"`
// Message - A human readable error message.
Message *string `json:"message,omitempty"`
// Details - error details.
Details *[]ErrorDetail `json:"details,omitempty"`
// Innererror - Inner error details if they exist.
Innererror *ErrorInfo `json:"innererror,omitempty"`
AdditionalProperties interface{} `json:"additionalProperties,omitempty"`
}
// ErrorResponse contains details when the response code indicates an error.
type ErrorResponse struct {
// Error - The error details.
Error *ErrorInfo `json:"error,omitempty"`
}
// EventsAiInfo AI related application info for an event result
type EventsAiInfo struct {
// IKey - iKey of the app
IKey *string `json:"iKey,omitempty"`
// AppName - Name of the application
AppName *string `json:"appName,omitempty"`
// AppID - ID of the application
AppID *string `json:"appId,omitempty"`
// SdkVersion - SDK version of the application
SdkVersion *string `json:"sdkVersion,omitempty"`
}
// EventsApplicationInfo application info for an event result
type EventsApplicationInfo struct {
// Version - Version of the application
Version *string `json:"version,omitempty"`
}
// EventsAvailabilityResultInfo the availability result info
type EventsAvailabilityResultInfo struct {
// Name - The name of the availability result
Name *string `json:"name,omitempty"`
// Success - Indicates if the availability result was successful
Success *string `json:"success,omitempty"`
// Duration - The duration of the availability result
Duration *int64 `json:"duration,omitempty"`
// PerformanceBucket - The performance bucket of the availability result
PerformanceBucket *string `json:"performanceBucket,omitempty"`
// Message - The message of the availability result
Message *string `json:"message,omitempty"`
// Location - The location of the availability result
Location *string `json:"location,omitempty"`
// ID - The ID of the availability result
ID *string `json:"id,omitempty"`
// Size - The size of the availability result
Size *string `json:"size,omitempty"`
}
// EventsAvailabilityResultResult an availability result result
type EventsAvailabilityResultResult struct {
AvailabilityResult *EventsAvailabilityResultInfo `json:"availabilityResult,omitempty"`
// ID - The unique ID for this event.
ID *string `json:"id,omitempty"`
// Count - Count of the event
Count *int64 `json:"count,omitempty"`
// Timestamp - Timestamp of the event
Timestamp *date.Time `json:"timestamp,omitempty"`
// CustomDimensions - Custom dimensions of the event
CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"`
// CustomMeasurements - Custom measurements of the event
CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"`
// Operation - Operation info of the event
Operation *EventsOperationInfo `json:"operation,omitempty"`
// Session - Session info of the event
Session *EventsSessionInfo `json:"session,omitempty"`
// User - User info of the event
User *EventsUserInfo `json:"user,omitempty"`
// Cloud - Cloud info of the event
Cloud *EventsCloudInfo `json:"cloud,omitempty"`
// Ai - AI info of the event
Ai *EventsAiInfo `json:"ai,omitempty"`
// Application - Application info of the event
Application *EventsApplicationInfo `json:"application,omitempty"`
// Client - Client info of the event
Client *EventsClientInfo `json:"client,omitempty"`
// Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric'
Type Type `json:"type,omitempty"`
}
// MarshalJSON is the custom marshaler for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) MarshalJSON() ([]byte, error) {
earr.Type = TypeAvailabilityResult
objectMap := make(map[string]interface{})
if earr.AvailabilityResult != nil {
objectMap["availabilityResult"] = earr.AvailabilityResult
}
if earr.ID != nil {
objectMap["id"] = earr.ID
}
if earr.Count != nil {
objectMap["count"] = earr.Count
}
if earr.Timestamp != nil {
objectMap["timestamp"] = earr.Timestamp
}
if earr.CustomDimensions != nil {
objectMap["customDimensions"] = earr.CustomDimensions
}
if earr.CustomMeasurements != nil {
objectMap["customMeasurements"] = earr.CustomMeasurements
}
if earr.Operation != nil {
objectMap["operation"] = earr.Operation
}
if earr.Session != nil {
objectMap["session"] = earr.Session
}
if earr.User != nil {
objectMap["user"] = earr.User
}
if earr.Cloud != nil {
objectMap["cloud"] = earr.Cloud
}
if earr.Ai != nil {
objectMap["ai"] = earr.Ai
}
if earr.Application != nil {
objectMap["application"] = earr.Application
}
if earr.Client != nil {
objectMap["client"] = earr.Client
}
if earr.Type != "" {
objectMap["type"] = earr.Type
}
return json.Marshal(objectMap)
}
// AsEventsTraceResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsTraceResult() (*EventsTraceResult, bool) {
return nil, false
}
// AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool) {
return nil, false
}
// AsEventsPageViewResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsPageViewResult() (*EventsPageViewResult, bool) {
return nil, false
}
// AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool) {
return nil, false
}
// AsEventsRequestResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsRequestResult() (*EventsRequestResult, bool) {
return nil, false
}
// AsEventsDependencyResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsDependencyResult() (*EventsDependencyResult, bool) {
return nil, false
}
// AsEventsExceptionResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsExceptionResult() (*EventsExceptionResult, bool) {
return nil, false
}
// AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool) {
return &earr, true
}
// AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool) {
return nil, false
}
// AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool) {
return nil, false
}
// AsEventsResultData is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsEventsResultData() (*EventsResultData, bool) {
return nil, false
}
// AsBasicEventsResultData is the BasicEventsResultData implementation for EventsAvailabilityResultResult.
func (earr EventsAvailabilityResultResult) AsBasicEventsResultData() (BasicEventsResultData, bool) {
return &earr, true
}
// EventsBrowserTimingInfo the browser timing information
type EventsBrowserTimingInfo struct {
// URLPath - The path of the URL
URLPath *string `json:"urlPath,omitempty"`
// URLHost - The host of the URL
URLHost *string `json:"urlHost,omitempty"`
// Name - The name of the page
Name *string `json:"name,omitempty"`
// URL - The url of the page
URL *string `json:"url,omitempty"`
// TotalDuration - The total duration of the load
TotalDuration *int64 `json:"totalDuration,omitempty"`
// PerformanceBucket - The performance bucket of the load
PerformanceBucket *string `json:"performanceBucket,omitempty"`
// NetworkDuration - The network duration of the load
NetworkDuration *int64 `json:"networkDuration,omitempty"`
// SendDuration - The send duration of the load
SendDuration *int64 `json:"sendDuration,omitempty"`
// ReceiveDuration - The receive duration of the load
ReceiveDuration *int64 `json:"receiveDuration,omitempty"`
// ProcessingDuration - The processing duration of the load
ProcessingDuration *int64 `json:"processingDuration,omitempty"`
}
// EventsBrowserTimingResult a browser timing result
type EventsBrowserTimingResult struct {
BrowserTiming *EventsBrowserTimingInfo `json:"browserTiming,omitempty"`
ClientPerformance *EventsClientPerformanceInfo `json:"clientPerformance,omitempty"`
// ID - The unique ID for this event.
ID *string `json:"id,omitempty"`
// Count - Count of the event
Count *int64 `json:"count,omitempty"`
// Timestamp - Timestamp of the event
Timestamp *date.Time `json:"timestamp,omitempty"`
// CustomDimensions - Custom dimensions of the event
CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"`
// CustomMeasurements - Custom measurements of the event
CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"`
// Operation - Operation info of the event
Operation *EventsOperationInfo `json:"operation,omitempty"`
// Session - Session info of the event
Session *EventsSessionInfo `json:"session,omitempty"`
// User - User info of the event
User *EventsUserInfo `json:"user,omitempty"`
// Cloud - Cloud info of the event
Cloud *EventsCloudInfo `json:"cloud,omitempty"`
// Ai - AI info of the event
Ai *EventsAiInfo `json:"ai,omitempty"`
// Application - Application info of the event
Application *EventsApplicationInfo `json:"application,omitempty"`
// Client - Client info of the event
Client *EventsClientInfo `json:"client,omitempty"`
// Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric'
Type Type `json:"type,omitempty"`
}
// MarshalJSON is the custom marshaler for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) MarshalJSON() ([]byte, error) {
ebtr.Type = TypeBrowserTiming
objectMap := make(map[string]interface{})
if ebtr.BrowserTiming != nil {
objectMap["browserTiming"] = ebtr.BrowserTiming
}
if ebtr.ClientPerformance != nil {
objectMap["clientPerformance"] = ebtr.ClientPerformance
}
if ebtr.ID != nil {
objectMap["id"] = ebtr.ID
}
if ebtr.Count != nil {
objectMap["count"] = ebtr.Count
}
if ebtr.Timestamp != nil {
objectMap["timestamp"] = ebtr.Timestamp
}
if ebtr.CustomDimensions != nil {
objectMap["customDimensions"] = ebtr.CustomDimensions
}
if ebtr.CustomMeasurements != nil {
objectMap["customMeasurements"] = ebtr.CustomMeasurements
}
if ebtr.Operation != nil {
objectMap["operation"] = ebtr.Operation
}
if ebtr.Session != nil {
objectMap["session"] = ebtr.Session
}
if ebtr.User != nil {
objectMap["user"] = ebtr.User
}
if ebtr.Cloud != nil {
objectMap["cloud"] = ebtr.Cloud
}
if ebtr.Ai != nil {
objectMap["ai"] = ebtr.Ai
}
if ebtr.Application != nil {
objectMap["application"] = ebtr.Application
}
if ebtr.Client != nil {
objectMap["client"] = ebtr.Client
}
if ebtr.Type != "" {
objectMap["type"] = ebtr.Type
}
return json.Marshal(objectMap)
}
// AsEventsTraceResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsTraceResult() (*EventsTraceResult, bool) {
return nil, false
}
// AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool) {
return nil, false
}
// AsEventsPageViewResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsPageViewResult() (*EventsPageViewResult, bool) {
return nil, false
}
// AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool) {
return &ebtr, true
}
// AsEventsRequestResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsRequestResult() (*EventsRequestResult, bool) {
return nil, false
}
// AsEventsDependencyResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsDependencyResult() (*EventsDependencyResult, bool) {
return nil, false
}
// AsEventsExceptionResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsExceptionResult() (*EventsExceptionResult, bool) {
return nil, false
}
// AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool) {
return nil, false
}
// AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool) {
return nil, false
}
// AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool) {
return nil, false
}
// AsEventsResultData is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsEventsResultData() (*EventsResultData, bool) {
return nil, false
}
// AsBasicEventsResultData is the BasicEventsResultData implementation for EventsBrowserTimingResult.
func (ebtr EventsBrowserTimingResult) AsBasicEventsResultData() (BasicEventsResultData, bool) {
return &ebtr, true
}
// EventsClientInfo client info for an event result
type EventsClientInfo struct {
// Model - Model of the client
Model *string `json:"model,omitempty"`
// Os - Operating system of the client
Os *string `json:"os,omitempty"`
// Type - Type of the client
Type *string `json:"type,omitempty"`
// Browser - Browser of the client
Browser *string `json:"browser,omitempty"`
// IP - IP address of the client
IP *string `json:"ip,omitempty"`
// City - City of the client
City *string `json:"city,omitempty"`
// StateOrProvince - State or province of the client
StateOrProvince *string `json:"stateOrProvince,omitempty"`
// CountryOrRegion - Country or region of the client
CountryOrRegion *string `json:"countryOrRegion,omitempty"`
}
// EventsClientPerformanceInfo client performance information
type EventsClientPerformanceInfo struct {
// Name - The name of the client performance
Name *string `json:"name,omitempty"`
}
// EventsCloudInfo cloud info for an event result
type EventsCloudInfo struct {
// RoleName - Role name of the cloud
RoleName *string `json:"roleName,omitempty"`
// RoleInstance - Role instance of the cloud
RoleInstance *string `json:"roleInstance,omitempty"`
}
// EventsCustomEventInfo the custom event information
type EventsCustomEventInfo struct {
// Name - The name of the custom event
Name *string `json:"name,omitempty"`
}
// EventsCustomEventResult a custom event result
type EventsCustomEventResult struct {
CustomEvent *EventsCustomEventInfo `json:"customEvent,omitempty"`
// ID - The unique ID for this event.
ID *string `json:"id,omitempty"`
// Count - Count of the event
Count *int64 `json:"count,omitempty"`
// Timestamp - Timestamp of the event
Timestamp *date.Time `json:"timestamp,omitempty"`
// CustomDimensions - Custom dimensions of the event
CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"`
// CustomMeasurements - Custom measurements of the event
CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"`
// Operation - Operation info of the event
Operation *EventsOperationInfo `json:"operation,omitempty"`
// Session - Session info of the event
Session *EventsSessionInfo `json:"session,omitempty"`
// User - User info of the event
User *EventsUserInfo `json:"user,omitempty"`
// Cloud - Cloud info of the event
Cloud *EventsCloudInfo `json:"cloud,omitempty"`
// Ai - AI info of the event
Ai *EventsAiInfo `json:"ai,omitempty"`
// Application - Application info of the event
Application *EventsApplicationInfo `json:"application,omitempty"`
// Client - Client info of the event
Client *EventsClientInfo `json:"client,omitempty"`
// Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric'
Type Type `json:"type,omitempty"`
}
// MarshalJSON is the custom marshaler for EventsCustomEventResult.
func (ecer EventsCustomEventResult) MarshalJSON() ([]byte, error) {
ecer.Type = TypeCustomEvent
objectMap := make(map[string]interface{})
if ecer.CustomEvent != nil {
objectMap["customEvent"] = ecer.CustomEvent
}
if ecer.ID != nil {
objectMap["id"] = ecer.ID
}
if ecer.Count != nil {
objectMap["count"] = ecer.Count
}
if ecer.Timestamp != nil {
objectMap["timestamp"] = ecer.Timestamp
}
if ecer.CustomDimensions != nil {
objectMap["customDimensions"] = ecer.CustomDimensions
}
if ecer.CustomMeasurements != nil {
objectMap["customMeasurements"] = ecer.CustomMeasurements
}
if ecer.Operation != nil {
objectMap["operation"] = ecer.Operation
}
if ecer.Session != nil {
objectMap["session"] = ecer.Session
}
if ecer.User != nil {
objectMap["user"] = ecer.User
}
if ecer.Cloud != nil {
objectMap["cloud"] = ecer.Cloud
}
if ecer.Ai != nil {
objectMap["ai"] = ecer.Ai
}
if ecer.Application != nil {
objectMap["application"] = ecer.Application
}
if ecer.Client != nil {
objectMap["client"] = ecer.Client
}
if ecer.Type != "" {
objectMap["type"] = ecer.Type
}
return json.Marshal(objectMap)
}
// AsEventsTraceResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsTraceResult() (*EventsTraceResult, bool) {
return nil, false
}
// AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool) {
return &ecer, true
}
// AsEventsPageViewResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsPageViewResult() (*EventsPageViewResult, bool) {
return nil, false
}
// AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool) {
return nil, false
}
// AsEventsRequestResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsRequestResult() (*EventsRequestResult, bool) {
return nil, false
}
// AsEventsDependencyResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsDependencyResult() (*EventsDependencyResult, bool) {
return nil, false
}
// AsEventsExceptionResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsExceptionResult() (*EventsExceptionResult, bool) {
return nil, false
}
// AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool) {
return nil, false
}
// AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool) {
return nil, false
}
// AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool) {
return nil, false
}
// AsEventsResultData is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsEventsResultData() (*EventsResultData, bool) {
return nil, false
}
// AsBasicEventsResultData is the BasicEventsResultData implementation for EventsCustomEventResult.
func (ecer EventsCustomEventResult) AsBasicEventsResultData() (BasicEventsResultData, bool) {
return &ecer, true
}
// EventsCustomMetricInfo the custom metric info
type EventsCustomMetricInfo struct {
// Name - The name of the custom metric
Name *string `json:"name,omitempty"`
// Value - The value of the custom metric
Value *float64 `json:"value,omitempty"`
// ValueSum - The sum of the custom metric
ValueSum *float64 `json:"valueSum,omitempty"`
// ValueCount - The count of the custom metric
ValueCount *int32 `json:"valueCount,omitempty"`
// ValueMin - The minimum value of the custom metric
ValueMin *float64 `json:"valueMin,omitempty"`
// ValueMax - The maximum value of the custom metric
ValueMax *float64 `json:"valueMax,omitempty"`
// ValueStdDev - The standard deviation of the custom metric
ValueStdDev *float64 `json:"valueStdDev,omitempty"`
}
// EventsCustomMetricResult a custom metric result
type EventsCustomMetricResult struct {
CustomMetric *EventsCustomMetricInfo `json:"customMetric,omitempty"`
// ID - The unique ID for this event.
ID *string `json:"id,omitempty"`
// Count - Count of the event
Count *int64 `json:"count,omitempty"`
// Timestamp - Timestamp of the event
Timestamp *date.Time `json:"timestamp,omitempty"`
// CustomDimensions - Custom dimensions of the event
CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"`
// CustomMeasurements - Custom measurements of the event
CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"`
// Operation - Operation info of the event
Operation *EventsOperationInfo `json:"operation,omitempty"`
// Session - Session info of the event
Session *EventsSessionInfo `json:"session,omitempty"`
// User - User info of the event
User *EventsUserInfo `json:"user,omitempty"`
// Cloud - Cloud info of the event
Cloud *EventsCloudInfo `json:"cloud,omitempty"`
// Ai - AI info of the event
Ai *EventsAiInfo `json:"ai,omitempty"`
// Application - Application info of the event
Application *EventsApplicationInfo `json:"application,omitempty"`
// Client - Client info of the event
Client *EventsClientInfo `json:"client,omitempty"`
// Type - Possible values include: 'TypeEventsResultData', 'TypeTrace', 'TypeCustomEvent', 'TypePageView', 'TypeBrowserTiming', 'TypeRequest', 'TypeDependency', 'TypeException', 'TypeAvailabilityResult', 'TypePerformanceCounter', 'TypeCustomMetric'
Type Type `json:"type,omitempty"`
}
// MarshalJSON is the custom marshaler for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) MarshalJSON() ([]byte, error) {
ecmr.Type = TypeCustomMetric
objectMap := make(map[string]interface{})
if ecmr.CustomMetric != nil {
objectMap["customMetric"] = ecmr.CustomMetric
}
if ecmr.ID != nil {
objectMap["id"] = ecmr.ID
}
if ecmr.Count != nil {
objectMap["count"] = ecmr.Count
}
if ecmr.Timestamp != nil {
objectMap["timestamp"] = ecmr.Timestamp
}
if ecmr.CustomDimensions != nil {
objectMap["customDimensions"] = ecmr.CustomDimensions
}
if ecmr.CustomMeasurements != nil {
objectMap["customMeasurements"] = ecmr.CustomMeasurements
}
if ecmr.Operation != nil {
objectMap["operation"] = ecmr.Operation
}
if ecmr.Session != nil {
objectMap["session"] = ecmr.Session
}
if ecmr.User != nil {
objectMap["user"] = ecmr.User
}
if ecmr.Cloud != nil {
objectMap["cloud"] = ecmr.Cloud
}
if ecmr.Ai != nil {
objectMap["ai"] = ecmr.Ai
}
if ecmr.Application != nil {
objectMap["application"] = ecmr.Application
}
if ecmr.Client != nil {
objectMap["client"] = ecmr.Client
}
if ecmr.Type != "" {
objectMap["type"] = ecmr.Type
}
return json.Marshal(objectMap)
}
// AsEventsTraceResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsTraceResult() (*EventsTraceResult, bool) {
return nil, false
}
// AsEventsCustomEventResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsCustomEventResult() (*EventsCustomEventResult, bool) {
return nil, false
}
// AsEventsPageViewResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsPageViewResult() (*EventsPageViewResult, bool) {
return nil, false
}
// AsEventsBrowserTimingResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsBrowserTimingResult() (*EventsBrowserTimingResult, bool) {
return nil, false
}
// AsEventsRequestResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsRequestResult() (*EventsRequestResult, bool) {
return nil, false
}
// AsEventsDependencyResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsDependencyResult() (*EventsDependencyResult, bool) {
return nil, false
}
// AsEventsExceptionResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsExceptionResult() (*EventsExceptionResult, bool) {
return nil, false
}
// AsEventsAvailabilityResultResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsAvailabilityResultResult() (*EventsAvailabilityResultResult, bool) {
return nil, false
}
// AsEventsPerformanceCounterResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsPerformanceCounterResult() (*EventsPerformanceCounterResult, bool) {
return nil, false
}
// AsEventsCustomMetricResult is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsCustomMetricResult() (*EventsCustomMetricResult, bool) {
return &ecmr, true
}
// AsEventsResultData is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsEventsResultData() (*EventsResultData, bool) {
return nil, false
}
// AsBasicEventsResultData is the BasicEventsResultData implementation for EventsCustomMetricResult.
func (ecmr EventsCustomMetricResult) AsBasicEventsResultData() (BasicEventsResultData, bool) {
return &ecmr, true
}
// EventsDependencyInfo the dependency info
type EventsDependencyInfo struct {
// Target - The target of the dependency
Target *string `json:"target,omitempty"`
// Data - The data of the dependency
Data *string `json:"data,omitempty"`
// Success - Indicates if the dependency was successful
Success *string `json:"success,omitempty"`
// Duration - The duration of the dependency
Duration *int64 `json:"duration,omitempty"`
// PerformanceBucket - The performance bucket of the dependency
PerformanceBucket *string `json:"performanceBucket,omitempty"`
// ResultCode - The result code of the dependency
ResultCode *string `json:"resultCode,omitempty"`
// Type - The type of the dependency
Type *string `json:"type,omitempty"`
// Name - The name of the dependency
Name *string `json:"name,omitempty"`
// ID - The ID of the dependency
ID *string `json:"id,omitempty"`
}
// EventsDependencyResult a dependency result
type EventsDependencyResult struct {
Dependency *EventsDependencyInfo `json:"dependency,omitempty"`
// ID - The unique ID for this event.
ID *string `json:"id,omitempty"`
// Count - Count of the event
Count *int64 `json:"count,omitempty"`
// Timestamp - Timestamp of the event
Timestamp *date.Time `json:"timestamp,omitempty"`
// CustomDimensions - Custom dimensions of the event
CustomDimensions *EventsResultDataCustomDimensions `json:"customDimensions,omitempty"`
// CustomMeasurements - Custom measurements of the event
CustomMeasurements *EventsResultDataCustomMeasurements `json:"customMeasurements,omitempty"`
// Operation - Operation info of the event
Operation *EventsOperationInfo `json:"operation,omitempty"`
// Session - Session info of the event
Session *EventsSessionInfo `json:"session,omitempty"`