-
Notifications
You must be signed in to change notification settings - Fork 800
/
zz_generated_models.go
2719 lines (2195 loc) · 104 KB
/
zz_generated_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
//go:build go1.16
// +build go1.16
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armapplicationinsights
import (
"encoding/json"
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
"reflect"
"time"
)
// APIKeyRequest - An Application Insights component API Key creation request definition.
type APIKeyRequest struct {
// The read access rights of this API Key.
LinkedReadProperties []*string `json:"linkedReadProperties,omitempty"`
// The write access rights of this API Key.
LinkedWriteProperties []*string `json:"linkedWriteProperties,omitempty"`
// The name of the API Key.
Name *string `json:"name,omitempty"`
}
// MarshalJSON implements the json.Marshaller interface for type APIKeyRequest.
func (a APIKeyRequest) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "linkedReadProperties", a.LinkedReadProperties)
populate(objectMap, "linkedWriteProperties", a.LinkedWriteProperties)
populate(objectMap, "name", a.Name)
return json.Marshal(objectMap)
}
// APIKeysClientCreateOptions contains the optional parameters for the APIKeysClient.Create method.
type APIKeysClientCreateOptions struct {
// placeholder for future optional parameters
}
// APIKeysClientDeleteOptions contains the optional parameters for the APIKeysClient.Delete method.
type APIKeysClientDeleteOptions struct {
// placeholder for future optional parameters
}
// APIKeysClientGetOptions contains the optional parameters for the APIKeysClient.Get method.
type APIKeysClientGetOptions struct {
// placeholder for future optional parameters
}
// APIKeysClientListOptions contains the optional parameters for the APIKeysClient.List method.
type APIKeysClientListOptions struct {
// placeholder for future optional parameters
}
// AnalyticsItemsClientDeleteOptions contains the optional parameters for the AnalyticsItemsClient.Delete method.
type AnalyticsItemsClientDeleteOptions struct {
// The Id of a specific item defined in the Application Insights component
ID *string
// The name of a specific item defined in the Application Insights component
Name *string
}
// AnalyticsItemsClientGetOptions contains the optional parameters for the AnalyticsItemsClient.Get method.
type AnalyticsItemsClientGetOptions struct {
// The Id of a specific item defined in the Application Insights component
ID *string
// The name of a specific item defined in the Application Insights component
Name *string
}
// AnalyticsItemsClientListOptions contains the optional parameters for the AnalyticsItemsClient.List method.
type AnalyticsItemsClientListOptions struct {
// Flag indicating whether or not to return the content of each applicable item. If false, only return the item information.
IncludeContent *bool
// Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application
// Insights component.
Scope *ItemScope
// Enum indicating the type of the Analytics item.
Type *ItemTypeParameter
}
// AnalyticsItemsClientPutOptions contains the optional parameters for the AnalyticsItemsClient.Put method.
type AnalyticsItemsClientPutOptions struct {
// Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.
OverrideItem *bool
}
// Annotation associated with an application insights resource.
type Annotation struct {
// Name of annotation
AnnotationName *string `json:"AnnotationName,omitempty"`
// Category of annotation, free form
Category *string `json:"Category,omitempty"`
// Time when event occurred
EventTime *time.Time `json:"EventTime,omitempty"`
// Unique Id for annotation
ID *string `json:"Id,omitempty"`
// Serialized JSON object for detailed properties
Properties *string `json:"Properties,omitempty"`
// Related parent annotation if any
RelatedAnnotation *string `json:"RelatedAnnotation,omitempty"`
}
// MarshalJSON implements the json.Marshaller interface for type Annotation.
func (a Annotation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "AnnotationName", a.AnnotationName)
populate(objectMap, "Category", a.Category)
populateTimeRFC3339(objectMap, "EventTime", a.EventTime)
populate(objectMap, "Id", a.ID)
populate(objectMap, "Properties", a.Properties)
populate(objectMap, "RelatedAnnotation", a.RelatedAnnotation)
return json.Marshal(objectMap)
}
// UnmarshalJSON implements the json.Unmarshaller interface for type Annotation.
func (a *Annotation) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "AnnotationName":
err = unpopulate(val, &a.AnnotationName)
delete(rawMsg, key)
case "Category":
err = unpopulate(val, &a.Category)
delete(rawMsg, key)
case "EventTime":
err = unpopulateTimeRFC3339(val, &a.EventTime)
delete(rawMsg, key)
case "Id":
err = unpopulate(val, &a.ID)
delete(rawMsg, key)
case "Properties":
err = unpopulate(val, &a.Properties)
delete(rawMsg, key)
case "RelatedAnnotation":
err = unpopulate(val, &a.RelatedAnnotation)
delete(rawMsg, key)
}
if err != nil {
return err
}
}
return nil
}
// AnnotationError - Error associated with trying to create annotation with Id that already exist
type AnnotationError struct {
// Error detail code and explanation
Code *string `json:"code,omitempty"`
// Inner error
Innererror *InnerError `json:"innererror,omitempty"`
// Error message
Message *string `json:"message,omitempty"`
}
// AnnotationsClientCreateOptions contains the optional parameters for the AnnotationsClient.Create method.
type AnnotationsClientCreateOptions struct {
// placeholder for future optional parameters
}
// AnnotationsClientDeleteOptions contains the optional parameters for the AnnotationsClient.Delete method.
type AnnotationsClientDeleteOptions struct {
// placeholder for future optional parameters
}
// AnnotationsClientGetOptions contains the optional parameters for the AnnotationsClient.Get method.
type AnnotationsClientGetOptions struct {
// placeholder for future optional parameters
}
// AnnotationsClientListOptions contains the optional parameters for the AnnotationsClient.List method.
type AnnotationsClientListOptions struct {
// placeholder for future optional parameters
}
// AnnotationsListResult - Annotations list result.
type AnnotationsListResult struct {
// READ-ONLY; An array of annotations.
Value []*Annotation `json:"value,omitempty" azure:"ro"`
}
// MarshalJSON implements the json.Marshaller interface for type AnnotationsListResult.
func (a AnnotationsListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "value", a.Value)
return json.Marshal(objectMap)
}
// Component - An Application Insights component definition.
type Component struct {
// REQUIRED; The kind of application that this component refers to, used to customize UI. This value is a freeform string,
// values should typically be one of the following: web, ios, other, store, java, phone.
Kind *string `json:"kind,omitempty"`
// REQUIRED; Resource location
Location *string `json:"location,omitempty"`
// Properties that define an Application Insights component resource.
Properties *ComponentProperties `json:"properties,omitempty"`
// Resource tags
Tags map[string]*string `json:"tags,omitempty"`
// READ-ONLY; Azure resource Id
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; Azure resource name
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; Azure resource type
Type *string `json:"type,omitempty" azure:"ro"`
}
// MarshalJSON implements the json.Marshaller interface for type Component.
func (c Component) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "id", c.ID)
populate(objectMap, "kind", c.Kind)
populate(objectMap, "location", c.Location)
populate(objectMap, "name", c.Name)
populate(objectMap, "properties", c.Properties)
populate(objectMap, "tags", c.Tags)
populate(objectMap, "type", c.Type)
return json.Marshal(objectMap)
}
// ComponentAPIKey - Properties that define an API key of an Application Insights Component.
type ComponentAPIKey struct {
// The create date of this API key.
CreatedDate *string `json:"createdDate,omitempty"`
// The read access rights of this API Key.
LinkedReadProperties []*string `json:"linkedReadProperties,omitempty"`
// The write access rights of this API Key.
LinkedWriteProperties []*string `json:"linkedWriteProperties,omitempty"`
// The name of the API key.
Name *string `json:"name,omitempty"`
// READ-ONLY; The API key value. It will be only return once when the API Key was created.
APIKey *string `json:"apiKey,omitempty" azure:"ro"`
// READ-ONLY; The unique ID of the API key inside an Application Insights component. It is auto generated when the API key
// is created.
ID *string `json:"id,omitempty" azure:"ro"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentAPIKey.
func (c ComponentAPIKey) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "apiKey", c.APIKey)
populate(objectMap, "createdDate", c.CreatedDate)
populate(objectMap, "id", c.ID)
populate(objectMap, "linkedReadProperties", c.LinkedReadProperties)
populate(objectMap, "linkedWriteProperties", c.LinkedWriteProperties)
populate(objectMap, "name", c.Name)
return json.Marshal(objectMap)
}
// ComponentAPIKeyListResult - Describes the list of API Keys of an Application Insights Component.
type ComponentAPIKeyListResult struct {
// REQUIRED; List of API Key definitions.
Value []*ComponentAPIKey `json:"value,omitempty"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentAPIKeyListResult.
func (c ComponentAPIKeyListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "value", c.Value)
return json.Marshal(objectMap)
}
// ComponentAnalyticsItem - Properties that define an Analytics item that is associated to an Application Insights component.
type ComponentAnalyticsItem struct {
// The content of this item
Content *string `json:"Content,omitempty"`
// Internally assigned unique id of the item definition.
ID *string `json:"Id,omitempty"`
// The user-defined name of the item.
Name *string `json:"Name,omitempty"`
// A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.
Properties *ComponentAnalyticsItemProperties `json:"Properties,omitempty"`
// Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application
// Insights component.
Scope *ItemScope `json:"Scope,omitempty"`
// Enum indicating the type of the Analytics item.
Type *ItemType `json:"Type,omitempty"`
// READ-ONLY; Date and time in UTC when this item was created.
TimeCreated *string `json:"TimeCreated,omitempty" azure:"ro"`
// READ-ONLY; Date and time in UTC of the last modification that was made to this item.
TimeModified *string `json:"TimeModified,omitempty" azure:"ro"`
// READ-ONLY; This instance's version of the data model. This can change as new features are added.
Version *string `json:"Version,omitempty" azure:"ro"`
}
// ComponentAnalyticsItemProperties - A set of properties that can be defined in the context of a specific item type. Each
// type may have its own properties.
type ComponentAnalyticsItemProperties struct {
// A function alias, used when the type of the item is Function
FunctionAlias *string `json:"functionAlias,omitempty"`
}
// ComponentAvailableFeatures - An Application Insights component available features.
type ComponentAvailableFeatures struct {
// READ-ONLY; A list of Application Insights component feature.
Result []*ComponentFeature `json:"Result,omitempty" azure:"ro"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentAvailableFeatures.
func (c ComponentAvailableFeatures) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "Result", c.Result)
return json.Marshal(objectMap)
}
// ComponentAvailableFeaturesClientGetOptions contains the optional parameters for the ComponentAvailableFeaturesClient.Get
// method.
type ComponentAvailableFeaturesClientGetOptions struct {
// placeholder for future optional parameters
}
// ComponentBillingFeatures - An Application Insights component billing features
type ComponentBillingFeatures struct {
// Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application
// Insights Enterprise'.
CurrentBillingFeatures []*string `json:"CurrentBillingFeatures,omitempty"`
// An Application Insights component daily data volume cap
DataVolumeCap *ComponentDataVolumeCap `json:"DataVolumeCap,omitempty"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentBillingFeatures.
func (c ComponentBillingFeatures) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "CurrentBillingFeatures", c.CurrentBillingFeatures)
populate(objectMap, "DataVolumeCap", c.DataVolumeCap)
return json.Marshal(objectMap)
}
// ComponentCurrentBillingFeaturesClientGetOptions contains the optional parameters for the ComponentCurrentBillingFeaturesClient.Get
// method.
type ComponentCurrentBillingFeaturesClientGetOptions struct {
// placeholder for future optional parameters
}
// ComponentCurrentBillingFeaturesClientUpdateOptions contains the optional parameters for the ComponentCurrentBillingFeaturesClient.Update
// method.
type ComponentCurrentBillingFeaturesClientUpdateOptions struct {
// placeholder for future optional parameters
}
// ComponentDataVolumeCap - An Application Insights component daily data volume cap
type ComponentDataVolumeCap struct {
// Daily data volume cap in GB.
Cap *float32 `json:"Cap,omitempty"`
// Do not send a notification email when the daily data volume cap is met.
StopSendNotificationWhenHitCap *bool `json:"StopSendNotificationWhenHitCap,omitempty"`
// Reserved, not used for now.
StopSendNotificationWhenHitThreshold *bool `json:"StopSendNotificationWhenHitThreshold,omitempty"`
// Reserved, not used for now.
WarningThreshold *int32 `json:"WarningThreshold,omitempty"`
// READ-ONLY; Maximum daily data volume cap that the user can set for this component.
MaxHistoryCap *float32 `json:"MaxHistoryCap,omitempty" azure:"ro"`
// READ-ONLY; Daily data volume cap UTC reset hour.
ResetTime *int32 `json:"ResetTime,omitempty" azure:"ro"`
}
// ComponentExportConfiguration - Properties that define a Continuous Export configuration.
type ComponentExportConfiguration struct {
// Deprecated
NotificationQueueEnabled *string `json:"NotificationQueueEnabled,omitempty"`
// This comma separated list of document types that will be exported. The possible values include 'Requests', 'Event', 'Exceptions',
// 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd',
// 'PerformanceCounters', 'Availability', 'Messages'.
RecordTypes *string `json:"RecordTypes,omitempty"`
// READ-ONLY; The name of the Application Insights component.
ApplicationName *string `json:"ApplicationName,omitempty" azure:"ro"`
// READ-ONLY; The name of the destination storage container.
ContainerName *string `json:"ContainerName,omitempty" azure:"ro"`
// READ-ONLY; The name of destination account.
DestinationAccountID *string `json:"DestinationAccountId,omitempty" azure:"ro"`
// READ-ONLY; The destination account location ID.
DestinationStorageLocationID *string `json:"DestinationStorageLocationId,omitempty" azure:"ro"`
// READ-ONLY; The destination storage account subscription ID.
DestinationStorageSubscriptionID *string `json:"DestinationStorageSubscriptionId,omitempty" azure:"ro"`
// READ-ONLY; The destination type.
DestinationType *string `json:"DestinationType,omitempty" azure:"ro"`
// READ-ONLY; The unique ID of the export configuration inside an Application Insights component. It is auto generated when
// the Continuous Export configuration is created.
ExportID *string `json:"ExportId,omitempty" azure:"ro"`
// READ-ONLY; This indicates current Continuous Export configuration status. The possible values are 'Preparing', 'Success',
// 'Failure'.
ExportStatus *string `json:"ExportStatus,omitempty" azure:"ro"`
// READ-ONLY; The instrumentation key of the Application Insights component.
InstrumentationKey *string `json:"InstrumentationKey,omitempty" azure:"ro"`
// READ-ONLY; This will be 'true' if the Continuous Export configuration is enabled, otherwise it will be 'false'.
IsUserEnabled *string `json:"IsUserEnabled,omitempty" azure:"ro"`
// READ-ONLY; The last time the Continuous Export configuration started failing.
LastGapTime *string `json:"LastGapTime,omitempty" azure:"ro"`
// READ-ONLY; The last time data was successfully delivered to the destination storage container for this Continuous Export
// configuration.
LastSuccessTime *string `json:"LastSuccessTime,omitempty" azure:"ro"`
// READ-ONLY; Last time the Continuous Export configuration was updated.
LastUserUpdate *string `json:"LastUserUpdate,omitempty" azure:"ro"`
// READ-ONLY; This is the reason the Continuous Export configuration started failing. It can be 'AzureStorageNotFound' or
// 'AzureStorageAccessDenied'.
PermanentErrorReason *string `json:"PermanentErrorReason,omitempty" azure:"ro"`
// READ-ONLY; The resource group of the Application Insights component.
ResourceGroup *string `json:"ResourceGroup,omitempty" azure:"ro"`
// READ-ONLY; The name of the destination storage account.
StorageName *string `json:"StorageName,omitempty" azure:"ro"`
// READ-ONLY; The subscription of the Application Insights component.
SubscriptionID *string `json:"SubscriptionId,omitempty" azure:"ro"`
}
// ComponentExportRequest - An Application Insights component Continuous Export configuration request definition.
type ComponentExportRequest struct {
// The name of destination storage account.
DestinationAccountID *string `json:"DestinationAccountId,omitempty"`
// The SAS URL for the destination storage container. It must grant write permission.
DestinationAddress *string `json:"DestinationAddress,omitempty"`
// The location ID of the destination storage container.
DestinationStorageLocationID *string `json:"DestinationStorageLocationId,omitempty"`
// The subscription ID of the destination storage container.
DestinationStorageSubscriptionID *string `json:"DestinationStorageSubscriptionId,omitempty"`
// The Continuous Export destination type. This has to be 'Blob'.
DestinationType *string `json:"DestinationType,omitempty"`
// Set to 'true' to create a Continuous Export configuration as enabled, otherwise set it to 'false'.
IsEnabled *string `json:"IsEnabled,omitempty"`
// Deprecated
NotificationQueueEnabled *string `json:"NotificationQueueEnabled,omitempty"`
// Deprecated
NotificationQueueURI *string `json:"NotificationQueueUri,omitempty"`
// The document types to be exported, as comma separated values. Allowed values include 'Requests', 'Event', 'Exceptions',
// 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters',
// 'Availability', 'Messages'.
RecordTypes *string `json:"RecordTypes,omitempty"`
}
// ComponentFavorite - Properties that define a favorite that is associated to an Application Insights component.
type ComponentFavorite struct {
// Favorite category, as defined by the user at creation time.
Category *string `json:"Category,omitempty"`
// Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing
// valid JSON
Config *string `json:"Config,omitempty"`
// Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the
// Application Insights component.
FavoriteType *FavoriteType `json:"FavoriteType,omitempty"`
// Flag denoting wether or not this favorite was generated from a template.
IsGeneratedFromTemplate *bool `json:"IsGeneratedFromTemplate,omitempty"`
// The user-defined name of the favorite.
Name *string `json:"Name,omitempty"`
// The source of the favorite definition.
SourceType *string `json:"SourceType,omitempty"`
// A list of 0 or more tags that are associated with this favorite definition
Tags []*string `json:"Tags,omitempty"`
// This instance's version of the data model. This can change as new features are added that can be marked favorite. Current
// examples include MetricsExplorer (ME) and Search.
Version *string `json:"Version,omitempty"`
// READ-ONLY; Internally assigned unique id of the favorite definition.
FavoriteID *string `json:"FavoriteId,omitempty" azure:"ro"`
// READ-ONLY; Date and time in UTC of the last modification that was made to this favorite definition.
TimeModified *string `json:"TimeModified,omitempty" azure:"ro"`
// READ-ONLY; Unique user id of the specific user that owns this favorite.
UserID *string `json:"UserId,omitempty" azure:"ro"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentFavorite.
func (c ComponentFavorite) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "Category", c.Category)
populate(objectMap, "Config", c.Config)
populate(objectMap, "FavoriteId", c.FavoriteID)
populate(objectMap, "FavoriteType", c.FavoriteType)
populate(objectMap, "IsGeneratedFromTemplate", c.IsGeneratedFromTemplate)
populate(objectMap, "Name", c.Name)
populate(objectMap, "SourceType", c.SourceType)
populate(objectMap, "Tags", c.Tags)
populate(objectMap, "TimeModified", c.TimeModified)
populate(objectMap, "UserId", c.UserID)
populate(objectMap, "Version", c.Version)
return json.Marshal(objectMap)
}
// ComponentFeature - An Application Insights component daily data volume cap status
type ComponentFeature struct {
// READ-ONLY; A list of Application Insights component feature capability.
Capabilities []*ComponentFeatureCapability `json:"Capabilities,omitempty" azure:"ro"`
// READ-ONLY; The pricing feature name.
FeatureName *string `json:"FeatureName,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
IsHidden *bool `json:"IsHidden,omitempty" azure:"ro"`
// READ-ONLY; Whether can apply addon feature on to it.
IsMainFeature *bool `json:"IsMainFeature,omitempty" azure:"ro"`
// READ-ONLY; The meter id used for the feature.
MeterID *string `json:"MeterId,omitempty" azure:"ro"`
// READ-ONLY; The meter rate for the feature's meter.
MeterRateFrequency *string `json:"MeterRateFrequency,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
ResouceID *string `json:"ResouceId,omitempty" azure:"ro"`
// READ-ONLY; The add on features on main feature.
SupportedAddonFeatures *string `json:"SupportedAddonFeatures,omitempty" azure:"ro"`
// READ-ONLY; Display name of the feature.
Title *string `json:"Title,omitempty" azure:"ro"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentFeature.
func (c ComponentFeature) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "Capabilities", c.Capabilities)
populate(objectMap, "FeatureName", c.FeatureName)
populate(objectMap, "IsHidden", c.IsHidden)
populate(objectMap, "IsMainFeature", c.IsMainFeature)
populate(objectMap, "MeterId", c.MeterID)
populate(objectMap, "MeterRateFrequency", c.MeterRateFrequency)
populate(objectMap, "ResouceId", c.ResouceID)
populate(objectMap, "SupportedAddonFeatures", c.SupportedAddonFeatures)
populate(objectMap, "Title", c.Title)
return json.Marshal(objectMap)
}
// ComponentFeatureCapabilities - An Application Insights component feature capabilities
type ComponentFeatureCapabilities struct {
// READ-ONLY; Reserved, not used now.
APIAccessLevel *string `json:"ApiAccessLevel,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
AnalyticsIntegration *bool `json:"AnalyticsIntegration,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
ApplicationMap *bool `json:"ApplicationMap,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
BurstThrottlePolicy *string `json:"BurstThrottlePolicy,omitempty" azure:"ro"`
// READ-ONLY; Daily data volume cap in GB.
DailyCap *float32 `json:"DailyCap,omitempty" azure:"ro"`
// READ-ONLY; Daily data volume cap UTC reset hour.
DailyCapResetTime *float32 `json:"DailyCapResetTime,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
LiveStreamMetrics *bool `json:"LiveStreamMetrics,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
MetadataClass *string `json:"MetadataClass,omitempty" azure:"ro"`
// READ-ONLY; Whether allow to use multiple steps web test feature.
MultipleStepWebTest *bool `json:"MultipleStepWebTest,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
OpenSchema *bool `json:"OpenSchema,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
PowerBIIntegration *bool `json:"PowerBIIntegration,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
ProactiveDetection *bool `json:"ProactiveDetection,omitempty" azure:"ro"`
// READ-ONLY; Whether allow to use continuous export feature.
SupportExportData *bool `json:"SupportExportData,omitempty" azure:"ro"`
// READ-ONLY; Reserved, not used now.
ThrottleRate *float32 `json:"ThrottleRate,omitempty" azure:"ro"`
// READ-ONLY; The application insights component used tracking type.
TrackingType *string `json:"TrackingType,omitempty" azure:"ro"`
// READ-ONLY; Whether allow to use work item integration feature.
WorkItemIntegration *bool `json:"WorkItemIntegration,omitempty" azure:"ro"`
}
// ComponentFeatureCapabilitiesClientGetOptions contains the optional parameters for the ComponentFeatureCapabilitiesClient.Get
// method.
type ComponentFeatureCapabilitiesClientGetOptions struct {
// placeholder for future optional parameters
}
// ComponentFeatureCapability - An Application Insights component feature capability
type ComponentFeatureCapability struct {
// READ-ONLY; The description of the capability.
Description *string `json:"Description,omitempty" azure:"ro"`
// READ-ONLY; The meter used for the capability.
MeterID *string `json:"MeterId,omitempty" azure:"ro"`
// READ-ONLY; The meter rate of the meter.
MeterRateFrequency *string `json:"MeterRateFrequency,omitempty" azure:"ro"`
// READ-ONLY; The name of the capability.
Name *string `json:"Name,omitempty" azure:"ro"`
// READ-ONLY; The unit of the capability.
Unit *string `json:"Unit,omitempty" azure:"ro"`
// READ-ONLY; The value of the capability.
Value *string `json:"Value,omitempty" azure:"ro"`
}
// ComponentLinkedStorageAccounts - An Application Insights component linked storage accounts
type ComponentLinkedStorageAccounts struct {
// The properties of the linked storage accounts.
Properties *LinkedStorageAccountsProperties `json:"properties,omitempty"`
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string `json:"id,omitempty" azure:"ro"`
// READ-ONLY; The name of the resource
Name *string `json:"name,omitempty" azure:"ro"`
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty" azure:"ro"`
}
// ComponentLinkedStorageAccountsClientCreateAndUpdateOptions contains the optional parameters for the ComponentLinkedStorageAccountsClient.CreateAndUpdate
// method.
type ComponentLinkedStorageAccountsClientCreateAndUpdateOptions struct {
// placeholder for future optional parameters
}
// ComponentLinkedStorageAccountsClientDeleteOptions contains the optional parameters for the ComponentLinkedStorageAccountsClient.Delete
// method.
type ComponentLinkedStorageAccountsClientDeleteOptions struct {
// placeholder for future optional parameters
}
// ComponentLinkedStorageAccountsClientGetOptions contains the optional parameters for the ComponentLinkedStorageAccountsClient.Get
// method.
type ComponentLinkedStorageAccountsClientGetOptions struct {
// placeholder for future optional parameters
}
// ComponentLinkedStorageAccountsClientUpdateOptions contains the optional parameters for the ComponentLinkedStorageAccountsClient.Update
// method.
type ComponentLinkedStorageAccountsClientUpdateOptions struct {
// placeholder for future optional parameters
}
// ComponentLinkedStorageAccountsPatch - An Application Insights component linked storage accounts patch
type ComponentLinkedStorageAccountsPatch struct {
// The properties of the linked storage accounts.
Properties *LinkedStorageAccountsProperties `json:"properties,omitempty"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentLinkedStorageAccountsPatch.
func (c ComponentLinkedStorageAccountsPatch) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "properties", c.Properties)
return json.Marshal(objectMap)
}
// ComponentListResult - Describes the list of Application Insights Resources.
type ComponentListResult struct {
// REQUIRED; List of Application Insights component definitions.
Value []*Component `json:"value,omitempty"`
// The URI to get the next set of Application Insights component definitions if too many components where returned in the
// result set.
NextLink *string `json:"nextLink,omitempty"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentListResult.
func (c ComponentListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "nextLink", c.NextLink)
populate(objectMap, "value", c.Value)
return json.Marshal(objectMap)
}
// ComponentProactiveDetectionConfiguration - Properties that define a ProactiveDetection configuration.
type ComponentProactiveDetectionConfiguration struct {
// Custom email addresses for this rule notifications
CustomEmails []*string `json:"CustomEmails,omitempty"`
// A flag that indicates whether this rule is enabled by the user
Enabled *bool `json:"Enabled,omitempty"`
// The last time this rule was updated
LastUpdatedTime *string `json:"LastUpdatedTime,omitempty"`
// The rule name
Name *string `json:"Name,omitempty"`
// Static definitions of the ProactiveDetection configuration rule (same values for all components).
RuleDefinitions *ComponentProactiveDetectionConfigurationRuleDefinitions `json:"RuleDefinitions,omitempty"`
// A flag that indicated whether notifications on this rule should be sent to subscription owners
SendEmailsToSubscriptionOwners *bool `json:"SendEmailsToSubscriptionOwners,omitempty"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentProactiveDetectionConfiguration.
func (c ComponentProactiveDetectionConfiguration) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "CustomEmails", c.CustomEmails)
populate(objectMap, "Enabled", c.Enabled)
populate(objectMap, "LastUpdatedTime", c.LastUpdatedTime)
populate(objectMap, "Name", c.Name)
populate(objectMap, "RuleDefinitions", c.RuleDefinitions)
populate(objectMap, "SendEmailsToSubscriptionOwners", c.SendEmailsToSubscriptionOwners)
return json.Marshal(objectMap)
}
// ComponentProactiveDetectionConfigurationRuleDefinitions - Static definitions of the ProactiveDetection configuration rule
// (same values for all components).
type ComponentProactiveDetectionConfigurationRuleDefinitions struct {
// The rule description
Description *string `json:"Description,omitempty"`
// The rule name as it is displayed in UI
DisplayName *string `json:"DisplayName,omitempty"`
// URL which displays additional info about the proactive detection rule
HelpURL *string `json:"HelpUrl,omitempty"`
// A flag indicating whether the rule is enabled by default
IsEnabledByDefault *bool `json:"IsEnabledByDefault,omitempty"`
// A flag indicating whether the rule is hidden (from the UI)
IsHidden *bool `json:"IsHidden,omitempty"`
// A flag indicating whether the rule is in preview
IsInPreview *bool `json:"IsInPreview,omitempty"`
// The rule name
Name *string `json:"Name,omitempty"`
// A flag indicating whether email notifications are supported for detections for this rule
SupportsEmailNotifications *bool `json:"SupportsEmailNotifications,omitempty"`
}
// ComponentProperties - Properties that define an Application Insights component resource.
type ComponentProperties struct {
// REQUIRED; Type of application being monitored.
ApplicationType *ApplicationType `json:"Application_Type,omitempty"`
// Disable IP masking.
DisableIPMasking *bool `json:"DisableIpMasking,omitempty"`
// Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set
// to 'Bluefield' when creating/updating a component via the REST API.
FlowType *FlowType `json:"Flow_Type,omitempty"`
// The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.
HockeyAppID *string `json:"HockeyAppId,omitempty"`
// Purge data immediately after 30 days.
ImmediatePurgeDataOn30Days *bool `json:"ImmediatePurgeDataOn30Days,omitempty"`
// Indicates the flow of the ingestion.
IngestionMode *IngestionMode `json:"IngestionMode,omitempty"`
// The network access type for accessing Application Insights ingestion.
PublicNetworkAccessForIngestion *PublicNetworkAccessType `json:"publicNetworkAccessForIngestion,omitempty"`
// The network access type for accessing Application Insights query.
PublicNetworkAccessForQuery *PublicNetworkAccessType `json:"publicNetworkAccessForQuery,omitempty"`
// Describes what tool created this Application Insights component. Customers using this API should set this to the default
// 'rest'.
RequestSource *RequestSource `json:"Request_Source,omitempty"`
// Retention period in days.
RetentionInDays *int32 `json:"RetentionInDays,omitempty"`
// Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.
SamplingPercentage *float64 `json:"SamplingPercentage,omitempty"`
// READ-ONLY; Application Insights Unique ID for your Application.
AppID *string `json:"AppId,omitempty" azure:"ro"`
// READ-ONLY; The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
ApplicationID *string `json:"ApplicationId,omitempty" azure:"ro"`
// READ-ONLY; Application Insights component connection string.
ConnectionString *string `json:"ConnectionString,omitempty" azure:"ro"`
// READ-ONLY; Creation Date for the Application Insights component, in ISO 8601 format.
CreationDate *time.Time `json:"CreationDate,omitempty" azure:"ro"`
// READ-ONLY; Token used to authenticate communications with between Application Insights and HockeyApp.
HockeyAppToken *string `json:"HockeyAppToken,omitempty" azure:"ro"`
// READ-ONLY; Application Insights Instrumentation key. A read-only value that applications can use to identify the destination
// for all telemetry sent to Azure Application Insights. This value will be supplied upon
// construction of each new Application Insights component.
InstrumentationKey *string `json:"InstrumentationKey,omitempty" azure:"ro"`
// READ-ONLY; List of linked private link scope resources.
PrivateLinkScopedResources []*PrivateLinkScopedResource `json:"PrivateLinkScopedResources,omitempty" azure:"ro"`
// READ-ONLY; Current state of this component: whether or not is has been provisioned within the resource group it is defined.
// Users cannot change this value but are able to read from it. Values will include
// Succeeded, Deploying, Canceled, and Failed.
ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"`
// READ-ONLY; Azure Tenant Id.
TenantID *string `json:"TenantId,omitempty" azure:"ro"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentProperties.
func (c ComponentProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "AppId", c.AppID)
populate(objectMap, "ApplicationId", c.ApplicationID)
populate(objectMap, "Application_Type", c.ApplicationType)
populate(objectMap, "ConnectionString", c.ConnectionString)
populateTimeRFC3339(objectMap, "CreationDate", c.CreationDate)
populate(objectMap, "DisableIpMasking", c.DisableIPMasking)
populate(objectMap, "Flow_Type", c.FlowType)
populate(objectMap, "HockeyAppId", c.HockeyAppID)
populate(objectMap, "HockeyAppToken", c.HockeyAppToken)
populate(objectMap, "ImmediatePurgeDataOn30Days", c.ImmediatePurgeDataOn30Days)
populate(objectMap, "IngestionMode", c.IngestionMode)
populate(objectMap, "InstrumentationKey", c.InstrumentationKey)
populate(objectMap, "PrivateLinkScopedResources", c.PrivateLinkScopedResources)
populate(objectMap, "provisioningState", c.ProvisioningState)
populate(objectMap, "publicNetworkAccessForIngestion", c.PublicNetworkAccessForIngestion)
populate(objectMap, "publicNetworkAccessForQuery", c.PublicNetworkAccessForQuery)
populate(objectMap, "Request_Source", c.RequestSource)
populate(objectMap, "RetentionInDays", c.RetentionInDays)
populate(objectMap, "SamplingPercentage", c.SamplingPercentage)
populate(objectMap, "TenantId", c.TenantID)
return json.Marshal(objectMap)
}
// UnmarshalJSON implements the json.Unmarshaller interface for type ComponentProperties.
func (c *ComponentProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "AppId":
err = unpopulate(val, &c.AppID)
delete(rawMsg, key)
case "ApplicationId":
err = unpopulate(val, &c.ApplicationID)
delete(rawMsg, key)
case "Application_Type":
err = unpopulate(val, &c.ApplicationType)
delete(rawMsg, key)
case "ConnectionString":
err = unpopulate(val, &c.ConnectionString)
delete(rawMsg, key)
case "CreationDate":
err = unpopulateTimeRFC3339(val, &c.CreationDate)
delete(rawMsg, key)
case "DisableIpMasking":
err = unpopulate(val, &c.DisableIPMasking)
delete(rawMsg, key)
case "Flow_Type":
err = unpopulate(val, &c.FlowType)
delete(rawMsg, key)
case "HockeyAppId":
err = unpopulate(val, &c.HockeyAppID)
delete(rawMsg, key)
case "HockeyAppToken":
err = unpopulate(val, &c.HockeyAppToken)
delete(rawMsg, key)
case "ImmediatePurgeDataOn30Days":
err = unpopulate(val, &c.ImmediatePurgeDataOn30Days)
delete(rawMsg, key)
case "IngestionMode":
err = unpopulate(val, &c.IngestionMode)
delete(rawMsg, key)
case "InstrumentationKey":
err = unpopulate(val, &c.InstrumentationKey)
delete(rawMsg, key)
case "PrivateLinkScopedResources":
err = unpopulate(val, &c.PrivateLinkScopedResources)
delete(rawMsg, key)
case "provisioningState":
err = unpopulate(val, &c.ProvisioningState)
delete(rawMsg, key)
case "publicNetworkAccessForIngestion":
err = unpopulate(val, &c.PublicNetworkAccessForIngestion)
delete(rawMsg, key)
case "publicNetworkAccessForQuery":
err = unpopulate(val, &c.PublicNetworkAccessForQuery)
delete(rawMsg, key)
case "Request_Source":
err = unpopulate(val, &c.RequestSource)
delete(rawMsg, key)
case "RetentionInDays":
err = unpopulate(val, &c.RetentionInDays)
delete(rawMsg, key)
case "SamplingPercentage":
err = unpopulate(val, &c.SamplingPercentage)
delete(rawMsg, key)
case "TenantId":
err = unpopulate(val, &c.TenantID)
delete(rawMsg, key)
}
if err != nil {
return err
}
}
return nil
}
// ComponentPurgeBody - Describes the body of a purge request for an App Insights component
type ComponentPurgeBody struct {
// REQUIRED; The set of columns and filters (queries) to run over them to purge the resulting data.
Filters []*ComponentPurgeBodyFilters `json:"filters,omitempty"`
// REQUIRED; Table from which to purge data.
Table *string `json:"table,omitempty"`
}
// MarshalJSON implements the json.Marshaller interface for type ComponentPurgeBody.
func (c ComponentPurgeBody) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "filters", c.Filters)
populate(objectMap, "table", c.Table)
return json.Marshal(objectMap)
}
// ComponentPurgeBodyFilters - User-defined filters to return data which will be purged from the table.
type ComponentPurgeBodyFilters struct {
// The column of the table over which the given query should run
Column *string `json:"column,omitempty"`
// When filtering over custom dimensions, this key will be used as the name of the custom dimension.