@azure/arm-monitor 7.0.1-alpha.20220427.1 → 8.0.0-alpha.20220615.2

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.
Files changed (116) hide show
  1. package/CHANGELOG.md +82 -2
  2. package/README.md +1 -1
  3. package/dist/index.js +1010 -145
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js +138 -0
  10. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js.map +1 -0
  11. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js +137 -0
  14. package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js.map +1 -0
  15. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js +1 -1
  16. package/dist-esm/samples-dev/actionGroupsDeleteSample.js +1 -1
  17. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js +1 -1
  18. package/dist-esm/samples-dev/actionGroupsGetSample.js +1 -1
  19. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js +32 -0
  22. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js.map +1 -0
  23. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js +31 -0
  26. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js.map +1 -0
  27. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js +3 -3
  28. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js.map +1 -1
  29. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js +3 -3
  30. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js.map +1 -1
  31. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js +3 -3
  32. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js.map +1 -1
  33. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js +15 -3
  34. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js.map +1 -1
  35. package/dist-esm/samples-dev/actionGroupsUpdateSample.js +1 -1
  36. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js +100 -14
  37. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js.map +1 -1
  38. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js +7 -7
  39. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js.map +1 -1
  40. package/dist-esm/samples-dev/activityLogAlertsGetSample.js +7 -7
  41. package/dist-esm/samples-dev/activityLogAlertsGetSample.js.map +1 -1
  42. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js +4 -4
  43. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js.map +1 -1
  44. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js +5 -5
  45. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js.map +1 -1
  46. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js +9 -9
  47. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js.map +1 -1
  48. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js +1 -1
  49. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js +1 -1
  50. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js +1 -1
  51. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js +1 -1
  52. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js +1 -1
  53. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js +1 -1
  54. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js +1 -1
  55. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js +1 -1
  56. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js +1 -1
  57. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.d.ts +2 -0
  58. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js +45 -0
  60. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js.map +1 -0
  61. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js +1 -1
  62. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js +1 -1
  63. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js +1 -1
  64. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js +1 -1
  65. package/dist-esm/samples-dev/dataCollectionRulesGetSample.js +1 -1
  66. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js +1 -1
  67. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js +1 -1
  68. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js +1 -1
  69. package/dist-esm/src/models/index.d.ts +349 -63
  70. package/dist-esm/src/models/index.d.ts.map +1 -1
  71. package/dist-esm/src/models/index.js +29 -0
  72. package/dist-esm/src/models/index.js.map +1 -1
  73. package/dist-esm/src/models/mappers.d.ts +24 -8
  74. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  75. package/dist-esm/src/models/mappers.js +482 -85
  76. package/dist-esm/src/models/mappers.js.map +1 -1
  77. package/dist-esm/src/models/parameters.d.ts +2 -2
  78. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  79. package/dist-esm/src/models/parameters.js +9 -9
  80. package/dist-esm/src/models/parameters.js.map +1 -1
  81. package/dist-esm/src/monitorClient.js +1 -1
  82. package/dist-esm/src/monitorClient.js.map +1 -1
  83. package/dist-esm/src/operations/actionGroups.d.ts +46 -1
  84. package/dist-esm/src/operations/actionGroups.d.ts.map +1 -1
  85. package/dist-esm/src/operations/actionGroups.js +235 -4
  86. package/dist-esm/src/operations/actionGroups.js.map +1 -1
  87. package/dist-esm/src/operations/activityLogAlerts.d.ts +32 -18
  88. package/dist-esm/src/operations/activityLogAlerts.d.ts.map +1 -1
  89. package/dist-esm/src/operations/activityLogAlerts.js +111 -35
  90. package/dist-esm/src/operations/activityLogAlerts.js.map +1 -1
  91. package/dist-esm/src/operations/dataCollectionRuleAssociations.d.ts +29 -1
  92. package/dist-esm/src/operations/dataCollectionRuleAssociations.d.ts.map +1 -1
  93. package/dist-esm/src/operations/dataCollectionRuleAssociations.js +116 -0
  94. package/dist-esm/src/operations/dataCollectionRuleAssociations.js.map +1 -1
  95. package/dist-esm/src/operationsInterfaces/actionGroups.d.ts +46 -1
  96. package/dist-esm/src/operationsInterfaces/actionGroups.d.ts.map +1 -1
  97. package/dist-esm/src/operationsInterfaces/activityLogAlerts.d.ts +17 -16
  98. package/dist-esm/src/operationsInterfaces/activityLogAlerts.d.ts.map +1 -1
  99. package/dist-esm/src/operationsInterfaces/dataCollectionRuleAssociations.d.ts +9 -1
  100. package/dist-esm/src/operationsInterfaces/dataCollectionRuleAssociations.d.ts.map +1 -1
  101. package/dist-esm/test/monitor_examples.d.ts.map +1 -1
  102. package/dist-esm/test/monitor_examples.js +26 -32
  103. package/dist-esm/test/monitor_examples.js.map +1 -1
  104. package/package.json +7 -3
  105. package/review/arm-monitor.api.md +286 -63
  106. package/src/models/index.ts +385 -65
  107. package/src/models/mappers.ts +519 -94
  108. package/src/models/parameters.ts +9 -9
  109. package/src/monitorClient.ts +1 -1
  110. package/src/operations/actionGroups.ts +355 -4
  111. package/src/operations/activityLogAlerts.ts +136 -37
  112. package/src/operations/dataCollectionRuleAssociations.ts +168 -1
  113. package/src/operationsInterfaces/actionGroups.ts +96 -0
  114. package/src/operationsInterfaces/activityLogAlerts.ts +17 -16
  115. package/src/operationsInterfaces/dataCollectionRuleAssociations.ts +13 -0
  116. package/types/arm-monitor.d.ts +476 -98
@@ -25,6 +25,14 @@ export interface ActionDetail {
25
25
  subState?: string;
26
26
  }
27
27
 
28
+ // @public
29
+ export interface ActionGroup {
30
+ actionGroupId: string;
31
+ webhookProperties?: {
32
+ [propertyName: string]: string;
33
+ };
34
+ }
35
+
28
36
  // @public
29
37
  export interface ActionGroupList {
30
38
  nextLink?: string;
@@ -58,6 +66,10 @@ export type ActionGroupResource = AzureResource & {
58
66
 
59
67
  // @public
60
68
  export interface ActionGroups {
69
+ beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName: string, actionGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams): Promise<PollerLike<PollOperationState<ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>, ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>>;
70
+ beginCreateNotificationsAtActionGroupResourceLevelAndWait(resourceGroupName: string, actionGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams): Promise<ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>;
71
+ beginCreateNotificationsAtResourceGroupLevel(resourceGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams): Promise<PollerLike<PollOperationState<ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>, ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>>;
72
+ beginCreateNotificationsAtResourceGroupLevelAndWait(resourceGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams): Promise<ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>;
61
73
  beginPostTestNotifications(notificationRequest: NotificationRequestBody, options?: ActionGroupsPostTestNotificationsOptionalParams): Promise<PollerLike<PollOperationState<ActionGroupsPostTestNotificationsResponse>, ActionGroupsPostTestNotificationsResponse>>;
62
74
  beginPostTestNotificationsAndWait(notificationRequest: NotificationRequestBody, options?: ActionGroupsPostTestNotificationsOptionalParams): Promise<ActionGroupsPostTestNotificationsResponse>;
63
75
  createOrUpdate(resourceGroupName: string, actionGroupName: string, actionGroup: ActionGroupResource, options?: ActionGroupsCreateOrUpdateOptionalParams): Promise<ActionGroupsCreateOrUpdateResponse>;
@@ -65,11 +77,41 @@ export interface ActionGroups {
65
77
  enableReceiver(resourceGroupName: string, actionGroupName: string, enableRequest: EnableRequest, options?: ActionGroupsEnableReceiverOptionalParams): Promise<void>;
66
78
  get(resourceGroupName: string, actionGroupName: string, options?: ActionGroupsGetOptionalParams): Promise<ActionGroupsGetResponse>;
67
79
  getTestNotifications(notificationId: string, options?: ActionGroupsGetTestNotificationsOptionalParams): Promise<ActionGroupsGetTestNotificationsResponse>;
80
+ getTestNotificationsAtActionGroupResourceLevel(resourceGroupName: string, actionGroupName: string, notificationId: string, options?: ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams): Promise<ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse>;
81
+ getTestNotificationsAtResourceGroupLevel(resourceGroupName: string, notificationId: string, options?: ActionGroupsGetTestNotificationsAtResourceGroupLevelOptionalParams): Promise<ActionGroupsGetTestNotificationsAtResourceGroupLevelResponse>;
68
82
  listByResourceGroup(resourceGroupName: string, options?: ActionGroupsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ActionGroupResource>;
69
83
  listBySubscriptionId(options?: ActionGroupsListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator<ActionGroupResource>;
70
84
  update(resourceGroupName: string, actionGroupName: string, actionGroupPatch: ActionGroupPatchBody, options?: ActionGroupsUpdateOptionalParams): Promise<ActionGroupsUpdateResponse>;
71
85
  }
72
86
 
87
+ // @public
88
+ export interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders {
89
+ location?: string;
90
+ }
91
+
92
+ // @public
93
+ export interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams extends coreClient.OperationOptions {
94
+ resumeFrom?: string;
95
+ updateIntervalInMs?: number;
96
+ }
97
+
98
+ // @public
99
+ export type ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse = ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders;
100
+
101
+ // @public
102
+ export interface ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders {
103
+ location?: string;
104
+ }
105
+
106
+ // @public
107
+ export interface ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
108
+ resumeFrom?: string;
109
+ updateIntervalInMs?: number;
110
+ }
111
+
112
+ // @public
113
+ export type ActionGroupsCreateNotificationsAtResourceGroupLevelResponse = ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders;
114
+
73
115
  // @public
74
116
  export interface ActionGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
75
117
  }
@@ -93,100 +135,86 @@ export interface ActionGroupsGetOptionalParams extends coreClient.OperationOptio
93
135
  export type ActionGroupsGetResponse = ActionGroupResource;
94
136
 
95
137
  // @public
96
- export interface ActionGroupsGetTestNotificationsOptionalParams extends coreClient.OperationOptions {
138
+ export interface ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams extends coreClient.OperationOptions {
97
139
  }
98
140
 
99
141
  // @public
100
- export type ActionGroupsGetTestNotificationsResponse = TestNotificationDetailsResponse;
142
+ export type ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse = TestNotificationDetailsResponse;
101
143
 
102
144
  // @public
103
- export interface ActionGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
145
+ export interface ActionGroupsGetTestNotificationsAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
104
146
  }
105
147
 
106
148
  // @public
107
- export type ActionGroupsListByResourceGroupResponse = ActionGroupList;
149
+ export type ActionGroupsGetTestNotificationsAtResourceGroupLevelResponse = TestNotificationDetailsResponse;
108
150
 
109
151
  // @public
110
- export interface ActionGroupsListBySubscriptionIdOptionalParams extends coreClient.OperationOptions {
152
+ export interface ActionGroupsGetTestNotificationsOptionalParams extends coreClient.OperationOptions {
111
153
  }
112
154
 
113
155
  // @public
114
- export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList;
156
+ export type ActionGroupsGetTestNotificationsResponse = TestNotificationDetailsResponse;
115
157
 
116
158
  // @public
117
- export interface ActionGroupsPostTestNotificationsOptionalParams extends coreClient.OperationOptions {
118
- resumeFrom?: string;
119
- updateIntervalInMs?: number;
159
+ export interface ActionGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
120
160
  }
121
161
 
122
162
  // @public
123
- export type ActionGroupsPostTestNotificationsResponse = TestNotificationResponse;
163
+ export type ActionGroupsListByResourceGroupResponse = ActionGroupList;
124
164
 
125
165
  // @public
126
- export interface ActionGroupsUpdateOptionalParams extends coreClient.OperationOptions {
166
+ export interface ActionGroupsListBySubscriptionIdOptionalParams extends coreClient.OperationOptions {
127
167
  }
128
168
 
129
169
  // @public
130
- export type ActionGroupsUpdateResponse = ActionGroupResource;
131
-
132
- // @public (undocumented)
133
- export type ActionUnion = Action | AlertingAction | LogToMetricAction;
170
+ export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList;
134
171
 
135
172
  // @public
136
- export interface ActivityLogAlertActionGroup {
137
- actionGroupId: string;
138
- webhookProperties?: {
139
- [propertyName: string]: string;
140
- };
173
+ export interface ActionGroupsPostTestNotificationsHeaders {
174
+ location?: string;
141
175
  }
142
176
 
143
177
  // @public
144
- export interface ActivityLogAlertActionList {
145
- actionGroups?: ActivityLogAlertActionGroup[];
178
+ export interface ActionGroupsPostTestNotificationsOptionalParams extends coreClient.OperationOptions {
179
+ resumeFrom?: string;
180
+ updateIntervalInMs?: number;
146
181
  }
147
182
 
148
183
  // @public
149
- export interface ActivityLogAlertAllOfCondition {
150
- allOf: ActivityLogAlertLeafCondition[];
151
- }
184
+ export type ActionGroupsPostTestNotificationsResponse = ActionGroupsPostTestNotificationsHeaders;
152
185
 
153
186
  // @public
154
- export interface ActivityLogAlertLeafCondition {
155
- equals: string;
156
- field: string;
187
+ export interface ActionGroupsUpdateOptionalParams extends coreClient.OperationOptions {
157
188
  }
158
189
 
159
190
  // @public
160
- export interface ActivityLogAlertList {
161
- nextLink?: string;
162
- value?: ActivityLogAlertResource[];
163
- }
191
+ export type ActionGroupsUpdateResponse = ActionGroupResource;
164
192
 
165
193
  // @public
166
- export interface ActivityLogAlertPatchBody {
167
- enabled?: boolean;
168
- tags?: {
169
- [propertyName: string]: string;
170
- };
194
+ export interface ActionList {
195
+ actionGroups?: ActionGroup[];
171
196
  }
172
197
 
198
+ // @public (undocumented)
199
+ export type ActionUnion = Action | AlertingAction | LogToMetricAction;
200
+
173
201
  // @public
174
- export type ActivityLogAlertResource = Resource & {
202
+ export type ActivityLogAlertResource = AzureResourceAutoGenerated & {
175
203
  scopes?: string[];
204
+ condition?: AlertRuleAllOfCondition;
205
+ actions?: ActionList;
176
206
  enabled?: boolean;
177
- condition?: ActivityLogAlertAllOfCondition;
178
- actions?: ActivityLogAlertActionList;
179
207
  description?: string;
180
208
  };
181
209
 
182
210
  // @public
183
211
  export interface ActivityLogAlerts {
184
- createOrUpdate(resourceGroupName: string, activityLogAlertName: string, activityLogAlert: ActivityLogAlertResource, options?: ActivityLogAlertsCreateOrUpdateOptionalParams): Promise<ActivityLogAlertsCreateOrUpdateResponse>;
212
+ createOrUpdate(resourceGroupName: string, activityLogAlertName: string, activityLogAlertRule: ActivityLogAlertResource, options?: ActivityLogAlertsCreateOrUpdateOptionalParams): Promise<ActivityLogAlertsCreateOrUpdateResponse>;
185
213
  delete(resourceGroupName: string, activityLogAlertName: string, options?: ActivityLogAlertsDeleteOptionalParams): Promise<void>;
186
214
  get(resourceGroupName: string, activityLogAlertName: string, options?: ActivityLogAlertsGetOptionalParams): Promise<ActivityLogAlertsGetResponse>;
187
215
  listByResourceGroup(resourceGroupName: string, options?: ActivityLogAlertsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ActivityLogAlertResource>;
188
216
  listBySubscriptionId(options?: ActivityLogAlertsListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator<ActivityLogAlertResource>;
189
- update(resourceGroupName: string, activityLogAlertName: string, activityLogAlertPatch: ActivityLogAlertPatchBody, options?: ActivityLogAlertsUpdateOptionalParams): Promise<ActivityLogAlertsUpdateResponse>;
217
+ update(resourceGroupName: string, activityLogAlertName: string, activityLogAlertRulePatch: AlertRulePatchObject, options?: ActivityLogAlertsUpdateOptionalParams): Promise<ActivityLogAlertsUpdateResponse>;
190
218
  }
191
219
 
192
220
  // @public
@@ -207,19 +235,33 @@ export interface ActivityLogAlertsGetOptionalParams extends coreClient.Operation
207
235
  // @public
208
236
  export type ActivityLogAlertsGetResponse = ActivityLogAlertResource;
209
237
 
238
+ // @public
239
+ export interface ActivityLogAlertsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
240
+ }
241
+
242
+ // @public
243
+ export type ActivityLogAlertsListByResourceGroupNextResponse = AlertRuleList;
244
+
210
245
  // @public
211
246
  export interface ActivityLogAlertsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
212
247
  }
213
248
 
214
249
  // @public
215
- export type ActivityLogAlertsListByResourceGroupResponse = ActivityLogAlertList;
250
+ export type ActivityLogAlertsListByResourceGroupResponse = AlertRuleList;
251
+
252
+ // @public
253
+ export interface ActivityLogAlertsListBySubscriptionIdNextOptionalParams extends coreClient.OperationOptions {
254
+ }
255
+
256
+ // @public
257
+ export type ActivityLogAlertsListBySubscriptionIdNextResponse = AlertRuleList;
216
258
 
217
259
  // @public
218
260
  export interface ActivityLogAlertsListBySubscriptionIdOptionalParams extends coreClient.OperationOptions {
219
261
  }
220
262
 
221
263
  // @public
222
- export type ActivityLogAlertsListBySubscriptionIdResponse = ActivityLogAlertList;
264
+ export type ActivityLogAlertsListBySubscriptionIdResponse = AlertRuleList;
223
265
 
224
266
  // @public
225
267
  export interface ActivityLogAlertsUpdateOptionalParams extends coreClient.OperationOptions {
@@ -264,6 +306,16 @@ export type AlertingAction = Action & {
264
306
  trigger: TriggerCondition;
265
307
  };
266
308
 
309
+ // @public
310
+ export interface AlertRuleAllOfCondition {
311
+ allOf: AlertRuleAnyOfOrLeafCondition[];
312
+ }
313
+
314
+ // @public
315
+ export type AlertRuleAnyOfOrLeafCondition = AlertRuleLeafCondition & {
316
+ anyOf?: AlertRuleLeafCondition[];
317
+ };
318
+
267
319
  // @public
268
320
  export interface AlertRuleIncidents {
269
321
  get(resourceGroupName: string, ruleName: string, incidentName: string, options?: AlertRuleIncidentsGetOptionalParams): Promise<AlertRuleIncidentsGetResponse>;
@@ -284,6 +336,27 @@ export interface AlertRuleIncidentsListByAlertRuleOptionalParams extends coreCli
284
336
  // @public
285
337
  export type AlertRuleIncidentsListByAlertRuleResponse = IncidentListResult;
286
338
 
339
+ // @public
340
+ export interface AlertRuleLeafCondition {
341
+ containsAny?: string[];
342
+ equals?: string;
343
+ field?: string;
344
+ }
345
+
346
+ // @public
347
+ export interface AlertRuleList {
348
+ nextLink?: string;
349
+ value?: ActivityLogAlertResource[];
350
+ }
351
+
352
+ // @public
353
+ export interface AlertRulePatchObject {
354
+ enabled?: boolean;
355
+ tags?: {
356
+ [propertyName: string]: string;
357
+ };
358
+ }
359
+
287
360
  // @public
288
361
  export type AlertRuleResource = Resource & {
289
362
  namePropertiesName: string;
@@ -546,6 +619,17 @@ export interface AzureResource {
546
619
  readonly type?: string;
547
620
  }
548
621
 
622
+ // @public
623
+ export interface AzureResourceAutoGenerated {
624
+ readonly id?: string;
625
+ location?: string;
626
+ readonly name?: string;
627
+ tags?: {
628
+ [propertyName: string]: string;
629
+ };
630
+ readonly type?: string;
631
+ }
632
+
549
633
  // @public
550
634
  export interface BaselineMetadata {
551
635
  name: string;
@@ -578,6 +662,12 @@ export type BaselinesListResponse = MetricBaselinesResponse;
578
662
  // @public
579
663
  export type CategoryType = "Metrics" | "Logs";
580
664
 
665
+ // @public
666
+ export interface ColumnDefinition {
667
+ name?: string;
668
+ type?: KnownColumnDefinitionType;
669
+ }
670
+
581
671
  // @public
582
672
  export type ComparisonOperationType = "Equals" | "NotEquals" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual";
583
673
 
@@ -621,13 +711,13 @@ export interface DataCollectionEndpoint {
621
711
  }
622
712
 
623
713
  // @public
624
- export type DataCollectionEndpointConfigurationAccess = ConfigurationAccessEndpointSpec & {};
714
+ export type DataCollectionEndpointConfigurationAccess = ConfigurationAccessEndpointSpec;
625
715
 
626
716
  // @public
627
- export type DataCollectionEndpointLogsIngestion = LogsIngestionEndpointSpec & {};
717
+ export type DataCollectionEndpointLogsIngestion = LogsIngestionEndpointSpec;
628
718
 
629
719
  // @public
630
- export type DataCollectionEndpointNetworkAcls = NetworkRuleSet & {};
720
+ export type DataCollectionEndpointNetworkAcls = NetworkRuleSet;
631
721
 
632
722
  // @public
633
723
  export interface DataCollectionEndpointResource {
@@ -656,10 +746,10 @@ export interface DataCollectionEndpointResourceListResult {
656
746
  }
657
747
 
658
748
  // @public
659
- export type DataCollectionEndpointResourceProperties = DataCollectionEndpoint & {};
749
+ export type DataCollectionEndpointResourceProperties = DataCollectionEndpoint;
660
750
 
661
751
  // @public
662
- export type DataCollectionEndpointResourceSystemData = SystemData & {};
752
+ export type DataCollectionEndpointResourceSystemData = SystemData;
663
753
 
664
754
  // @public
665
755
  export interface DataCollectionEndpoints {
@@ -728,12 +818,17 @@ export type DataCollectionEndpointsUpdateResponse = DataCollectionEndpointResour
728
818
 
729
819
  // @public
730
820
  export interface DataCollectionRule {
821
+ dataCollectionEndpointId?: string;
731
822
  dataFlows?: DataFlow[];
732
823
  dataSources?: DataCollectionRuleDataSources;
733
824
  description?: string;
734
825
  destinations?: DataCollectionRuleDestinations;
735
826
  readonly immutableId?: string;
827
+ readonly metadata?: DataCollectionRuleMetadata;
736
828
  readonly provisioningState?: KnownDataCollectionRuleProvisioningState;
829
+ streamDeclarations?: {
830
+ [propertyName: string]: StreamDeclaration;
831
+ };
737
832
  }
738
833
 
739
834
  // @public
@@ -741,9 +836,13 @@ export interface DataCollectionRuleAssociation {
741
836
  dataCollectionEndpointId?: string;
742
837
  dataCollectionRuleId?: string;
743
838
  description?: string;
839
+ readonly metadata?: DataCollectionRuleAssociationMetadata;
744
840
  readonly provisioningState?: KnownDataCollectionRuleAssociationProvisioningState;
745
841
  }
746
842
 
843
+ // @public
844
+ export type DataCollectionRuleAssociationMetadata = Metadata;
845
+
747
846
  // @public
748
847
  export interface DataCollectionRuleAssociationProxyOnlyResource {
749
848
  dataCollectionEndpointId?: string;
@@ -751,6 +850,7 @@ export interface DataCollectionRuleAssociationProxyOnlyResource {
751
850
  description?: string;
752
851
  readonly etag?: string;
753
852
  readonly id?: string;
853
+ readonly metadata?: DataCollectionRuleAssociationMetadata;
754
854
  readonly name?: string;
755
855
  readonly provisioningState?: KnownDataCollectionRuleAssociationProvisioningState;
756
856
  readonly systemData?: DataCollectionRuleAssociationProxyOnlyResourceSystemData;
@@ -764,16 +864,17 @@ export interface DataCollectionRuleAssociationProxyOnlyResourceListResult {
764
864
  }
765
865
 
766
866
  // @public
767
- export type DataCollectionRuleAssociationProxyOnlyResourceProperties = DataCollectionRuleAssociation & {};
867
+ export type DataCollectionRuleAssociationProxyOnlyResourceProperties = DataCollectionRuleAssociation;
768
868
 
769
869
  // @public
770
- export type DataCollectionRuleAssociationProxyOnlyResourceSystemData = SystemData & {};
870
+ export type DataCollectionRuleAssociationProxyOnlyResourceSystemData = SystemData;
771
871
 
772
872
  // @public
773
873
  export interface DataCollectionRuleAssociations {
774
874
  create(resourceUri: string, associationName: string, options?: DataCollectionRuleAssociationsCreateOptionalParams): Promise<DataCollectionRuleAssociationsCreateResponse>;
775
875
  delete(resourceUri: string, associationName: string, options?: DataCollectionRuleAssociationsDeleteOptionalParams): Promise<void>;
776
876
  get(resourceUri: string, associationName: string, options?: DataCollectionRuleAssociationsGetOptionalParams): Promise<DataCollectionRuleAssociationsGetResponse>;
877
+ listByDataCollectionEndpoint(resourceGroupName: string, dataCollectionEndpointName: string, options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource>;
777
878
  listByResource(resourceUri: string, options?: DataCollectionRuleAssociationsListByResourceOptionalParams): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource>;
778
879
  listByRule(resourceGroupName: string, dataCollectionRuleName: string, options?: DataCollectionRuleAssociationsListByRuleOptionalParams): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource>;
779
880
  }
@@ -797,6 +898,20 @@ export interface DataCollectionRuleAssociationsGetOptionalParams extends coreCli
797
898
  // @public
798
899
  export type DataCollectionRuleAssociationsGetResponse = DataCollectionRuleAssociationProxyOnlyResource;
799
900
 
901
+ // @public
902
+ export interface DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams extends coreClient.OperationOptions {
903
+ }
904
+
905
+ // @public
906
+ export type DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse = DataCollectionRuleAssociationProxyOnlyResourceListResult;
907
+
908
+ // @public
909
+ export interface DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams extends coreClient.OperationOptions {
910
+ }
911
+
912
+ // @public
913
+ export type DataCollectionRuleAssociationsListByDataCollectionEndpointResponse = DataCollectionRuleAssociationProxyOnlyResourceListResult;
914
+
800
915
  // @public
801
916
  export interface DataCollectionRuleAssociationsListByResourceNextOptionalParams extends coreClient.OperationOptions {
802
917
  }
@@ -826,13 +941,17 @@ export interface DataCollectionRuleAssociationsListByRuleOptionalParams extends
826
941
  export type DataCollectionRuleAssociationsListByRuleResponse = DataCollectionRuleAssociationProxyOnlyResourceListResult;
827
942
 
828
943
  // @public
829
- export type DataCollectionRuleDataSources = DataSourcesSpec & {};
944
+ export type DataCollectionRuleDataSources = DataSourcesSpec;
945
+
946
+ // @public
947
+ export type DataCollectionRuleDestinations = DestinationsSpec;
830
948
 
831
949
  // @public
832
- export type DataCollectionRuleDestinations = DestinationsSpec & {};
950
+ export type DataCollectionRuleMetadata = Metadata;
833
951
 
834
952
  // @public
835
953
  export interface DataCollectionRuleResource {
954
+ dataCollectionEndpointId?: string;
836
955
  dataFlows?: DataFlow[];
837
956
  dataSources?: DataCollectionRuleDataSources;
838
957
  description?: string;
@@ -842,8 +961,12 @@ export interface DataCollectionRuleResource {
842
961
  readonly immutableId?: string;
843
962
  kind?: KnownDataCollectionRuleResourceKind;
844
963
  location: string;
964
+ readonly metadata?: DataCollectionRuleMetadata;
845
965
  readonly name?: string;
846
966
  readonly provisioningState?: KnownDataCollectionRuleProvisioningState;
967
+ streamDeclarations?: {
968
+ [propertyName: string]: StreamDeclaration;
969
+ };
847
970
  readonly systemData?: DataCollectionRuleResourceSystemData;
848
971
  tags?: {
849
972
  [propertyName: string]: string;
@@ -858,10 +981,10 @@ export interface DataCollectionRuleResourceListResult {
858
981
  }
859
982
 
860
983
  // @public
861
- export type DataCollectionRuleResourceProperties = DataCollectionRule & {};
984
+ export type DataCollectionRuleResourceProperties = DataCollectionRule;
862
985
 
863
986
  // @public
864
- export type DataCollectionRuleResourceSystemData = SystemData & {};
987
+ export type DataCollectionRuleResourceSystemData = SystemData;
865
988
 
866
989
  // @public
867
990
  export interface DataCollectionRules {
@@ -936,12 +1059,16 @@ export interface DataContainer {
936
1059
  // @public
937
1060
  export interface DataFlow {
938
1061
  destinations?: string[];
1062
+ outputStream?: string;
939
1063
  streams?: KnownDataFlowStreams[];
1064
+ transformKql?: string;
940
1065
  }
941
1066
 
942
1067
  // @public
943
1068
  export interface DataSourcesSpec {
944
1069
  extensions?: ExtensionDataSource[];
1070
+ iisLogs?: IisLogsDataSource[];
1071
+ logFiles?: LogFilesDataSource[];
945
1072
  performanceCounters?: PerfCounterDataSource[];
946
1073
  syslog?: SyslogDataSource[];
947
1074
  windowsEventLogs?: WindowsEventLogDataSource[];
@@ -957,7 +1084,7 @@ export interface DestinationsSpec {
957
1084
  }
958
1085
 
959
1086
  // @public
960
- export type DestinationsSpecAzureMonitorMetrics = AzureMonitorMetricsDestination & {};
1087
+ export type DestinationsSpecAzureMonitorMetrics = AzureMonitorMetricsDestination;
961
1088
 
962
1089
  // @public
963
1090
  export interface DiagnosticSettings {
@@ -1122,6 +1249,12 @@ export interface ErrorResponse {
1122
1249
  message?: string;
1123
1250
  }
1124
1251
 
1252
+ // @public
1253
+ export interface ErrorResponseAutoGenerated {
1254
+ readonly code?: string;
1255
+ readonly message?: string;
1256
+ }
1257
+
1125
1258
  // @public
1126
1259
  export type ErrorResponseCommon = ErrorResponse & {
1127
1260
  readonly details?: ErrorResponseCommon[];
@@ -1218,6 +1351,13 @@ export interface HttpRequestInfo {
1218
1351
  uri?: string;
1219
1352
  }
1220
1353
 
1354
+ // @public
1355
+ export interface IisLogsDataSource {
1356
+ logDirectories?: string[];
1357
+ name?: string;
1358
+ streams: string[];
1359
+ }
1360
+
1221
1361
  // @public
1222
1362
  export interface Incident {
1223
1363
  readonly activatedTime?: Date;
@@ -1279,6 +1419,9 @@ export enum KnownBaselineSensitivity {
1279
1419
  Medium = "Medium"
1280
1420
  }
1281
1421
 
1422
+ // @public
1423
+ export type KnownColumnDefinitionType = string;
1424
+
1282
1425
  // @public
1283
1426
  export enum KnownConditionalOperator {
1284
1427
  // (undocumented)
@@ -1370,6 +1513,24 @@ export enum KnownEnabled {
1370
1513
  // @public
1371
1514
  export type KnownExtensionDataSourceStreams = string;
1372
1515
 
1516
+ // @public
1517
+ export enum KnownKnownColumnDefinitionType {
1518
+ // (undocumented)
1519
+ Boolean = "boolean",
1520
+ // (undocumented)
1521
+ Datetime = "datetime",
1522
+ // (undocumented)
1523
+ Dynamic = "dynamic",
1524
+ // (undocumented)
1525
+ Int = "int",
1526
+ // (undocumented)
1527
+ Long = "long",
1528
+ // (undocumented)
1529
+ Real = "real",
1530
+ // (undocumented)
1531
+ String = "string"
1532
+ }
1533
+
1373
1534
  // @public
1374
1535
  export enum KnownKnownDataCollectionEndpointProvisioningState {
1375
1536
  // (undocumented)
@@ -1456,6 +1617,34 @@ export enum KnownKnownExtensionDataSourceStreams {
1456
1617
  MicrosoftWindowsEvent = "Microsoft-WindowsEvent"
1457
1618
  }
1458
1619
 
1620
+ // @public
1621
+ export enum KnownKnownLogFilesDataSourceFormat {
1622
+ // (undocumented)
1623
+ Text = "text"
1624
+ }
1625
+
1626
+ // @public
1627
+ export enum KnownKnownLogFileTextSettingsRecordStartTimestampFormat {
1628
+ // (undocumented)
1629
+ DdMMMYyyyHHMmSsZzz = "dd/MMM/yyyy:HH:mm:ss zzz",
1630
+ // (undocumented)
1631
+ DdMMyyHHMmSs = "ddMMyy HH:mm:ss",
1632
+ // (undocumented)
1633
+ ISO8601 = "ISO 8601",
1634
+ // (undocumented)
1635
+ MDYyyyHHMMSSAMPM = "M/D/YYYY HH:MM:SS AM/PM",
1636
+ // (undocumented)
1637
+ MMMDHhMmSs = "MMM d hh:mm:ss",
1638
+ // (undocumented)
1639
+ MonDDYyyyHHMMSS = "Mon DD, YYYY HH:MM:SS",
1640
+ // (undocumented)
1641
+ YyMMddHHMmSs = "yyMMdd HH:mm:ss",
1642
+ // (undocumented)
1643
+ YyyyMMDDHHMMSS = "YYYY-MM-DD HH:MM:SS",
1644
+ // (undocumented)
1645
+ YyyyMMDdTHHMmSsK = "yyyy-MM-ddTHH:mm:ssK"
1646
+ }
1647
+
1459
1648
  // @public
1460
1649
  export enum KnownKnownPerfCounterDataSourceStreams {
1461
1650
  // (undocumented)
@@ -1554,6 +1743,12 @@ export enum KnownKnownWindowsEventLogDataSourceStreams {
1554
1743
  MicrosoftWindowsEvent = "Microsoft-WindowsEvent"
1555
1744
  }
1556
1745
 
1746
+ // @public
1747
+ export type KnownLogFilesDataSourceFormat = string;
1748
+
1749
+ // @public
1750
+ export type KnownLogFileTextSettingsRecordStartTimestampFormat = string;
1751
+
1557
1752
  // @public
1558
1753
  export enum KnownMetricClass {
1559
1754
  // (undocumented)
@@ -1716,6 +1911,31 @@ export interface LogAnalyticsDestination {
1716
1911
  workspaceResourceId?: string;
1717
1912
  }
1718
1913
 
1914
+ // @public
1915
+ export interface LogFilesDataSource {
1916
+ filePatterns: string[];
1917
+ format: KnownLogFilesDataSourceFormat;
1918
+ name?: string;
1919
+ settings?: LogFilesDataSourceSettings;
1920
+ streams: string[];
1921
+ }
1922
+
1923
+ // @public
1924
+ export type LogFilesDataSourceSettings = LogFileSettings;
1925
+
1926
+ // @public
1927
+ export interface LogFileSettings {
1928
+ text?: LogFileSettingsText;
1929
+ }
1930
+
1931
+ // @public
1932
+ export type LogFileSettingsText = LogFileTextSettings;
1933
+
1934
+ // @public
1935
+ export interface LogFileTextSettings {
1936
+ recordStartTimestampFormat: KnownLogFileTextSettingsRecordStartTimestampFormat;
1937
+ }
1938
+
1719
1939
  // @public
1720
1940
  export interface LogicAppReceiver {
1721
1941
  callbackUrl: string;
@@ -1858,6 +2078,11 @@ export type ManagementEventRuleCondition = RuleCondition & {
1858
2078
  aggregation?: ManagementEventAggregationCondition;
1859
2079
  };
1860
2080
 
2081
+ // @public
2082
+ export interface Metadata {
2083
+ readonly provisionedBy?: string;
2084
+ }
2085
+
1861
2086
  // @public
1862
2087
  export interface MetadataValue {
1863
2088
  name?: LocalizableString;
@@ -2929,6 +3154,11 @@ export interface Source {
2929
3154
  queryType?: QueryType;
2930
3155
  }
2931
3156
 
3157
+ // @public
3158
+ export interface StreamDeclaration {
3159
+ columns?: ColumnDefinition[];
3160
+ }
3161
+
2932
3162
  // @public
2933
3163
  export interface SyslogDataSource {
2934
3164
  facilityNames?: KnownSyslogDataSourceFacilityNames[];
@@ -2986,13 +3216,6 @@ export interface TestNotificationDetailsResponse {
2986
3216
  state: string;
2987
3217
  }
2988
3218
 
2989
- // @public
2990
- export interface TestNotificationResponse {
2991
- correlationId: string;
2992
- createdTime: string;
2993
- notificationId: string;
2994
- }
2995
-
2996
3219
  // @public
2997
3220
  export type ThresholdRuleCondition = RuleCondition & {
2998
3221
  odataType: "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition";