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

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 +74 -4
  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
@@ -26,6 +26,16 @@ export declare interface ActionDetail {
26
26
  detail?: string;
27
27
  }
28
28
 
29
+ /** A pointer to an Azure Action Group. */
30
+ export declare interface ActionGroup {
31
+ /** The resource ID of the Action Group. This cannot be null or empty. */
32
+ actionGroupId: string;
33
+ /** the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload. */
34
+ webhookProperties?: {
35
+ [propertyName: string]: string;
36
+ };
37
+ }
38
+
29
39
  /** A list of action groups. */
30
40
  export declare interface ActionGroupList {
31
41
  /** The list of action groups. */
@@ -129,12 +139,57 @@ export declare interface ActionGroups {
129
139
  * @param options The options parameters.
130
140
  */
131
141
  beginPostTestNotificationsAndWait(notificationRequest: NotificationRequestBody, options?: ActionGroupsPostTestNotificationsOptionalParams): Promise<ActionGroupsPostTestNotificationsResponse>;
142
+ /**
143
+ * Send test notifications to a set of provided receivers
144
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
145
+ * @param notificationRequest The notification request body which includes the contact details
146
+ * @param options The options parameters.
147
+ */
148
+ beginCreateNotificationsAtResourceGroupLevel(resourceGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams): Promise<PollerLike<PollOperationState<ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>, ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>>;
149
+ /**
150
+ * Send test notifications to a set of provided receivers
151
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
152
+ * @param notificationRequest The notification request body which includes the contact details
153
+ * @param options The options parameters.
154
+ */
155
+ beginCreateNotificationsAtResourceGroupLevelAndWait(resourceGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams): Promise<ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>;
156
+ /**
157
+ * Send test notifications to a set of provided receivers
158
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
159
+ * @param actionGroupName The name of the action group.
160
+ * @param notificationRequest The notification request body which includes the contact details
161
+ * @param options The options parameters.
162
+ */
163
+ beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName: string, actionGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams): Promise<PollerLike<PollOperationState<ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>, ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>>;
164
+ /**
165
+ * Send test notifications to a set of provided receivers
166
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
167
+ * @param actionGroupName The name of the action group.
168
+ * @param notificationRequest The notification request body which includes the contact details
169
+ * @param options The options parameters.
170
+ */
171
+ beginCreateNotificationsAtActionGroupResourceLevelAndWait(resourceGroupName: string, actionGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams): Promise<ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>;
132
172
  /**
133
173
  * Get the test notifications by the notification id
134
174
  * @param notificationId The notification id
135
175
  * @param options The options parameters.
136
176
  */
137
177
  getTestNotifications(notificationId: string, options?: ActionGroupsGetTestNotificationsOptionalParams): Promise<ActionGroupsGetTestNotificationsResponse>;
178
+ /**
179
+ * Get the test notifications by the notification id
180
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
181
+ * @param notificationId The notification id
182
+ * @param options The options parameters.
183
+ */
184
+ getTestNotificationsAtResourceGroupLevel(resourceGroupName: string, notificationId: string, options?: ActionGroupsGetTestNotificationsAtResourceGroupLevelOptionalParams): Promise<ActionGroupsGetTestNotificationsAtResourceGroupLevelResponse>;
185
+ /**
186
+ * Get the test notifications by the notification id
187
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
188
+ * @param actionGroupName The name of the action group.
189
+ * @param notificationId The notification id
190
+ * @param options The options parameters.
191
+ */
192
+ getTestNotificationsAtActionGroupResourceLevel(resourceGroupName: string, actionGroupName: string, notificationId: string, options?: ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams): Promise<ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse>;
138
193
  /**
139
194
  * Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled.
140
195
  * This operation is only supported for Email or SMS receivers.
@@ -146,6 +201,40 @@ export declare interface ActionGroups {
146
201
  enableReceiver(resourceGroupName: string, actionGroupName: string, enableRequest: EnableRequest, options?: ActionGroupsEnableReceiverOptionalParams): Promise<void>;
147
202
  }
148
203
 
204
+ /** Defines headers for ActionGroups_createNotificationsAtActionGroupResourceLevel operation. */
205
+ export declare interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders {
206
+ /** The location header that has the polling uri. */
207
+ location?: string;
208
+ }
209
+
210
+ /** Optional parameters. */
211
+ export declare interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams extends coreClient.OperationOptions {
212
+ /** Delay to wait until next poll, in milliseconds. */
213
+ updateIntervalInMs?: number;
214
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
215
+ resumeFrom?: string;
216
+ }
217
+
218
+ /** Contains response data for the createNotificationsAtActionGroupResourceLevel operation. */
219
+ export declare type ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse = ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders;
220
+
221
+ /** Defines headers for ActionGroups_createNotificationsAtResourceGroupLevel operation. */
222
+ export declare interface ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders {
223
+ /** The location header that has the polling uri. */
224
+ location?: string;
225
+ }
226
+
227
+ /** Optional parameters. */
228
+ export declare interface ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
229
+ /** Delay to wait until next poll, in milliseconds. */
230
+ updateIntervalInMs?: number;
231
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
232
+ resumeFrom?: string;
233
+ }
234
+
235
+ /** Contains response data for the createNotificationsAtResourceGroupLevel operation. */
236
+ export declare type ActionGroupsCreateNotificationsAtResourceGroupLevelResponse = ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders;
237
+
149
238
  /** Optional parameters. */
150
239
  export declare interface ActionGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
151
240
  }
@@ -168,6 +257,20 @@ export declare interface ActionGroupsGetOptionalParams extends coreClient.Operat
168
257
  /** Contains response data for the get operation. */
169
258
  export declare type ActionGroupsGetResponse = ActionGroupResource;
170
259
 
260
+ /** Optional parameters. */
261
+ export declare interface ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams extends coreClient.OperationOptions {
262
+ }
263
+
264
+ /** Contains response data for the getTestNotificationsAtActionGroupResourceLevel operation. */
265
+ export declare type ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse = TestNotificationDetailsResponse;
266
+
267
+ /** Optional parameters. */
268
+ export declare interface ActionGroupsGetTestNotificationsAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
269
+ }
270
+
271
+ /** Contains response data for the getTestNotificationsAtResourceGroupLevel operation. */
272
+ export declare type ActionGroupsGetTestNotificationsAtResourceGroupLevelResponse = TestNotificationDetailsResponse;
273
+
171
274
  /** Optional parameters. */
172
275
  export declare interface ActionGroupsGetTestNotificationsOptionalParams extends coreClient.OperationOptions {
173
276
  }
@@ -189,6 +292,12 @@ export declare interface ActionGroupsListBySubscriptionIdOptionalParams extends
189
292
  /** Contains response data for the listBySubscriptionId operation. */
190
293
  export declare type ActionGroupsListBySubscriptionIdResponse = ActionGroupList;
191
294
 
295
+ /** Defines headers for ActionGroups_postTestNotifications operation. */
296
+ export declare interface ActionGroupsPostTestNotificationsHeaders {
297
+ /** The location header that has the polling uri. */
298
+ location?: string;
299
+ }
300
+
192
301
  /** Optional parameters. */
193
302
  export declare interface ActionGroupsPostTestNotificationsOptionalParams extends coreClient.OperationOptions {
194
303
  /** Delay to wait until next poll, in milliseconds. */
@@ -198,7 +307,7 @@ export declare interface ActionGroupsPostTestNotificationsOptionalParams extends
198
307
  }
199
308
 
200
309
  /** Contains response data for the postTestNotifications operation. */
201
- export declare type ActionGroupsPostTestNotificationsResponse = TestNotificationResponse;
310
+ export declare type ActionGroupsPostTestNotificationsResponse = ActionGroupsPostTestNotificationsHeaders;
202
311
 
203
312
  /** Optional parameters. */
204
313
  export declare interface ActionGroupsUpdateOptionalParams extends coreClient.OperationOptions {
@@ -207,114 +316,73 @@ export declare interface ActionGroupsUpdateOptionalParams extends coreClient.Ope
207
316
  /** Contains response data for the update operation. */
208
317
  export declare type ActionGroupsUpdateResponse = ActionGroupResource;
209
318
 
210
- export declare type ActionUnion = Action | AlertingAction | LogToMetricAction;
211
-
212
- /** A pointer to an Azure Action Group. */
213
- export declare interface ActivityLogAlertActionGroup {
214
- /** The resourceId of the action group. This cannot be null or empty. */
215
- actionGroupId: string;
216
- /** the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload. */
217
- webhookProperties?: {
218
- [propertyName: string]: string;
219
- };
220
- }
221
-
222
- /** A list of activity log alert actions. */
223
- export declare interface ActivityLogAlertActionList {
224
- /** The list of activity log alerts. */
225
- actionGroups?: ActivityLogAlertActionGroup[];
226
- }
227
-
228
- /** An Activity Log alert condition that is met when all its member conditions are met. */
229
- export declare interface ActivityLogAlertAllOfCondition {
230
- /** The list of activity log alert conditions. */
231
- allOf: ActivityLogAlertLeafCondition[];
319
+ /** A list of Activity Log Alert rule actions. */
320
+ export declare interface ActionList {
321
+ /** The list of the Action Groups. */
322
+ actionGroups?: ActionGroup[];
232
323
  }
233
324
 
234
- /** An Activity Log alert condition that is met by comparing an activity log field and value. */
235
- export declare interface ActivityLogAlertLeafCondition {
236
- /** The name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'. */
237
- field: string;
238
- /** The field value will be compared to this value (case-insensitive) to determine if the condition is met. */
239
- equals: string;
240
- }
241
-
242
- /** A list of activity log alerts. */
243
- export declare interface ActivityLogAlertList {
244
- /** The list of activity log alerts. */
245
- value?: ActivityLogAlertResource[];
246
- /** Provides the link to retrieve the next set of elements. */
247
- nextLink?: string;
248
- }
249
-
250
- /** An activity log alert object for the body of patch operations. */
251
- export declare interface ActivityLogAlertPatchBody {
252
- /** Resource tags */
253
- tags?: {
254
- [propertyName: string]: string;
255
- };
256
- /** Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated. */
257
- enabled?: boolean;
258
- }
325
+ export declare type ActionUnion = Action | AlertingAction | LogToMetricAction;
259
326
 
260
- /** An activity log alert resource. */
261
- export declare type ActivityLogAlertResource = Resource & {
262
- /** A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item. */
327
+ /** An Activity Log Alert rule resource. */
328
+ export declare type ActivityLogAlertResource = AzureResourceAutoGenerated & {
329
+ /** A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item. */
263
330
  scopes?: string[];
264
- /** Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated. */
265
- enabled?: boolean;
266
331
  /** The condition that will cause this alert to activate. */
267
- condition?: ActivityLogAlertAllOfCondition;
332
+ condition?: AlertRuleAllOfCondition;
268
333
  /** The actions that will activate when the condition is met. */
269
- actions?: ActivityLogAlertActionList;
270
- /** A description of this activity log alert. */
334
+ actions?: ActionList;
335
+ /** Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated. */
336
+ enabled?: boolean;
337
+ /** A description of this Activity Log Alert rule. */
271
338
  description?: string;
272
339
  };
273
340
 
274
341
  /** Interface representing a ActivityLogAlerts. */
275
342
  export declare interface ActivityLogAlerts {
276
343
  /**
277
- * Get a list of all activity log alerts in a subscription.
344
+ * Get a list of all Activity Log Alert rules in a subscription.
278
345
  * @param options The options parameters.
279
346
  */
280
347
  listBySubscriptionId(options?: ActivityLogAlertsListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator<ActivityLogAlertResource>;
281
348
  /**
282
- * Get a list of all activity log alerts in a resource group.
349
+ * Get a list of all Activity Log Alert rules in a resource group.
283
350
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
284
351
  * @param options The options parameters.
285
352
  */
286
353
  listByResourceGroup(resourceGroupName: string, options?: ActivityLogAlertsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ActivityLogAlertResource>;
287
354
  /**
288
- * Create a new activity log alert or update an existing one.
355
+ * Create a new Activity Log Alert rule or update an existing one.
289
356
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
290
- * @param activityLogAlertName The name of the activity log alert.
291
- * @param activityLogAlert The activity log alert to create or use for the update.
357
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
358
+ * @param activityLogAlertRule The Activity Log Alert rule to create or use for the update.
292
359
  * @param options The options parameters.
293
360
  */
294
- createOrUpdate(resourceGroupName: string, activityLogAlertName: string, activityLogAlert: ActivityLogAlertResource, options?: ActivityLogAlertsCreateOrUpdateOptionalParams): Promise<ActivityLogAlertsCreateOrUpdateResponse>;
361
+ createOrUpdate(resourceGroupName: string, activityLogAlertName: string, activityLogAlertRule: ActivityLogAlertResource, options?: ActivityLogAlertsCreateOrUpdateOptionalParams): Promise<ActivityLogAlertsCreateOrUpdateResponse>;
295
362
  /**
296
- * Get an activity log alert.
363
+ * Get an Activity Log Alert rule.
297
364
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
298
- * @param activityLogAlertName The name of the activity log alert.
365
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
299
366
  * @param options The options parameters.
300
367
  */
301
368
  get(resourceGroupName: string, activityLogAlertName: string, options?: ActivityLogAlertsGetOptionalParams): Promise<ActivityLogAlertsGetResponse>;
302
369
  /**
303
- * Delete an activity log alert.
370
+ * Delete an Activity Log Alert rule.
304
371
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
305
- * @param activityLogAlertName The name of the activity log alert.
372
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
306
373
  * @param options The options parameters.
307
374
  */
308
375
  delete(resourceGroupName: string, activityLogAlertName: string, options?: ActivityLogAlertsDeleteOptionalParams): Promise<void>;
309
376
  /**
310
- * Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate
311
- * method.
377
+ * Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the
378
+ * Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate
379
+ * operation.
312
380
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
313
- * @param activityLogAlertName The name of the activity log alert.
314
- * @param activityLogAlertPatch Parameters supplied to the operation.
381
+ * @param activityLogAlertName The name of the Activity Log Alert rule.
382
+ * @param activityLogAlertRulePatch Parameters supplied to the operation.
315
383
  * @param options The options parameters.
316
384
  */
317
- update(resourceGroupName: string, activityLogAlertName: string, activityLogAlertPatch: ActivityLogAlertPatchBody, options?: ActivityLogAlertsUpdateOptionalParams): Promise<ActivityLogAlertsUpdateResponse>;
385
+ update(resourceGroupName: string, activityLogAlertName: string, activityLogAlertRulePatch: AlertRulePatchObject, options?: ActivityLogAlertsUpdateOptionalParams): Promise<ActivityLogAlertsUpdateResponse>;
318
386
  }
319
387
 
320
388
  /** Optional parameters. */
@@ -335,19 +403,33 @@ export declare interface ActivityLogAlertsGetOptionalParams extends coreClient.O
335
403
  /** Contains response data for the get operation. */
336
404
  export declare type ActivityLogAlertsGetResponse = ActivityLogAlertResource;
337
405
 
406
+ /** Optional parameters. */
407
+ export declare interface ActivityLogAlertsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
408
+ }
409
+
410
+ /** Contains response data for the listByResourceGroupNext operation. */
411
+ export declare type ActivityLogAlertsListByResourceGroupNextResponse = AlertRuleList;
412
+
338
413
  /** Optional parameters. */
339
414
  export declare interface ActivityLogAlertsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
340
415
  }
341
416
 
342
417
  /** Contains response data for the listByResourceGroup operation. */
343
- export declare type ActivityLogAlertsListByResourceGroupResponse = ActivityLogAlertList;
418
+ export declare type ActivityLogAlertsListByResourceGroupResponse = AlertRuleList;
419
+
420
+ /** Optional parameters. */
421
+ export declare interface ActivityLogAlertsListBySubscriptionIdNextOptionalParams extends coreClient.OperationOptions {
422
+ }
423
+
424
+ /** Contains response data for the listBySubscriptionIdNext operation. */
425
+ export declare type ActivityLogAlertsListBySubscriptionIdNextResponse = AlertRuleList;
344
426
 
345
427
  /** Optional parameters. */
346
428
  export declare interface ActivityLogAlertsListBySubscriptionIdOptionalParams extends coreClient.OperationOptions {
347
429
  }
348
430
 
349
431
  /** Contains response data for the listBySubscriptionId operation. */
350
- export declare type ActivityLogAlertsListBySubscriptionIdResponse = ActivityLogAlertList;
432
+ export declare type ActivityLogAlertsListBySubscriptionIdResponse = AlertRuleList;
351
433
 
352
434
  /** Optional parameters. */
353
435
  export declare interface ActivityLogAlertsUpdateOptionalParams extends coreClient.OperationOptions {
@@ -426,6 +508,27 @@ export declare type AlertingAction = Action & {
426
508
  trigger: TriggerCondition;
427
509
  };
428
510
 
511
+ /** An Activity Log Alert rule condition that is met when all its member conditions are met. */
512
+ export declare interface AlertRuleAllOfCondition {
513
+ /** The list of Activity Log Alert rule conditions. */
514
+ allOf: AlertRuleAnyOfOrLeafCondition[];
515
+ }
516
+
517
+ /**
518
+ * An Activity Log Alert rule condition that is met when all its member conditions are met.
519
+ * Each condition can be of one of the following types:
520
+ * __Important__: Each type has its unique subset of properties. Properties from different types CANNOT exist in one condition.
521
+ * * __Leaf Condition -__ must contain 'field' and either 'equals' or 'containsAny'.
522
+ * _Please note, 'anyOf' should __not__ be set in a Leaf Condition._
523
+ * * __AnyOf Condition -__ must contain __only__ 'anyOf' (which is an array of Leaf Conditions).
524
+ * _Please note, 'field', 'equals' and 'containsAny' should __not__ be set in an AnyOf Condition._
525
+ *
526
+ */
527
+ export declare type AlertRuleAnyOfOrLeafCondition = AlertRuleLeafCondition & {
528
+ /** An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met. */
529
+ anyOf?: AlertRuleLeafCondition[];
530
+ };
531
+
429
532
  /** Interface representing a AlertRuleIncidents. */
430
533
  export declare interface AlertRuleIncidents {
431
534
  /**
@@ -459,6 +562,40 @@ export declare interface AlertRuleIncidentsListByAlertRuleOptionalParams extends
459
562
  /** Contains response data for the listByAlertRule operation. */
460
563
  export declare type AlertRuleIncidentsListByAlertRuleResponse = IncidentListResult;
461
564
 
565
+ /**
566
+ * An Activity Log Alert rule condition that is met by comparing the field and value of an Activity Log event.
567
+ * This condition must contain 'field' and either 'equals' or 'containsAny'.
568
+ */
569
+ export declare interface AlertRuleLeafCondition {
570
+ /**
571
+ * The name of the Activity Log event's field that this condition will examine.
572
+ * The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.
573
+ */
574
+ field?: string;
575
+ /** The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met. */
576
+ equals?: string;
577
+ /** The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met. */
578
+ containsAny?: string[];
579
+ }
580
+
581
+ /** A list of Activity Log Alert rules. */
582
+ export declare interface AlertRuleList {
583
+ /** The list of Activity Log Alert rules. */
584
+ value?: ActivityLogAlertResource[];
585
+ /** Provides the link to retrieve the next set of elements. */
586
+ nextLink?: string;
587
+ }
588
+
589
+ /** An Activity Log Alert rule object for the body of patch operations. */
590
+ export declare interface AlertRulePatchObject {
591
+ /** The resource tags */
592
+ tags?: {
593
+ [propertyName: string]: string;
594
+ };
595
+ /** Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated. */
596
+ enabled?: boolean;
597
+ }
598
+
462
599
  /** The alert rule resource. */
463
600
  export declare type AlertRuleResource = Resource & {
464
601
  /** the name of the alert rule. */
@@ -905,6 +1042,31 @@ export declare interface AzureResource {
905
1042
  };
906
1043
  }
907
1044
 
1045
+ /** An Azure resource object. */
1046
+ export declare interface AzureResourceAutoGenerated {
1047
+ /**
1048
+ * The resource Id.
1049
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1050
+ */
1051
+ readonly id?: string;
1052
+ /**
1053
+ * The name of the resource.
1054
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1055
+ */
1056
+ readonly name?: string;
1057
+ /**
1058
+ * The type of the resource.
1059
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1060
+ */
1061
+ readonly type?: string;
1062
+ /** The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'. */
1063
+ location?: string;
1064
+ /** The tags of the resource. */
1065
+ tags?: {
1066
+ [propertyName: string]: string;
1067
+ };
1068
+ }
1069
+
908
1070
  /** Represents a baseline metadata value. */
909
1071
  export declare interface BaselineMetadata {
910
1072
  /** Name of the baseline metadata. */
@@ -960,6 +1122,14 @@ export declare type BaselinesListResponse = MetricBaselinesResponse;
960
1122
  /** Defines values for CategoryType. */
961
1123
  export declare type CategoryType = "Metrics" | "Logs";
962
1124
 
1125
+ /** Definition of custom data column. */
1126
+ export declare interface ColumnDefinition {
1127
+ /** The name of the column. */
1128
+ name?: string;
1129
+ /** The type of the column data. */
1130
+ type?: KnownColumnDefinitionType;
1131
+ }
1132
+
963
1133
  /** Defines values for ComparisonOperationType. */
964
1134
  export declare type ComparisonOperationType = "Equals" | "NotEquals" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual";
965
1135
 
@@ -1032,7 +1202,7 @@ export declare interface DataCollectionEndpoint {
1032
1202
  description?: string;
1033
1203
  /** The immutable ID of this data collection endpoint resource. This property is READ-ONLY. */
1034
1204
  immutableId?: string;
1035
- /** The endpoint used by agents to access their configuration. */
1205
+ /** The endpoint used by clients to access their configuration. */
1036
1206
  configurationAccess?: DataCollectionEndpointConfigurationAccess;
1037
1207
  /** The endpoint used by clients to ingest logs. */
1038
1208
  logsIngestion?: DataCollectionEndpointLogsIngestion;
@@ -1045,14 +1215,14 @@ export declare interface DataCollectionEndpoint {
1045
1215
  readonly provisioningState?: KnownDataCollectionEndpointProvisioningState;
1046
1216
  }
1047
1217
 
1048
- /** The endpoint used by agents to access their configuration. */
1049
- export declare type DataCollectionEndpointConfigurationAccess = ConfigurationAccessEndpointSpec & {};
1218
+ /** The endpoint used by clients to access their configuration. */
1219
+ export declare type DataCollectionEndpointConfigurationAccess = ConfigurationAccessEndpointSpec;
1050
1220
 
1051
1221
  /** The endpoint used by clients to ingest logs. */
1052
- export declare type DataCollectionEndpointLogsIngestion = LogsIngestionEndpointSpec & {};
1222
+ export declare type DataCollectionEndpointLogsIngestion = LogsIngestionEndpointSpec;
1053
1223
 
1054
1224
  /** Network access control rules for the endpoints. */
1055
- export declare type DataCollectionEndpointNetworkAcls = NetworkRuleSet & {};
1225
+ export declare type DataCollectionEndpointNetworkAcls = NetworkRuleSet;
1056
1226
 
1057
1227
  /** Definition of ARM tracked top level resource. */
1058
1228
  export declare interface DataCollectionEndpointResource {
@@ -1093,7 +1263,7 @@ export declare interface DataCollectionEndpointResource {
1093
1263
  description?: string;
1094
1264
  /** The immutable ID of this data collection endpoint resource. This property is READ-ONLY. */
1095
1265
  immutableId?: string;
1096
- /** The endpoint used by agents to access their configuration. */
1266
+ /** The endpoint used by clients to access their configuration. */
1097
1267
  configurationAccess?: DataCollectionEndpointConfigurationAccess;
1098
1268
  /** The endpoint used by clients to ingest logs. */
1099
1269
  logsIngestion?: DataCollectionEndpointLogsIngestion;
@@ -1115,10 +1285,10 @@ export declare interface DataCollectionEndpointResourceListResult {
1115
1285
  }
1116
1286
 
1117
1287
  /** Resource properties. */
1118
- export declare type DataCollectionEndpointResourceProperties = DataCollectionEndpoint & {};
1288
+ export declare type DataCollectionEndpointResourceProperties = DataCollectionEndpoint;
1119
1289
 
1120
1290
  /** Metadata pertaining to creation and last modification of the resource. */
1121
- export declare type DataCollectionEndpointResourceSystemData = SystemData & {};
1291
+ export declare type DataCollectionEndpointResourceSystemData = SystemData;
1122
1292
 
1123
1293
  /** Interface representing a DataCollectionEndpoints. */
1124
1294
  export declare interface DataCollectionEndpoints {
@@ -1233,6 +1403,17 @@ export declare interface DataCollectionRule {
1233
1403
  * NOTE: This property will not be serialized. It can only be populated by the server.
1234
1404
  */
1235
1405
  readonly immutableId?: string;
1406
+ /** The resource ID of the data collection endpoint that this rule can be used with. */
1407
+ dataCollectionEndpointId?: string;
1408
+ /**
1409
+ * Metadata about the resource
1410
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1411
+ */
1412
+ readonly metadata?: DataCollectionRuleMetadata;
1413
+ /** Declaration of custom streams used in this rule. */
1414
+ streamDeclarations?: {
1415
+ [propertyName: string]: StreamDeclaration;
1416
+ };
1236
1417
  /**
1237
1418
  * The specification of data sources.
1238
1419
  * This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
@@ -1262,8 +1443,16 @@ export declare interface DataCollectionRuleAssociation {
1262
1443
  * NOTE: This property will not be serialized. It can only be populated by the server.
1263
1444
  */
1264
1445
  readonly provisioningState?: KnownDataCollectionRuleAssociationProvisioningState;
1446
+ /**
1447
+ * Metadata about the resource
1448
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1449
+ */
1450
+ readonly metadata?: DataCollectionRuleAssociationMetadata;
1265
1451
  }
1266
1452
 
1453
+ /** Metadata about the resource */
1454
+ export declare type DataCollectionRuleAssociationMetadata = Metadata;
1455
+
1267
1456
  /** Definition of generic ARM proxy resource. */
1268
1457
  export declare interface DataCollectionRuleAssociationProxyOnlyResource {
1269
1458
  /**
@@ -1302,6 +1491,11 @@ export declare interface DataCollectionRuleAssociationProxyOnlyResource {
1302
1491
  * NOTE: This property will not be serialized. It can only be populated by the server.
1303
1492
  */
1304
1493
  readonly provisioningState?: KnownDataCollectionRuleAssociationProvisioningState;
1494
+ /**
1495
+ * Metadata about the resource
1496
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1497
+ */
1498
+ readonly metadata?: DataCollectionRuleAssociationMetadata;
1305
1499
  }
1306
1500
 
1307
1501
  /** A pageable list of resources. */
@@ -1313,10 +1507,10 @@ export declare interface DataCollectionRuleAssociationProxyOnlyResourceListResul
1313
1507
  }
1314
1508
 
1315
1509
  /** Resource properties. */
1316
- export declare type DataCollectionRuleAssociationProxyOnlyResourceProperties = DataCollectionRuleAssociation & {};
1510
+ export declare type DataCollectionRuleAssociationProxyOnlyResourceProperties = DataCollectionRuleAssociation;
1317
1511
 
1318
1512
  /** Metadata pertaining to creation and last modification of the resource. */
1319
- export declare type DataCollectionRuleAssociationProxyOnlyResourceSystemData = SystemData & {};
1513
+ export declare type DataCollectionRuleAssociationProxyOnlyResourceSystemData = SystemData;
1320
1514
 
1321
1515
  /** Interface representing a DataCollectionRuleAssociations. */
1322
1516
  export declare interface DataCollectionRuleAssociations {
@@ -1333,6 +1527,14 @@ export declare interface DataCollectionRuleAssociations {
1333
1527
  * @param options The options parameters.
1334
1528
  */
1335
1529
  listByRule(resourceGroupName: string, dataCollectionRuleName: string, options?: DataCollectionRuleAssociationsListByRuleOptionalParams): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource>;
1530
+ /**
1531
+ * Lists associations for the specified data collection endpoint.
1532
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1533
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case
1534
+ * insensitive.
1535
+ * @param options The options parameters.
1536
+ */
1537
+ listByDataCollectionEndpoint(resourceGroupName: string, dataCollectionEndpointName: string, options?: DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams): PagedAsyncIterableIterator<DataCollectionRuleAssociationProxyOnlyResource>;
1336
1538
  /**
1337
1539
  * Returns the specified association.
1338
1540
  * @param resourceUri The identifier of the resource.
@@ -1376,6 +1578,20 @@ export declare interface DataCollectionRuleAssociationsGetOptionalParams extends
1376
1578
  /** Contains response data for the get operation. */
1377
1579
  export declare type DataCollectionRuleAssociationsGetResponse = DataCollectionRuleAssociationProxyOnlyResource;
1378
1580
 
1581
+ /** Optional parameters. */
1582
+ export declare interface DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams extends coreClient.OperationOptions {
1583
+ }
1584
+
1585
+ /** Contains response data for the listByDataCollectionEndpointNext operation. */
1586
+ export declare type DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse = DataCollectionRuleAssociationProxyOnlyResourceListResult;
1587
+
1588
+ /** Optional parameters. */
1589
+ export declare interface DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams extends coreClient.OperationOptions {
1590
+ }
1591
+
1592
+ /** Contains response data for the listByDataCollectionEndpoint operation. */
1593
+ export declare type DataCollectionRuleAssociationsListByDataCollectionEndpointResponse = DataCollectionRuleAssociationProxyOnlyResourceListResult;
1594
+
1379
1595
  /** Optional parameters. */
1380
1596
  export declare interface DataCollectionRuleAssociationsListByResourceNextOptionalParams extends coreClient.OperationOptions {
1381
1597
  }
@@ -1408,10 +1624,13 @@ export declare type DataCollectionRuleAssociationsListByRuleResponse = DataColle
1408
1624
  * The specification of data sources.
1409
1625
  * This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
1410
1626
  */
1411
- export declare type DataCollectionRuleDataSources = DataSourcesSpec & {};
1627
+ export declare type DataCollectionRuleDataSources = DataSourcesSpec;
1412
1628
 
1413
1629
  /** The specification of destinations. */
1414
- export declare type DataCollectionRuleDestinations = DestinationsSpec & {};
1630
+ export declare type DataCollectionRuleDestinations = DestinationsSpec;
1631
+
1632
+ /** Metadata about the resource */
1633
+ export declare type DataCollectionRuleMetadata = Metadata;
1415
1634
 
1416
1635
  /** Definition of ARM tracked top level resource. */
1417
1636
  export declare interface DataCollectionRuleResource {
@@ -1455,6 +1674,17 @@ export declare interface DataCollectionRuleResource {
1455
1674
  * NOTE: This property will not be serialized. It can only be populated by the server.
1456
1675
  */
1457
1676
  readonly immutableId?: string;
1677
+ /** The resource ID of the data collection endpoint that this rule can be used with. */
1678
+ dataCollectionEndpointId?: string;
1679
+ /**
1680
+ * Metadata about the resource
1681
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1682
+ */
1683
+ readonly metadata?: DataCollectionRuleMetadata;
1684
+ /** Declaration of custom streams used in this rule. */
1685
+ streamDeclarations?: {
1686
+ [propertyName: string]: StreamDeclaration;
1687
+ };
1458
1688
  /**
1459
1689
  * The specification of data sources.
1460
1690
  * This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
@@ -1480,10 +1710,10 @@ export declare interface DataCollectionRuleResourceListResult {
1480
1710
  }
1481
1711
 
1482
1712
  /** Resource properties. */
1483
- export declare type DataCollectionRuleResourceProperties = DataCollectionRule & {};
1713
+ export declare type DataCollectionRuleResourceProperties = DataCollectionRule;
1484
1714
 
1485
1715
  /** Metadata pertaining to creation and last modification of the resource. */
1486
- export declare type DataCollectionRuleResourceSystemData = SystemData & {};
1716
+ export declare type DataCollectionRuleResourceSystemData = SystemData;
1487
1717
 
1488
1718
  /** Interface representing a DataCollectionRules. */
1489
1719
  export declare interface DataCollectionRules {
@@ -1597,6 +1827,10 @@ export declare interface DataFlow {
1597
1827
  streams?: KnownDataFlowStreams[];
1598
1828
  /** List of destinations for this data flow. */
1599
1829
  destinations?: string[];
1830
+ /** The KQL query to transform stream data. */
1831
+ transformKql?: string;
1832
+ /** The output stream of the transform. Only required if the transform changes data to a different stream. */
1833
+ outputStream?: string;
1600
1834
  }
1601
1835
 
1602
1836
  /** Specification of data sources that will be collected. */
@@ -1609,6 +1843,10 @@ export declare interface DataSourcesSpec {
1609
1843
  syslog?: SyslogDataSource[];
1610
1844
  /** The list of Azure VM extension data source configurations. */
1611
1845
  extensions?: ExtensionDataSource[];
1846
+ /** The list of Log files source configurations. */
1847
+ logFiles?: LogFilesDataSource[];
1848
+ /** The list of IIS logs source configurations. */
1849
+ iisLogs?: IisLogsDataSource[];
1612
1850
  }
1613
1851
 
1614
1852
  /**
@@ -1630,7 +1868,7 @@ export declare interface DestinationsSpec {
1630
1868
  }
1631
1869
 
1632
1870
  /** Azure Monitor Metrics destination. */
1633
- export declare type DestinationsSpecAzureMonitorMetrics = AzureMonitorMetricsDestination & {};
1871
+ export declare type DestinationsSpecAzureMonitorMetrics = AzureMonitorMetricsDestination;
1634
1872
 
1635
1873
  /** Interface representing a DiagnosticSettings. */
1636
1874
  export declare interface DiagnosticSettings {
@@ -1918,6 +2156,20 @@ export declare interface ErrorResponse {
1918
2156
  message?: string;
1919
2157
  }
1920
2158
 
2159
+ /** The error response. */
2160
+ export declare interface ErrorResponseAutoGenerated {
2161
+ /**
2162
+ * The error code.
2163
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2164
+ */
2165
+ readonly code?: string;
2166
+ /**
2167
+ * The error message indicating why the operation failed.
2168
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2169
+ */
2170
+ readonly message?: string;
2171
+ }
2172
+
1921
2173
  /** The resource management error response. */
1922
2174
  export declare type ErrorResponseCommon = ErrorResponse & {
1923
2175
  /**
@@ -2151,6 +2403,19 @@ export declare interface HttpRequestInfo {
2151
2403
  uri?: string;
2152
2404
  }
2153
2405
 
2406
+ /** Enables IIS logs to be collected by this data collection rule. */
2407
+ export declare interface IisLogsDataSource {
2408
+ /** IIS streams */
2409
+ streams: string[];
2410
+ /** Absolute paths file location */
2411
+ logDirectories?: string[];
2412
+ /**
2413
+ * A friendly name for the data source.
2414
+ * This name should be unique across all data sources (regardless of type) within the data collection rule.
2415
+ */
2416
+ name?: string;
2417
+ }
2418
+
2154
2419
  /** An alert incident indicates the activation status of an alert rule. */
2155
2420
  export declare interface Incident {
2156
2421
  /**
@@ -2225,6 +2490,21 @@ export declare enum KnownBaselineSensitivity {
2225
2490
  High = "High"
2226
2491
  }
2227
2492
 
2493
+ /**
2494
+ * Defines values for KnownColumnDefinitionType. \
2495
+ * {@link KnownKnownColumnDefinitionType} can be used interchangeably with KnownColumnDefinitionType,
2496
+ * this enum contains the known values that the service supports.
2497
+ * ### Known values supported by the service
2498
+ * **string** \
2499
+ * **int** \
2500
+ * **long** \
2501
+ * **real** \
2502
+ * **boolean** \
2503
+ * **datetime** \
2504
+ * **dynamic**
2505
+ */
2506
+ export declare type KnownColumnDefinitionType = string;
2507
+
2228
2508
  /** Known values of {@link ConditionalOperator} that the service accepts. */
2229
2509
  export declare enum KnownConditionalOperator {
2230
2510
  GreaterThanOrEqual = "GreaterThanOrEqual",
@@ -2359,6 +2639,17 @@ export declare enum KnownEnabled {
2359
2639
  */
2360
2640
  export declare type KnownExtensionDataSourceStreams = string;
2361
2641
 
2642
+ /** Known values of {@link KnownColumnDefinitionType} that the service accepts. */
2643
+ export declare enum KnownKnownColumnDefinitionType {
2644
+ String = "string",
2645
+ Int = "int",
2646
+ Long = "long",
2647
+ Real = "real",
2648
+ Boolean = "boolean",
2649
+ Datetime = "datetime",
2650
+ Dynamic = "dynamic"
2651
+ }
2652
+
2362
2653
  /** Known values of {@link KnownDataCollectionEndpointProvisioningState} that the service accepts. */
2363
2654
  export declare enum KnownKnownDataCollectionEndpointProvisioningState {
2364
2655
  Creating = "Creating",
@@ -2416,6 +2707,24 @@ export declare enum KnownKnownExtensionDataSourceStreams {
2416
2707
  MicrosoftWindowsEvent = "Microsoft-WindowsEvent"
2417
2708
  }
2418
2709
 
2710
+ /** Known values of {@link KnownLogFilesDataSourceFormat} that the service accepts. */
2711
+ export declare enum KnownKnownLogFilesDataSourceFormat {
2712
+ Text = "text"
2713
+ }
2714
+
2715
+ /** Known values of {@link KnownLogFileTextSettingsRecordStartTimestampFormat} that the service accepts. */
2716
+ export declare enum KnownKnownLogFileTextSettingsRecordStartTimestampFormat {
2717
+ ISO8601 = "ISO 8601",
2718
+ YyyyMMDDHHMMSS = "YYYY-MM-DD HH:MM:SS",
2719
+ MDYyyyHHMMSSAMPM = "M/D/YYYY HH:MM:SS AM/PM",
2720
+ MonDDYyyyHHMMSS = "Mon DD, YYYY HH:MM:SS",
2721
+ YyMMddHHMmSs = "yyMMdd HH:mm:ss",
2722
+ DdMMyyHHMmSs = "ddMMyy HH:mm:ss",
2723
+ MMMDHhMmSs = "MMM d hh:mm:ss",
2724
+ DdMMMYyyyHHMmSsZzz = "dd/MMM/yyyy:HH:mm:ss zzz",
2725
+ YyyyMMDdTHHMmSsK = "yyyy-MM-ddTHH:mm:ssK"
2726
+ }
2727
+
2419
2728
  /** Known values of {@link KnownPerfCounterDataSourceStreams} that the service accepts. */
2420
2729
  export declare enum KnownKnownPerfCounterDataSourceStreams {
2421
2730
  MicrosoftPerf = "Microsoft-Perf",
@@ -2477,6 +2786,32 @@ export declare enum KnownKnownWindowsEventLogDataSourceStreams {
2477
2786
  MicrosoftEvent = "Microsoft-Event"
2478
2787
  }
2479
2788
 
2789
+ /**
2790
+ * Defines values for KnownLogFilesDataSourceFormat. \
2791
+ * {@link KnownKnownLogFilesDataSourceFormat} can be used interchangeably with KnownLogFilesDataSourceFormat,
2792
+ * this enum contains the known values that the service supports.
2793
+ * ### Known values supported by the service
2794
+ * **text**
2795
+ */
2796
+ export declare type KnownLogFilesDataSourceFormat = string;
2797
+
2798
+ /**
2799
+ * Defines values for KnownLogFileTextSettingsRecordStartTimestampFormat. \
2800
+ * {@link KnownKnownLogFileTextSettingsRecordStartTimestampFormat} can be used interchangeably with KnownLogFileTextSettingsRecordStartTimestampFormat,
2801
+ * this enum contains the known values that the service supports.
2802
+ * ### Known values supported by the service
2803
+ * **ISO 8601** \
2804
+ * **YYYY-MM-DD HH:MM:SS** \
2805
+ * **M\/D\/YYYY HH:MM:SS AM\/PM** \
2806
+ * **Mon DD, YYYY HH:MM:SS** \
2807
+ * **yyMMdd HH:mm:ss** \
2808
+ * **ddMMyy HH:mm:ss** \
2809
+ * **MMM d hh:mm:ss** \
2810
+ * **dd\/MMM\/yyyy:HH:mm:ss zzz** \
2811
+ * **yyyy-MM-ddTHH:mm:ssK**
2812
+ */
2813
+ export declare type KnownLogFileTextSettingsRecordStartTimestampFormat = string;
2814
+
2480
2815
  /** Known values of {@link MetricClass} that the service accepts. */
2481
2816
  export declare enum KnownMetricClass {
2482
2817
  Availability = "Availability",
@@ -2678,6 +3013,44 @@ export declare interface LogAnalyticsDestination {
2678
3013
  name?: string;
2679
3014
  }
2680
3015
 
3016
+ /** Definition of which custom log files will be collected by this data collection rule */
3017
+ export declare interface LogFilesDataSource {
3018
+ /**
3019
+ * List of streams that this data source will be sent to.
3020
+ * A stream indicates what schema will be used for this data source
3021
+ */
3022
+ streams: string[];
3023
+ /** File Patterns where the log files are located */
3024
+ filePatterns: string[];
3025
+ /** The data format of the log files */
3026
+ format: KnownLogFilesDataSourceFormat;
3027
+ /** The log files specific settings. */
3028
+ settings?: LogFilesDataSourceSettings;
3029
+ /**
3030
+ * A friendly name for the data source.
3031
+ * This name should be unique across all data sources (regardless of type) within the data collection rule.
3032
+ */
3033
+ name?: string;
3034
+ }
3035
+
3036
+ /** The log files specific settings. */
3037
+ export declare type LogFilesDataSourceSettings = LogFileSettings;
3038
+
3039
+ /** Settings for different log file formats */
3040
+ export declare interface LogFileSettings {
3041
+ /** Text settings */
3042
+ text?: LogFileSettingsText;
3043
+ }
3044
+
3045
+ /** Text settings */
3046
+ export declare type LogFileSettingsText = LogFileTextSettings;
3047
+
3048
+ /** Settings for text log files */
3049
+ export declare interface LogFileTextSettings {
3050
+ /** One of the supported timestamp formats */
3051
+ recordStartTimestampFormat: KnownLogFileTextSettingsRecordStartTimestampFormat;
3052
+ }
3053
+
2681
3054
  /** A logic app receiver. */
2682
3055
  export declare interface LogicAppReceiver {
2683
3056
  /** The name of the logic app receiver. Names must be unique across all receivers within an action group. */
@@ -2906,6 +3279,15 @@ export declare type ManagementEventRuleCondition = RuleCondition & {
2906
3279
  aggregation?: ManagementEventAggregationCondition;
2907
3280
  };
2908
3281
 
3282
+ /** Metadata about the resource */
3283
+ export declare interface Metadata {
3284
+ /**
3285
+ * Azure offering managing this resource on-behalf-of customer.
3286
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3287
+ */
3288
+ readonly provisionedBy?: string;
3289
+ }
3290
+
2909
3291
  /** Represents a metric metadata value. */
2910
3292
  export declare interface MetadataValue {
2911
3293
  /** the name of the metadata. */
@@ -4698,6 +5080,12 @@ export declare interface Source {
4698
5080
  queryType?: QueryType;
4699
5081
  }
4700
5082
 
5083
+ /** Declaration of a custom stream. */
5084
+ export declare interface StreamDeclaration {
5085
+ /** List of columns used by data in this stream. */
5086
+ columns?: ColumnDefinition[];
5087
+ }
5088
+
4701
5089
  /**
4702
5090
  * Definition of which syslog data will be collected and how it will be collected.
4703
5091
  * Only collected from Linux machines.
@@ -4791,16 +5179,6 @@ export declare interface TestNotificationDetailsResponse {
4791
5179
  actionDetails?: ActionDetail[];
4792
5180
  }
4793
5181
 
4794
- /** The response when test notification succeeded */
4795
- export declare interface TestNotificationResponse {
4796
- /** The notification id */
4797
- notificationId: string;
4798
- /** The correlation id */
4799
- correlationId: string;
4800
- /** The created time */
4801
- createdTime: string;
4802
- }
4803
-
4804
5182
  /** A rule condition based on a metric crossing a threshold. */
4805
5183
  export declare type ThresholdRuleCondition = RuleCondition & {
4806
5184
  /** Polymorphic discriminator, which specifies the different types this object can be */