@azure/arm-monitor 8.0.0-beta.3 → 8.0.0-beta.4

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 (162) hide show
  1. package/CHANGELOG.md +83 -4
  2. package/dist/index.js +3354 -1977
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/azureMonitorWorkspacesCreateSample.d.ts +2 -0
  7. package/dist-esm/samples-dev/azureMonitorWorkspacesCreateSample.d.ts.map +1 -0
  8. package/dist-esm/samples-dev/azureMonitorWorkspacesCreateSample.js +42 -0
  9. package/dist-esm/samples-dev/azureMonitorWorkspacesCreateSample.js.map +1 -0
  10. package/dist-esm/samples-dev/azureMonitorWorkspacesDeleteSample.d.ts +2 -0
  11. package/dist-esm/samples-dev/azureMonitorWorkspacesDeleteSample.d.ts.map +1 -0
  12. package/dist-esm/samples-dev/azureMonitorWorkspacesDeleteSample.js +39 -0
  13. package/dist-esm/samples-dev/azureMonitorWorkspacesDeleteSample.js.map +1 -0
  14. package/dist-esm/samples-dev/azureMonitorWorkspacesGetSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/azureMonitorWorkspacesGetSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/azureMonitorWorkspacesGetSample.js +39 -0
  17. package/dist-esm/samples-dev/azureMonitorWorkspacesGetSample.js.map +1 -0
  18. package/dist-esm/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.js +52 -0
  21. package/dist-esm/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.js.map +1 -0
  22. package/dist-esm/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.js +51 -0
  25. package/dist-esm/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.js.map +1 -0
  26. package/dist-esm/samples-dev/azureMonitorWorkspacesUpdateSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/azureMonitorWorkspacesUpdateSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/azureMonitorWorkspacesUpdateSample.js +45 -0
  29. package/dist-esm/samples-dev/azureMonitorWorkspacesUpdateSample.js.map +1 -0
  30. package/dist-esm/samples-dev/metricsListSample.js +3 -3
  31. package/dist-esm/samples-dev/metricsListSample.js.map +1 -1
  32. package/dist-esm/samples-dev/monitorOperationsListSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/monitorOperationsListSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/monitorOperationsListSample.js +51 -0
  35. package/dist-esm/samples-dev/monitorOperationsListSample.js.map +1 -0
  36. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js +138 -83
  37. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js.map +1 -1
  38. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js +8 -8
  39. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js.map +1 -1
  40. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js +8 -8
  41. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js.map +1 -1
  42. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js +7 -7
  43. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js.map +1 -1
  44. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js +6 -6
  45. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js.map +1 -1
  46. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js +10 -9
  47. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js.map +1 -1
  48. package/dist-esm/src/lroImpl.d.ts +6 -11
  49. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  50. package/dist-esm/src/lroImpl.js +12 -20
  51. package/dist-esm/src/lroImpl.js.map +1 -1
  52. package/dist-esm/src/models/index.d.ts +705 -271
  53. package/dist-esm/src/models/index.d.ts.map +1 -1
  54. package/dist-esm/src/models/index.js +84 -64
  55. package/dist-esm/src/models/index.js.map +1 -1
  56. package/dist-esm/src/models/mappers.d.ts +29 -17
  57. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  58. package/dist-esm/src/models/mappers.js +1127 -445
  59. package/dist-esm/src/models/mappers.js.map +1 -1
  60. package/dist-esm/src/models/parameters.d.ts +5 -1
  61. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  62. package/dist-esm/src/models/parameters.js +39 -7
  63. package/dist-esm/src/models/parameters.js.map +1 -1
  64. package/dist-esm/src/monitorClient.d.ts +4 -2
  65. package/dist-esm/src/monitorClient.d.ts.map +1 -1
  66. package/dist-esm/src/monitorClient.js +5 -3
  67. package/dist-esm/src/monitorClient.js.map +1 -1
  68. package/dist-esm/src/operations/actionGroups.d.ts +4 -4
  69. package/dist-esm/src/operations/actionGroups.d.ts.map +1 -1
  70. package/dist-esm/src/operations/actionGroups.js +34 -17
  71. package/dist-esm/src/operations/actionGroups.js.map +1 -1
  72. package/dist-esm/src/operations/azureMonitorWorkspaces.d.ts +87 -0
  73. package/dist-esm/src/operations/azureMonitorWorkspaces.d.ts.map +1 -0
  74. package/dist-esm/src/operations/azureMonitorWorkspaces.js +389 -0
  75. package/dist-esm/src/operations/azureMonitorWorkspaces.js.map +1 -0
  76. package/dist-esm/src/operations/index.d.ts +3 -1
  77. package/dist-esm/src/operations/index.d.ts.map +1 -1
  78. package/dist-esm/src/operations/index.js +3 -1
  79. package/dist-esm/src/operations/index.js.map +1 -1
  80. package/dist-esm/src/operations/{metrics.d.ts → metricsOperations.d.ts} +5 -5
  81. package/dist-esm/src/operations/metricsOperations.d.ts.map +1 -0
  82. package/dist-esm/src/operations/{metrics.js → metricsOperations.js} +4 -4
  83. package/dist-esm/src/operations/metricsOperations.js.map +1 -0
  84. package/dist-esm/src/operations/monitorOperations.d.ts +32 -0
  85. package/dist-esm/src/operations/monitorOperations.d.ts.map +1 -0
  86. package/dist-esm/src/operations/monitorOperations.js +131 -0
  87. package/dist-esm/src/operations/monitorOperations.js.map +1 -0
  88. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  89. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  90. package/dist-esm/src/operations/privateEndpointConnections.js +29 -16
  91. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  92. package/dist-esm/src/operations/privateLinkScopedResources.d.ts +3 -3
  93. package/dist-esm/src/operations/privateLinkScopedResources.d.ts.map +1 -1
  94. package/dist-esm/src/operations/privateLinkScopedResources.js +18 -10
  95. package/dist-esm/src/operations/privateLinkScopedResources.js.map +1 -1
  96. package/dist-esm/src/operations/privateLinkScopes.d.ts +2 -2
  97. package/dist-esm/src/operations/privateLinkScopes.d.ts.map +1 -1
  98. package/dist-esm/src/operations/privateLinkScopes.js +10 -6
  99. package/dist-esm/src/operations/privateLinkScopes.js.map +1 -1
  100. package/dist-esm/src/operations/scheduledQueryRules.d.ts +30 -17
  101. package/dist-esm/src/operations/scheduledQueryRules.d.ts.map +1 -1
  102. package/dist-esm/src/operations/scheduledQueryRules.js +131 -48
  103. package/dist-esm/src/operations/scheduledQueryRules.js.map +1 -1
  104. package/dist-esm/src/operationsInterfaces/actionGroups.d.ts +4 -4
  105. package/dist-esm/src/operationsInterfaces/actionGroups.d.ts.map +1 -1
  106. package/dist-esm/src/operationsInterfaces/azureMonitorWorkspaces.d.ts +51 -0
  107. package/dist-esm/src/operationsInterfaces/azureMonitorWorkspaces.d.ts.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/azureMonitorWorkspaces.js +9 -0
  109. package/dist-esm/src/operationsInterfaces/azureMonitorWorkspaces.js.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -1
  111. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  112. package/dist-esm/src/operationsInterfaces/index.js +3 -1
  113. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  114. package/dist-esm/src/operationsInterfaces/{metrics.d.ts → metricsOperations.d.ts} +3 -3
  115. package/dist-esm/src/operationsInterfaces/metricsOperations.d.ts.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/{metrics.js → metricsOperations.js} +1 -1
  117. package/dist-esm/src/operationsInterfaces/metricsOperations.js.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/monitorOperations.d.ts +11 -0
  119. package/dist-esm/src/operationsInterfaces/monitorOperations.d.ts.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/monitorOperations.js +9 -0
  121. package/dist-esm/src/operationsInterfaces/monitorOperations.js.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  123. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  124. package/dist-esm/src/operationsInterfaces/privateLinkScopedResources.d.ts +3 -3
  125. package/dist-esm/src/operationsInterfaces/privateLinkScopedResources.d.ts.map +1 -1
  126. package/dist-esm/src/operationsInterfaces/privateLinkScopes.d.ts +2 -2
  127. package/dist-esm/src/operationsInterfaces/privateLinkScopes.d.ts.map +1 -1
  128. package/dist-esm/src/operationsInterfaces/scheduledQueryRules.d.ts +13 -13
  129. package/dist-esm/src/operationsInterfaces/scheduledQueryRules.d.ts.map +1 -1
  130. package/dist-esm/test/monitor_examples.js +60 -3
  131. package/dist-esm/test/monitor_examples.js.map +1 -1
  132. package/package.json +6 -6
  133. package/review/arm-monitor.api.md +419 -158
  134. package/src/lroImpl.ts +31 -23
  135. package/src/models/index.ts +760 -294
  136. package/src/models/mappers.ts +1990 -1300
  137. package/src/models/parameters.ts +48 -10
  138. package/src/monitorClient.ts +15 -7
  139. package/src/operations/actionGroups.ts +57 -35
  140. package/src/operations/azureMonitorWorkspaces.ts +483 -0
  141. package/src/operations/index.ts +3 -1
  142. package/src/operations/{metrics.ts → metricsOperations.ts} +4 -4
  143. package/src/operations/monitorOperations.ts +149 -0
  144. package/src/operations/privateEndpointConnections.ts +33 -21
  145. package/src/operations/privateLinkScopedResources.ts +28 -21
  146. package/src/operations/privateLinkScopes.ts +15 -11
  147. package/src/operations/scheduledQueryRules.ts +179 -73
  148. package/src/operationsInterfaces/actionGroups.ts +7 -7
  149. package/src/operationsInterfaces/azureMonitorWorkspaces.ts +93 -0
  150. package/src/operationsInterfaces/index.ts +3 -1
  151. package/src/operationsInterfaces/{metrics.ts → metricsOperations.ts} +2 -2
  152. package/src/operationsInterfaces/monitorOperations.ts +25 -0
  153. package/src/operationsInterfaces/privateEndpointConnections.ts +4 -4
  154. package/src/operationsInterfaces/privateLinkScopedResources.ts +4 -4
  155. package/src/operationsInterfaces/privateLinkScopes.ts +2 -2
  156. package/src/operationsInterfaces/scheduledQueryRules.ts +21 -21
  157. package/types/arm-monitor.d.ts +825 -289
  158. package/types/tsdoc-metadata.json +1 -1
  159. package/dist-esm/src/operations/metrics.d.ts.map +0 -1
  160. package/dist-esm/src/operations/metrics.js.map +0 -1
  161. package/dist-esm/src/operationsInterfaces/metrics.d.ts.map +0 -1
  162. package/dist-esm/src/operationsInterfaces/metrics.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import * as coreAuth from '@azure/core-auth';
2
2
  import * as coreClient from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
- import { PollerLike } from '@azure/core-lro';
5
- import { PollOperationState } from '@azure/core-lro';
5
+ import { SimplePollerLike } from '@azure/core-lro';
6
6
 
7
7
  /**
8
8
  * Defines values for AccessMode. \
@@ -34,12 +34,6 @@ export declare interface AccessModeSettingsExclusion {
34
34
  ingestionAccessMode?: AccessMode;
35
35
  }
36
36
 
37
- /** Action descriptor. */
38
- export declare interface Action {
39
- /** Polymorphic discriminator, which specifies the different types this object can be */
40
- odataType: "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction" | "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction";
41
- }
42
-
43
37
  /** The action detail */
44
38
  export declare interface ActionDetail {
45
39
  /** The mechanism type */
@@ -162,7 +156,7 @@ export declare interface ActionGroups {
162
156
  * @param notificationRequest The notification request body which includes the contact details
163
157
  * @param options The options parameters.
164
158
  */
165
- beginPostTestNotifications(notificationRequest: NotificationRequestBody, options?: ActionGroupsPostTestNotificationsOptionalParams): Promise<PollerLike<PollOperationState<ActionGroupsPostTestNotificationsResponse>, ActionGroupsPostTestNotificationsResponse>>;
159
+ beginPostTestNotifications(notificationRequest: NotificationRequestBody, options?: ActionGroupsPostTestNotificationsOptionalParams): Promise<SimplePollerLike<OperationState<ActionGroupsPostTestNotificationsResponse>, ActionGroupsPostTestNotificationsResponse>>;
166
160
  /**
167
161
  * Send test notifications to a set of provided receivers
168
162
  * @param notificationRequest The notification request body which includes the contact details
@@ -175,7 +169,7 @@ export declare interface ActionGroups {
175
169
  * @param notificationRequest The notification request body which includes the contact details
176
170
  * @param options The options parameters.
177
171
  */
178
- beginCreateNotificationsAtResourceGroupLevel(resourceGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams): Promise<PollerLike<PollOperationState<ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>, ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>>;
172
+ beginCreateNotificationsAtResourceGroupLevel(resourceGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams): Promise<SimplePollerLike<OperationState<ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>, ActionGroupsCreateNotificationsAtResourceGroupLevelResponse>>;
179
173
  /**
180
174
  * Send test notifications to a set of provided receivers
181
175
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -190,7 +184,7 @@ export declare interface ActionGroups {
190
184
  * @param notificationRequest The notification request body which includes the contact details
191
185
  * @param options The options parameters.
192
186
  */
193
- beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName: string, actionGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams): Promise<PollerLike<PollOperationState<ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>, ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>>;
187
+ beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName: string, actionGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams): Promise<SimplePollerLike<OperationState<ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>, ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>>;
194
188
  /**
195
189
  * Send test notifications to a set of provided receivers
196
190
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -352,7 +346,24 @@ export declare interface ActionList {
352
346
  actionGroups?: ActionGroup[];
353
347
  }
354
348
 
355
- export declare type ActionUnion = Action | AlertingAction | LogToMetricAction;
349
+ /** Actions to invoke when the alert fires. */
350
+ export declare interface Actions {
351
+ /** Action Group resource Ids to invoke when the alert fires. */
352
+ actionGroups?: string[];
353
+ /** The properties of an alert payload. */
354
+ customProperties?: {
355
+ [propertyName: string]: string;
356
+ };
357
+ }
358
+
359
+ /**
360
+ * Defines values for ActionType. \
361
+ * {@link KnownActionType} can be used interchangeably with ActionType,
362
+ * this enum contains the known values that the service supports.
363
+ * ### Known values supported by the service
364
+ * **Internal**
365
+ */
366
+ export declare type ActionType = string;
356
367
 
357
368
  /** An Activity Log Alert rule resource. */
358
369
  export declare interface ActivityLogAlertResource extends AzureResourceAutoGenerated {
@@ -522,20 +533,6 @@ export declare type AggregationType = "None" | "Average" | "Count" | "Minimum" |
522
533
  */
523
534
  export declare type AggregationTypeEnum = string;
524
535
 
525
- /** Specify action need to be taken when rule type is Alert */
526
- export declare interface AlertingAction extends Action {
527
- /** Polymorphic discriminator, which specifies the different types this object can be */
528
- odataType: "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction";
529
- /** Severity of the alert */
530
- severity: AlertSeverity;
531
- /** Azure action group reference. */
532
- aznsAction?: AzNsActionGroup;
533
- /** time (in minutes) for which Alerts should be throttled or suppressed. */
534
- throttlingInMin?: number;
535
- /** The trigger condition that results in the alert rule being. */
536
- trigger: TriggerCondition;
537
- }
538
-
539
536
  /** An Activity Log Alert rule condition that is met when all its member conditions are met. */
540
537
  export declare interface AlertRuleAllOfCondition {
541
538
  /** The list of Activity Log Alert rule conditions. */
@@ -776,7 +773,7 @@ export declare type AlertRulesUpdateResponse = AlertRuleResource;
776
773
  * **3** \
777
774
  * **4**
778
775
  */
779
- export declare type AlertSeverity = string;
776
+ export declare type AlertSeverity = number;
780
777
 
781
778
  /** An arm role receiver. */
782
779
  export declare interface ArmRoleReceiver {
@@ -999,16 +996,6 @@ export declare interface AutoscaleSettingsUpdateOptionalParams extends coreClien
999
996
  /** Contains response data for the update operation. */
1000
997
  export declare type AutoscaleSettingsUpdateResponse = AutoscaleSettingResource;
1001
998
 
1002
- /** Azure action group */
1003
- export declare interface AzNsActionGroup {
1004
- /** Azure Action Group reference. */
1005
- actionGroup?: string[];
1006
- /** Custom subject override for all email ids in Azure action group */
1007
- emailSubject?: string;
1008
- /** Custom payload to be sent for all webhook URI in Azure action group */
1009
- customWebhookPayload?: string;
1010
- }
1011
-
1012
999
  /** The Azure mobile App push notification receiver. */
1013
1000
  export declare interface AzureAppPushReceiver {
1014
1001
  /** The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group. */
@@ -1069,6 +1056,191 @@ export declare interface AzureMonitorPrivateLinkScopeListResult {
1069
1056
  nextLink?: string;
1070
1057
  }
1071
1058
 
1059
+ /** Properties of an Azure Monitor workspace */
1060
+ export declare interface AzureMonitorWorkspace {
1061
+ /**
1062
+ * The immutable ID of the Azure Monitor workspace. This property is read-only.
1063
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1064
+ */
1065
+ readonly accountId?: string;
1066
+ /**
1067
+ * Information about metrics for the Azure Monitor workspace
1068
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1069
+ */
1070
+ readonly metrics?: AzureMonitorWorkspaceMetrics;
1071
+ /**
1072
+ * The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
1073
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1074
+ */
1075
+ readonly provisioningState?: ProvisioningState;
1076
+ /**
1077
+ * The Data Collection Rule and Endpoint used for ingestion by default.
1078
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1079
+ */
1080
+ readonly defaultIngestionSettings?: AzureMonitorWorkspaceDefaultIngestionSettings;
1081
+ }
1082
+
1083
+ /** The Data Collection Rule and Endpoint used for ingestion by default. */
1084
+ export declare interface AzureMonitorWorkspaceDefaultIngestionSettings extends IngestionSettings {
1085
+ }
1086
+
1087
+ /** Information about metrics for the Azure Monitor workspace */
1088
+ export declare interface AzureMonitorWorkspaceMetrics extends Metrics {
1089
+ }
1090
+
1091
+ /** An Azure Monitor Workspace definition */
1092
+ export declare interface AzureMonitorWorkspaceResource extends TrackedResourceAutoGenerated {
1093
+ /**
1094
+ * Resource entity tag (ETag)
1095
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1096
+ */
1097
+ readonly etag?: string;
1098
+ /**
1099
+ * The immutable ID of the Azure Monitor workspace. This property is read-only.
1100
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1101
+ */
1102
+ readonly accountId?: string;
1103
+ /**
1104
+ * Information about metrics for the Azure Monitor workspace
1105
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1106
+ */
1107
+ readonly metrics?: AzureMonitorWorkspaceMetrics;
1108
+ /**
1109
+ * The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.
1110
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1111
+ */
1112
+ readonly provisioningState?: ProvisioningState;
1113
+ /**
1114
+ * The Data Collection Rule and Endpoint used for ingestion by default.
1115
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1116
+ */
1117
+ readonly defaultIngestionSettings?: AzureMonitorWorkspaceDefaultIngestionSettings;
1118
+ }
1119
+
1120
+ /** Definition of ARM tracked top level resource properties for update operation */
1121
+ export declare interface AzureMonitorWorkspaceResourceForUpdate {
1122
+ /** Resource tags */
1123
+ tags?: {
1124
+ [propertyName: string]: string;
1125
+ };
1126
+ }
1127
+
1128
+ /** A pageable list of resources */
1129
+ export declare interface AzureMonitorWorkspaceResourceListResult {
1130
+ /** A list of resources */
1131
+ value: AzureMonitorWorkspaceResource[];
1132
+ /** The URL to use for getting the next set of results */
1133
+ nextLink?: string;
1134
+ }
1135
+
1136
+ /** Resource properties */
1137
+ export declare interface AzureMonitorWorkspaceResourceProperties extends AzureMonitorWorkspace {
1138
+ }
1139
+
1140
+ /** Interface representing a AzureMonitorWorkspaces. */
1141
+ export declare interface AzureMonitorWorkspaces {
1142
+ /**
1143
+ * Lists all workspaces in the specified resource group
1144
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1145
+ * @param options The options parameters.
1146
+ */
1147
+ listByResourceGroup(resourceGroupName: string, options?: AzureMonitorWorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AzureMonitorWorkspaceResource>;
1148
+ /**
1149
+ * Lists all workspaces in the specified subscription
1150
+ * @param options The options parameters.
1151
+ */
1152
+ listBySubscription(options?: AzureMonitorWorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AzureMonitorWorkspaceResource>;
1153
+ /**
1154
+ * Returns the specific Azure Monitor workspace
1155
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1156
+ * @param azureMonitorWorkspaceName The name of the Azure Monitor workspace. The name is case
1157
+ * insensitive
1158
+ * @param options The options parameters.
1159
+ */
1160
+ get(resourceGroupName: string, azureMonitorWorkspaceName: string, options?: AzureMonitorWorkspacesGetOptionalParams): Promise<AzureMonitorWorkspacesGetResponse>;
1161
+ /**
1162
+ * Create or update a workspace
1163
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1164
+ * @param azureMonitorWorkspaceName The name of the Azure Monitor workspace. The name is case
1165
+ * insensitive
1166
+ * @param azureMonitorWorkspaceProperties Properties that need to be specified to create a new
1167
+ * workspace
1168
+ * @param options The options parameters.
1169
+ */
1170
+ create(resourceGroupName: string, azureMonitorWorkspaceName: string, azureMonitorWorkspaceProperties: AzureMonitorWorkspaceResource, options?: AzureMonitorWorkspacesCreateOptionalParams): Promise<AzureMonitorWorkspacesCreateResponse>;
1171
+ /**
1172
+ * Updates part of a workspace
1173
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1174
+ * @param azureMonitorWorkspaceName The name of the Azure Monitor workspace. The name is case
1175
+ * insensitive
1176
+ * @param options The options parameters.
1177
+ */
1178
+ update(resourceGroupName: string, azureMonitorWorkspaceName: string, options?: AzureMonitorWorkspacesUpdateOptionalParams): Promise<AzureMonitorWorkspacesUpdateResponse>;
1179
+ /**
1180
+ * Delete a workspace
1181
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1182
+ * @param azureMonitorWorkspaceName The name of the Azure Monitor workspace. The name is case
1183
+ * insensitive
1184
+ * @param options The options parameters.
1185
+ */
1186
+ delete(resourceGroupName: string, azureMonitorWorkspaceName: string, options?: AzureMonitorWorkspacesDeleteOptionalParams): Promise<void>;
1187
+ }
1188
+
1189
+ /** Optional parameters. */
1190
+ export declare interface AzureMonitorWorkspacesCreateOptionalParams extends coreClient.OperationOptions {
1191
+ }
1192
+
1193
+ /** Contains response data for the create operation. */
1194
+ export declare type AzureMonitorWorkspacesCreateResponse = AzureMonitorWorkspaceResource;
1195
+
1196
+ /** Optional parameters. */
1197
+ export declare interface AzureMonitorWorkspacesDeleteOptionalParams extends coreClient.OperationOptions {
1198
+ }
1199
+
1200
+ /** Optional parameters. */
1201
+ export declare interface AzureMonitorWorkspacesGetOptionalParams extends coreClient.OperationOptions {
1202
+ }
1203
+
1204
+ /** Contains response data for the get operation. */
1205
+ export declare type AzureMonitorWorkspacesGetResponse = AzureMonitorWorkspaceResource;
1206
+
1207
+ /** Optional parameters. */
1208
+ export declare interface AzureMonitorWorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
1209
+ }
1210
+
1211
+ /** Contains response data for the listByResourceGroupNext operation. */
1212
+ export declare type AzureMonitorWorkspacesListByResourceGroupNextResponse = AzureMonitorWorkspaceResourceListResult;
1213
+
1214
+ /** Optional parameters. */
1215
+ export declare interface AzureMonitorWorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
1216
+ }
1217
+
1218
+ /** Contains response data for the listByResourceGroup operation. */
1219
+ export declare type AzureMonitorWorkspacesListByResourceGroupResponse = AzureMonitorWorkspaceResourceListResult;
1220
+
1221
+ /** Optional parameters. */
1222
+ export declare interface AzureMonitorWorkspacesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
1223
+ }
1224
+
1225
+ /** Contains response data for the listBySubscriptionNext operation. */
1226
+ export declare type AzureMonitorWorkspacesListBySubscriptionNextResponse = AzureMonitorWorkspaceResourceListResult;
1227
+
1228
+ /** Optional parameters. */
1229
+ export declare interface AzureMonitorWorkspacesListBySubscriptionOptionalParams extends coreClient.OperationOptions {
1230
+ }
1231
+
1232
+ /** Contains response data for the listBySubscription operation. */
1233
+ export declare type AzureMonitorWorkspacesListBySubscriptionResponse = AzureMonitorWorkspaceResourceListResult;
1234
+
1235
+ /** Optional parameters. */
1236
+ export declare interface AzureMonitorWorkspacesUpdateOptionalParams extends coreClient.OperationOptions {
1237
+ /** The payload */
1238
+ azureMonitorWorkspaceProperties?: AzureMonitorWorkspaceResourceForUpdate;
1239
+ }
1240
+
1241
+ /** Contains response data for the update operation. */
1242
+ export declare type AzureMonitorWorkspacesUpdateResponse = AzureMonitorWorkspaceResource;
1243
+
1072
1244
  /** An azure resource object */
1073
1245
  export declare interface AzureResource {
1074
1246
  /**
@@ -1192,21 +1364,38 @@ export declare interface ColumnDefinition {
1192
1364
  /** Defines values for ComparisonOperationType. */
1193
1365
  export declare type ComparisonOperationType = "Equals" | "NotEquals" | "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual";
1194
1366
 
1195
- /**
1196
- * Defines values for ConditionalOperator. \
1197
- * {@link KnownConditionalOperator} can be used interchangeably with ConditionalOperator,
1198
- * this enum contains the known values that the service supports.
1199
- * ### Known values supported by the service
1200
- * **GreaterThanOrEqual** \
1201
- * **LessThanOrEqual** \
1202
- * **GreaterThan** \
1203
- * **LessThan** \
1204
- * **Equal**
1205
- */
1206
- export declare type ConditionalOperator = string;
1367
+ /** A condition of the scheduled query rule. */
1368
+ export declare interface Condition {
1369
+ /** Log query alert */
1370
+ query?: string;
1371
+ /** Aggregation type. Relevant and required only for rules of the kind LogAlert. */
1372
+ timeAggregation?: TimeAggregation;
1373
+ /** The column containing the metric measure number. Relevant only for rules of the kind LogAlert. */
1374
+ metricMeasureColumn?: string;
1375
+ /** The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert. */
1376
+ resourceIdColumn?: string;
1377
+ /** List of Dimensions conditions */
1378
+ dimensions?: Dimension[];
1379
+ /** The criteria operator. Relevant and required only for rules of the kind LogAlert. */
1380
+ operator?: ConditionOperator;
1381
+ /** the criteria threshold value that activates the alert. Relevant and required only for rules of the kind LogAlert. */
1382
+ threshold?: number;
1383
+ /** The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert. */
1384
+ failingPeriods?: ConditionFailingPeriods;
1385
+ /** The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric. */
1386
+ metricName?: string;
1387
+ }
1388
+
1389
+ /** The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert. */
1390
+ export declare interface ConditionFailingPeriods {
1391
+ /** The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1 */
1392
+ numberOfEvaluationPeriods?: number;
1393
+ /** The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1 */
1394
+ minFailingPeriodsToAlert?: number;
1395
+ }
1207
1396
 
1208
1397
  /** Defines values for ConditionOperator. */
1209
- export declare type ConditionOperator = "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual";
1398
+ export declare type ConditionOperator = "GreaterThan" | "GreaterThanOrEqual" | "LessThan" | "LessThanOrEqual" | "Equals";
1210
1399
 
1211
1400
  /** Definition of the endpoint used for accessing configuration. */
1212
1401
  export declare interface ConfigurationAccessEndpointSpec {
@@ -1237,14 +1426,6 @@ export declare interface Context {
1237
1426
  */
1238
1427
  export declare type CreatedByType = string;
1239
1428
 
1240
- /** Specifies the criteria for converting log to metric. */
1241
- export declare interface Criteria {
1242
- /** Name of the metric */
1243
- metricName: string;
1244
- /** List of Dimensions for creating metric */
1245
- dimensions?: Dimension[];
1246
- }
1247
-
1248
1429
  /**
1249
1430
  * Defines values for CriterionType. \
1250
1431
  * {@link KnownCriterionType} can be used interchangeably with CriterionType,
@@ -2089,16 +2270,26 @@ export declare interface DiagnosticSettingsResourceCollection {
2089
2270
  value?: DiagnosticSettingsResource[];
2090
2271
  }
2091
2272
 
2092
- /** Specifies the criteria for converting log to metric. */
2273
+ /** Dimension splitting and filtering definition */
2093
2274
  export declare interface Dimension {
2094
2275
  /** Name of the dimension */
2095
2276
  name: string;
2096
2277
  /** Operator for dimension values */
2097
- operator: Operator;
2278
+ operator: DimensionOperator;
2098
2279
  /** List of dimension values */
2099
2280
  values: string[];
2100
2281
  }
2101
2282
 
2283
+ /**
2284
+ * Defines values for DimensionOperator. \
2285
+ * {@link KnownDimensionOperator} can be used interchangeably with DimensionOperator,
2286
+ * this enum contains the known values that the service supports.
2287
+ * ### Known values supported by the service
2288
+ * **Include** \
2289
+ * **Exclude**
2290
+ */
2291
+ export declare type DimensionOperator = string;
2292
+
2102
2293
  /** Criterion for dynamic threshold. */
2103
2294
  export declare interface DynamicMetricCriteria extends MultiMetricCriteria {
2104
2295
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -2168,16 +2359,6 @@ export declare interface EmailReceiver {
2168
2359
  readonly status?: ReceiverStatus;
2169
2360
  }
2170
2361
 
2171
- /**
2172
- * Defines values for Enabled. \
2173
- * {@link KnownEnabled} can be used interchangeably with Enabled,
2174
- * this enum contains the known values that the service supports.
2175
- * ### Known values supported by the service
2176
- * **true** \
2177
- * **false**
2178
- */
2179
- export declare type Enabled = string;
2180
-
2181
2362
  /** Describes a receiver that should be resubscribed. */
2182
2363
  export declare interface EnableRequest {
2183
2364
  /** The name of the receiver to resubscribe. */
@@ -2201,7 +2382,7 @@ export declare interface ErrorAdditionalInfo {
2201
2382
  /** Describes the format of Error response. */
2202
2383
  export declare interface ErrorContract {
2203
2384
  /** The error details. */
2204
- error?: ErrorResponse;
2385
+ error?: ErrorResponseDetails;
2205
2386
  }
2206
2387
 
2207
2388
  /** The error detail. */
@@ -2233,6 +2414,35 @@ export declare interface ErrorDetail {
2233
2414
  readonly additionalInfo?: ErrorAdditionalInfo[];
2234
2415
  }
2235
2416
 
2417
+ /** The error detail. */
2418
+ export declare interface ErrorDetailAutoGenerated {
2419
+ /**
2420
+ * The error code.
2421
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2422
+ */
2423
+ readonly code?: string;
2424
+ /**
2425
+ * The error message.
2426
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2427
+ */
2428
+ readonly message?: string;
2429
+ /**
2430
+ * The error target.
2431
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2432
+ */
2433
+ readonly target?: string;
2434
+ /**
2435
+ * The error details.
2436
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2437
+ */
2438
+ readonly details?: ErrorDetailAutoGenerated[];
2439
+ /**
2440
+ * The error additional info.
2441
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2442
+ */
2443
+ readonly additionalInfo?: ErrorAdditionalInfo[];
2444
+ }
2445
+
2236
2446
  /** Error details. */
2237
2447
  export declare interface ErrorModel {
2238
2448
  /** Error code identifying the specific error. */
@@ -2249,6 +2459,20 @@ export declare interface ErrorResponse {
2249
2459
  message?: string;
2250
2460
  }
2251
2461
 
2462
+ /** The resource management error additional info. */
2463
+ export declare interface ErrorResponseAdditionalInfo {
2464
+ /**
2465
+ * The additional info type.
2466
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2467
+ */
2468
+ readonly type?: string;
2469
+ /**
2470
+ * The additional info.
2471
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2472
+ */
2473
+ readonly info?: Record<string, unknown>;
2474
+ }
2475
+
2252
2476
  /** The error response. */
2253
2477
  export declare interface ErrorResponseAutoGenerated {
2254
2478
  /**
@@ -2263,12 +2487,47 @@ export declare interface ErrorResponseAutoGenerated {
2263
2487
  readonly message?: string;
2264
2488
  }
2265
2489
 
2490
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
2491
+ export declare interface ErrorResponseAutoGenerated2 {
2492
+ /** The error object. */
2493
+ error?: ErrorDetailAutoGenerated;
2494
+ }
2495
+
2266
2496
  /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
2267
2497
  export declare interface ErrorResponseCommonV2 {
2268
2498
  /** The error object. */
2269
2499
  error?: ErrorDetail;
2270
2500
  }
2271
2501
 
2502
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */
2503
+ export declare interface ErrorResponseDetails {
2504
+ /**
2505
+ * The error code.
2506
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2507
+ */
2508
+ readonly code?: string;
2509
+ /**
2510
+ * The error message.
2511
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2512
+ */
2513
+ readonly message?: string;
2514
+ /**
2515
+ * The error target.
2516
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2517
+ */
2518
+ readonly target?: string;
2519
+ /**
2520
+ * The error details.
2521
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2522
+ */
2523
+ readonly details?: ErrorResponseDetails[];
2524
+ /**
2525
+ * The error additional info.
2526
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2527
+ */
2528
+ readonly additionalInfo?: ErrorResponseAdditionalInfo[];
2529
+ }
2530
+
2272
2531
  /** Interface representing a EventCategories. */
2273
2532
  export declare interface EventCategories {
2274
2533
  /**
@@ -2491,6 +2750,29 @@ export declare interface HttpRequestInfo {
2491
2750
  uri?: string;
2492
2751
  }
2493
2752
 
2753
+ /** Identity for the resource. */
2754
+ export declare interface Identity {
2755
+ /**
2756
+ * The principal ID of resource identity.
2757
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2758
+ */
2759
+ readonly principalId?: string;
2760
+ /**
2761
+ * The tenant ID of resource.
2762
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2763
+ */
2764
+ readonly tenantId?: string;
2765
+ /** Type of managed service identity. */
2766
+ type: IdentityType;
2767
+ /** The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */
2768
+ userAssignedIdentities?: {
2769
+ [propertyName: string]: UserIdentityProperties;
2770
+ };
2771
+ }
2772
+
2773
+ /** Defines values for IdentityType. */
2774
+ export declare type IdentityType = "SystemAssigned" | "UserAssigned" | "None";
2775
+
2494
2776
  /** Enables IIS logs to be collected by this data collection rule. */
2495
2777
  export declare interface IisLogsDataSource {
2496
2778
  /** IIS streams */
@@ -2539,6 +2821,20 @@ export declare interface IncidentListResult {
2539
2821
  value?: Incident[];
2540
2822
  }
2541
2823
 
2824
+ /** Settings for data ingestion */
2825
+ export declare interface IngestionSettings {
2826
+ /**
2827
+ * The Azure resource Id of the default data collection rule for this workspace.
2828
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2829
+ */
2830
+ readonly dataCollectionRuleResourceId?: string;
2831
+ /**
2832
+ * The Azure resource Id of the default data collection endpoint for this workspace.
2833
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2834
+ */
2835
+ readonly dataCollectionEndpointResourceId?: string;
2836
+ }
2837
+
2542
2838
  /** An Itsm receiver. */
2543
2839
  export declare interface ItsmReceiver {
2544
2840
  /** The name of the Itsm receiver. Names must be unique across all receivers within an action group. */
@@ -2553,6 +2849,16 @@ export declare interface ItsmReceiver {
2553
2849
  region: string;
2554
2850
  }
2555
2851
 
2852
+ /**
2853
+ * Defines values for Kind. \
2854
+ * {@link KnownKind} can be used interchangeably with Kind,
2855
+ * this enum contains the known values that the service supports.
2856
+ * ### Known values supported by the service
2857
+ * **LogAlert** \
2858
+ * **LogToMetric**
2859
+ */
2860
+ export declare type Kind = string;
2861
+
2556
2862
  /** Known values of {@link AccessMode} that the service accepts. */
2557
2863
  export declare enum KnownAccessMode {
2558
2864
  /** Open */
@@ -2561,6 +2867,12 @@ export declare enum KnownAccessMode {
2561
2867
  PrivateOnly = "PrivateOnly"
2562
2868
  }
2563
2869
 
2870
+ /** Known values of {@link ActionType} that the service accepts. */
2871
+ export declare enum KnownActionType {
2872
+ /** Internal */
2873
+ Internal = "Internal"
2874
+ }
2875
+
2564
2876
  /** Known values of {@link AggregationTypeEnum} that the service accepts. */
2565
2877
  export declare enum KnownAggregationTypeEnum {
2566
2878
  /** Average */
@@ -2578,15 +2890,15 @@ export declare enum KnownAggregationTypeEnum {
2578
2890
  /** Known values of {@link AlertSeverity} that the service accepts. */
2579
2891
  export declare enum KnownAlertSeverity {
2580
2892
  /** Zero */
2581
- Zero = "0",
2893
+ Zero = 0,
2582
2894
  /** One */
2583
- One = "1",
2895
+ One = 1,
2584
2896
  /** Two */
2585
- Two = "2",
2897
+ Two = 2,
2586
2898
  /** Three */
2587
- Three = "3",
2899
+ Three = 3,
2588
2900
  /** Four */
2589
- Four = "4"
2901
+ Four = 4
2590
2902
  }
2591
2903
 
2592
2904
  /** Known values of {@link BaselineSensitivity} that the service accepts. */
@@ -2622,20 +2934,6 @@ export declare enum KnownCategoryType {
2622
2934
  */
2623
2935
  export declare type KnownColumnDefinitionType = string;
2624
2936
 
2625
- /** Known values of {@link ConditionalOperator} that the service accepts. */
2626
- export declare enum KnownConditionalOperator {
2627
- /** GreaterThanOrEqual */
2628
- GreaterThanOrEqual = "GreaterThanOrEqual",
2629
- /** LessThanOrEqual */
2630
- LessThanOrEqual = "LessThanOrEqual",
2631
- /** GreaterThan */
2632
- GreaterThan = "GreaterThan",
2633
- /** LessThan */
2634
- LessThan = "LessThan",
2635
- /** Equal */
2636
- Equal = "Equal"
2637
- }
2638
-
2639
2937
  /** Known values of {@link CreatedByType} that the service accepts. */
2640
2938
  export declare enum KnownCreatedByType {
2641
2939
  /** User */
@@ -2736,6 +3034,14 @@ export declare enum KnownDataStatus {
2736
3034
  NotPresent = "notPresent"
2737
3035
  }
2738
3036
 
3037
+ /** Known values of {@link DimensionOperator} that the service accepts. */
3038
+ export declare enum KnownDimensionOperator {
3039
+ /** Include */
3040
+ Include = "Include",
3041
+ /** Exclude */
3042
+ Exclude = "Exclude"
3043
+ }
3044
+
2739
3045
  /** Known values of {@link DynamicThresholdOperator} that the service accepts. */
2740
3046
  export declare enum KnownDynamicThresholdOperator {
2741
3047
  /** GreaterThan */
@@ -2756,14 +3062,6 @@ export declare enum KnownDynamicThresholdSensitivity {
2756
3062
  High = "High"
2757
3063
  }
2758
3064
 
2759
- /** Known values of {@link Enabled} that the service accepts. */
2760
- export declare enum KnownEnabled {
2761
- /** True */
2762
- True = "true",
2763
- /** False */
2764
- False = "false"
2765
- }
2766
-
2767
3065
  /**
2768
3066
  * Defines values for KnownExtensionDataSourceStreams. \
2769
3067
  * {@link KnownKnownExtensionDataSourceStreams} can be used interchangeably with KnownExtensionDataSourceStreams,
@@ -2777,6 +3075,14 @@ export declare enum KnownEnabled {
2777
3075
  */
2778
3076
  export declare type KnownExtensionDataSourceStreams = string;
2779
3077
 
3078
+ /** Known values of {@link Kind} that the service accepts. */
3079
+ export declare enum KnownKind {
3080
+ /** LogAlert */
3081
+ LogAlert = "LogAlert",
3082
+ /** LogToMetric */
3083
+ LogToMetric = "LogToMetric"
3084
+ }
3085
+
2780
3086
  /** Known values of {@link KnownColumnDefinitionType} that the service accepts. */
2781
3087
  export declare enum KnownKnownColumnDefinitionType {
2782
3088
  /** String */
@@ -3047,14 +3353,6 @@ export declare enum KnownMetricClass {
3047
3353
  Saturation = "Saturation"
3048
3354
  }
3049
3355
 
3050
- /** Known values of {@link MetricTriggerType} that the service accepts. */
3051
- export declare enum KnownMetricTriggerType {
3052
- /** Consecutive */
3053
- Consecutive = "Consecutive",
3054
- /** Total */
3055
- Total = "Total"
3056
- }
3057
-
3058
3356
  /** Known values of {@link MetricUnit} that the service accepts. */
3059
3357
  export declare enum KnownMetricUnit {
3060
3358
  /** Count */
@@ -3126,9 +3424,17 @@ export declare enum KnownOperator {
3126
3424
  /** LessThan */
3127
3425
  LessThan = "LessThan",
3128
3426
  /** LessThanOrEqual */
3129
- LessThanOrEqual = "LessThanOrEqual",
3130
- /** Include */
3131
- Include = "Include"
3427
+ LessThanOrEqual = "LessThanOrEqual"
3428
+ }
3429
+
3430
+ /** Known values of {@link Origin} that the service accepts. */
3431
+ export declare enum KnownOrigin {
3432
+ /** User */
3433
+ User = "user",
3434
+ /** System */
3435
+ System = "system",
3436
+ /** UserSystem */
3437
+ UserSystem = "user,system"
3132
3438
  }
3133
3439
 
3134
3440
  /**
@@ -3165,14 +3471,26 @@ export declare enum KnownPrivateEndpointServiceConnectionStatus {
3165
3471
 
3166
3472
  /** Known values of {@link ProvisioningState} that the service accepts. */
3167
3473
  export declare enum KnownProvisioningState {
3474
+ /** Creating */
3475
+ Creating = "Creating",
3168
3476
  /** Succeeded */
3169
3477
  Succeeded = "Succeeded",
3170
- /** Deploying */
3171
- Deploying = "Deploying",
3172
- /** Canceled */
3173
- Canceled = "Canceled",
3478
+ /** Deleting */
3479
+ Deleting = "Deleting",
3174
3480
  /** Failed */
3175
- Failed = "Failed"
3481
+ Failed = "Failed",
3482
+ /** Canceled */
3483
+ Canceled = "Canceled"
3484
+ }
3485
+
3486
+ /** Known values of {@link PublicNetworkAccess} that the service accepts. */
3487
+ export declare enum KnownPublicNetworkAccess {
3488
+ /** Enabled */
3489
+ Enabled = "Enabled",
3490
+ /** Disabled */
3491
+ Disabled = "Disabled",
3492
+ /** SecuredByPerimeter */
3493
+ SecuredByPerimeter = "SecuredByPerimeter"
3176
3494
  }
3177
3495
 
3178
3496
  /**
@@ -3185,12 +3503,6 @@ export declare enum KnownProvisioningState {
3185
3503
  */
3186
3504
  export declare type KnownPublicNetworkAccessOptions = string;
3187
3505
 
3188
- /** Known values of {@link QueryType} that the service accepts. */
3189
- export declare enum KnownQueryType {
3190
- /** ResultCount */
3191
- ResultCount = "ResultCount"
3192
- }
3193
-
3194
3506
  /** Known values of {@link ScaleRuleMetricDimensionOperationType} that the service accepts. */
3195
3507
  export declare enum KnownScaleRuleMetricDimensionOperationType {
3196
3508
  /** Equals */
@@ -3254,6 +3566,20 @@ export declare type KnownSyslogDataSourceLogLevels = string;
3254
3566
  */
3255
3567
  export declare type KnownSyslogDataSourceStreams = string;
3256
3568
 
3569
+ /** Known values of {@link TimeAggregation} that the service accepts. */
3570
+ export declare enum KnownTimeAggregation {
3571
+ /** Count */
3572
+ Count = "Count",
3573
+ /** Average */
3574
+ Average = "Average",
3575
+ /** Minimum */
3576
+ Minimum = "Minimum",
3577
+ /** Maximum */
3578
+ Maximum = "Maximum",
3579
+ /** Total */
3580
+ Total = "Total"
3581
+ }
3582
+
3257
3583
  /**
3258
3584
  * Defines values for KnownWindowsEventLogDataSourceStreams. \
3259
3585
  * {@link KnownKnownWindowsEventLogDataSourceStreams} can be used interchangeably with KnownWindowsEventLogDataSourceStreams,
@@ -3350,18 +3676,6 @@ export declare interface LogicAppReceiver {
3350
3676
  useCommonAlertSchema?: boolean;
3351
3677
  }
3352
3678
 
3353
- /** A log metrics trigger descriptor. */
3354
- export declare interface LogMetricTrigger {
3355
- /** Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'. */
3356
- thresholdOperator?: ConditionalOperator;
3357
- /** The threshold of the metric trigger. */
3358
- threshold?: number;
3359
- /** Metric Trigger Type - 'Consecutive' or 'Total' */
3360
- metricTriggerType?: MetricTriggerType;
3361
- /** Evaluation of metric on a particular column */
3362
- metricColumn?: string;
3363
- }
3364
-
3365
3679
  /** Represents a collection of log profiles. */
3366
3680
  export declare interface LogProfileCollection {
3367
3681
  /** the values of the log profiles. */
@@ -3467,60 +3781,6 @@ export declare interface LogProfilesUpdateOptionalParams extends coreClient.Oper
3467
3781
  /** Contains response data for the update operation. */
3468
3782
  export declare type LogProfilesUpdateResponse = LogProfileResource;
3469
3783
 
3470
- /** The Log Search Rule resource. */
3471
- export declare interface LogSearchRuleResource extends ResourceAutoGenerated5 {
3472
- /**
3473
- * The api-version used when creating this alert rule
3474
- * NOTE: This property will not be serialized. It can only be populated by the server.
3475
- */
3476
- readonly createdWithApiVersion?: string;
3477
- /**
3478
- * True if alert rule is legacy Log Analytic rule
3479
- * NOTE: This property will not be serialized. It can only be populated by the server.
3480
- */
3481
- readonly isLegacyLogAnalyticsRule?: boolean;
3482
- /** The description of the Log Search rule. */
3483
- description?: string;
3484
- /** The display name of the alert rule */
3485
- displayName?: string;
3486
- /** The flag that indicates whether the alert should be automatically resolved or not. The default is false. */
3487
- autoMitigate?: boolean;
3488
- /** The flag which indicates whether the Log Search rule is enabled. Value should be true or false */
3489
- enabled?: Enabled;
3490
- /**
3491
- * Last time the rule was updated in IS08601 format.
3492
- * NOTE: This property will not be serialized. It can only be populated by the server.
3493
- */
3494
- readonly lastUpdatedTime?: Date;
3495
- /**
3496
- * Provisioning state of the scheduled query rule
3497
- * NOTE: This property will not be serialized. It can only be populated by the server.
3498
- */
3499
- readonly provisioningState?: ProvisioningState;
3500
- /** Data Source against which rule will Query Data */
3501
- source: Source;
3502
- /** Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction */
3503
- schedule?: Schedule;
3504
- /** Action needs to be taken on rule execution. */
3505
- action: ActionUnion;
3506
- }
3507
-
3508
- /** Represents a collection of Log Search rule resources. */
3509
- export declare interface LogSearchRuleResourceCollection {
3510
- /** The values for the Log Search Rule resources. */
3511
- value?: LogSearchRuleResource[];
3512
- }
3513
-
3514
- /** The log search rule resource for patch operations. */
3515
- export declare interface LogSearchRuleResourcePatch {
3516
- /** Resource tags */
3517
- tags?: {
3518
- [propertyName: string]: string;
3519
- };
3520
- /** The flag which indicates whether the Log Search rule is enabled. Value should be true or false */
3521
- enabled?: Enabled;
3522
- }
3523
-
3524
3784
  /** Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log. */
3525
3785
  export declare interface LogSettings {
3526
3786
  /** Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation. */
@@ -3542,14 +3802,6 @@ export declare interface LogsIngestionEndpointSpec {
3542
3802
  readonly endpoint?: string;
3543
3803
  }
3544
3804
 
3545
- /** Specify action need to be taken when rule type is converting log to metric */
3546
- export declare interface LogToMetricAction extends Action {
3547
- /** Polymorphic discriminator, which specifies the different types this object can be */
3548
- odataType: "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction";
3549
- /** Criteria of Metric */
3550
- criteria: Criteria[];
3551
- }
3552
-
3553
3805
  /** How the data that is collected should be combined over time. */
3554
3806
  export declare interface ManagementEventAggregationCondition {
3555
3807
  /** the condition operator. */
@@ -4017,14 +4269,18 @@ export declare interface MetricNamespacesListOptionalParams extends coreClient.O
4017
4269
  /** Contains response data for the list operation. */
4018
4270
  export declare type MetricNamespacesListResponse = MetricNamespaceCollection;
4019
4271
 
4020
- /** Interface representing a Metrics. */
4272
+ /** Information about metrics for the workspace */
4021
4273
  export declare interface Metrics {
4022
4274
  /**
4023
- * **Lists the metric values for a resource**.
4024
- * @param resourceUri The identifier of the resource.
4025
- * @param options The options parameters.
4275
+ * The Prometheus query endpoint for the workspace
4276
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4026
4277
  */
4027
- list(resourceUri: string, options?: MetricsListOptionalParams): Promise<MetricsListResponse>;
4278
+ readonly prometheusQueryEndpoint?: string;
4279
+ /**
4280
+ * An internal identifier for the metrics container. Only to be used by the system
4281
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4282
+ */
4283
+ readonly internalId?: string;
4028
4284
  }
4029
4285
 
4030
4286
  /** Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric. */
@@ -4080,6 +4336,16 @@ export declare interface MetricsListOptionalParams extends coreClient.OperationO
4080
4336
  /** Contains response data for the list operation. */
4081
4337
  export declare type MetricsListResponse = Response_2;
4082
4338
 
4339
+ /** Interface representing a MetricsOperations. */
4340
+ export declare interface MetricsOperations {
4341
+ /**
4342
+ * **Lists the metric values for a resource**.
4343
+ * @param resourceUri The identifier of the resource.
4344
+ * @param options The options parameters.
4345
+ */
4346
+ list(resourceUri: string, options?: MetricsListOptionalParams): Promise<MetricsListResponse>;
4347
+ }
4348
+
4083
4349
  /** Defines values for MetricStatisticType. */
4084
4350
  export declare type MetricStatisticType = "Average" | "Min" | "Max" | "Sum" | "Count";
4085
4351
 
@@ -4111,16 +4377,6 @@ export declare interface MetricTrigger {
4111
4377
  dividePerInstance?: boolean;
4112
4378
  }
4113
4379
 
4114
- /**
4115
- * Defines values for MetricTriggerType. \
4116
- * {@link KnownMetricTriggerType} can be used interchangeably with MetricTriggerType,
4117
- * this enum contains the known values that the service supports.
4118
- * ### Known values supported by the service
4119
- * **Consecutive** \
4120
- * **Total**
4121
- */
4122
- export declare type MetricTriggerType = string;
4123
-
4124
4380
  /**
4125
4381
  * Defines values for MetricUnit. \
4126
4382
  * {@link KnownMetricUnit} can be used interchangeably with MetricUnit,
@@ -4181,7 +4437,7 @@ export declare class MonitorClient extends coreClient.ServiceClient {
4181
4437
  eventCategories: EventCategories;
4182
4438
  tenantActivityLogs: TenantActivityLogs;
4183
4439
  metricDefinitions: MetricDefinitions;
4184
- metrics: Metrics;
4440
+ metricsOperations: MetricsOperations;
4185
4441
  baselines: Baselines;
4186
4442
  metricAlerts: MetricAlerts;
4187
4443
  metricAlertsStatus: MetricAlertsStatus;
@@ -4197,6 +4453,8 @@ export declare class MonitorClient extends coreClient.ServiceClient {
4197
4453
  dataCollectionEndpoints: DataCollectionEndpoints;
4198
4454
  dataCollectionRuleAssociations: DataCollectionRuleAssociations;
4199
4455
  dataCollectionRules: DataCollectionRules;
4456
+ azureMonitorWorkspaces: AzureMonitorWorkspaces;
4457
+ monitorOperations: MonitorOperations;
4200
4458
  }
4201
4459
 
4202
4460
  /** Optional parameters. */
@@ -4207,6 +4465,29 @@ export declare interface MonitorClientOptionalParams extends coreClient.ServiceC
4207
4465
  endpoint?: string;
4208
4466
  }
4209
4467
 
4468
+ /** Interface representing a MonitorOperations. */
4469
+ export declare interface MonitorOperations {
4470
+ /**
4471
+ * Lists available Operations for this Resource Provider
4472
+ * @param options The options parameters.
4473
+ */
4474
+ list(options?: MonitorOperationsListOptionalParams): PagedAsyncIterableIterator<OperationAutoGenerated>;
4475
+ }
4476
+
4477
+ /** Optional parameters. */
4478
+ export declare interface MonitorOperationsListNextOptionalParams extends coreClient.OperationOptions {
4479
+ }
4480
+
4481
+ /** Contains response data for the listNext operation. */
4482
+ export declare type MonitorOperationsListNextResponse = OperationListResultAutoGenerated;
4483
+
4484
+ /** Optional parameters. */
4485
+ export declare interface MonitorOperationsListOptionalParams extends coreClient.OperationOptions {
4486
+ }
4487
+
4488
+ /** Contains response data for the list operation. */
4489
+ export declare type MonitorOperationsListResponse = OperationListResultAutoGenerated;
4490
+
4210
4491
  /** The types of conditions for a multi resource alert. */
4211
4492
  export declare interface MultiMetricCriteria {
4212
4493
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -4248,7 +4529,7 @@ export declare interface NetworkRuleSet {
4248
4529
 
4249
4530
  /** The request body which contain contact detail metadata */
4250
4531
  export declare interface NotificationRequestBody {
4251
- /** The name of the supported alert type. */
4532
+ /** The value of the supported alert type. Supported alert type values are: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, actualcostbudget, forecastedbudget */
4252
4533
  alertType: string;
4253
4534
  /** The list of email receivers that are part of this action group. */
4254
4535
  emailReceivers?: EmailReceiver[];
@@ -4304,6 +4585,32 @@ export declare interface Operation {
4304
4585
  display?: OperationDisplay;
4305
4586
  }
4306
4587
 
4588
+ /** Details of a REST API operation, returned from the Resource Provider Operations API */
4589
+ export declare interface OperationAutoGenerated {
4590
+ /**
4591
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
4592
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4593
+ */
4594
+ readonly name?: string;
4595
+ /**
4596
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
4597
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4598
+ */
4599
+ readonly isDataAction?: boolean;
4600
+ /** Localized display information for this particular operation. */
4601
+ display?: OperationDisplayAutoGenerated;
4602
+ /**
4603
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
4604
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4605
+ */
4606
+ readonly origin?: Origin;
4607
+ /**
4608
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
4609
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4610
+ */
4611
+ readonly actionType?: ActionType;
4612
+ }
4613
+
4307
4614
  /** Display metadata associated with the operation. */
4308
4615
  export declare interface OperationDisplay {
4309
4616
  /** Service provider: Microsoft.Insights */
@@ -4314,6 +4621,30 @@ export declare interface OperationDisplay {
4314
4621
  operation?: string;
4315
4622
  }
4316
4623
 
4624
+ /** Localized display information for this particular operation. */
4625
+ export declare interface OperationDisplayAutoGenerated {
4626
+ /**
4627
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
4628
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4629
+ */
4630
+ readonly provider?: string;
4631
+ /**
4632
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
4633
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4634
+ */
4635
+ readonly resource?: string;
4636
+ /**
4637
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
4638
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4639
+ */
4640
+ readonly operation?: string;
4641
+ /**
4642
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
4643
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4644
+ */
4645
+ readonly description?: string;
4646
+ }
4647
+
4317
4648
  /** Result of the request to list Microsoft.Insights operations. It contains a list of operations and a URL link to get the next set of results. */
4318
4649
  export declare interface OperationListResult {
4319
4650
  /** List of operations supported by the Microsoft.Insights provider. */
@@ -4322,6 +4653,20 @@ export declare interface OperationListResult {
4322
4653
  nextLink?: string;
4323
4654
  }
4324
4655
 
4656
+ /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
4657
+ export declare interface OperationListResultAutoGenerated {
4658
+ /**
4659
+ * List of operations supported by the resource provider
4660
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4661
+ */
4662
+ readonly value?: OperationAutoGenerated[];
4663
+ /**
4664
+ * URL to get the next set of operation list results (if there are any).
4665
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4666
+ */
4667
+ readonly nextLink?: string;
4668
+ }
4669
+
4325
4670
  /** Interface representing a Operations. */
4326
4671
  export declare interface Operations {
4327
4672
  /**
@@ -4363,11 +4708,21 @@ export declare interface OperationStatus {
4363
4708
  * **GreaterThan** \
4364
4709
  * **GreaterThanOrEqual** \
4365
4710
  * **LessThan** \
4366
- * **LessThanOrEqual** \
4367
- * **Include**
4711
+ * **LessThanOrEqual**
4368
4712
  */
4369
4713
  export declare type Operator = string;
4370
4714
 
4715
+ /**
4716
+ * Defines values for Origin. \
4717
+ * {@link KnownOrigin} can be used interchangeably with Origin,
4718
+ * this enum contains the known values that the service supports.
4719
+ * ### Known values supported by the service
4720
+ * **user** \
4721
+ * **system** \
4722
+ * **user,system**
4723
+ */
4724
+ export declare type Origin = string;
4725
+
4371
4726
  /**
4372
4727
  * Definition of which performance counters will be collected and how they will be collected by this data collection rule.
4373
4728
  * Collected from both Windows and Linux machines where the counter is present.
@@ -4510,7 +4865,7 @@ export declare interface PrivateEndpointConnections {
4510
4865
  * @param parameters The Private Endpoint Connection resource.
4511
4866
  * @param options The options parameters.
4512
4867
  */
4513
- beginCreateOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>, PrivateEndpointConnectionsCreateOrUpdateResponse>>;
4868
+ beginCreateOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>, PrivateEndpointConnectionsCreateOrUpdateResponse>>;
4514
4869
  /**
4515
4870
  * Approve or reject a private endpoint connection with a given name.
4516
4871
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -4527,7 +4882,7 @@ export declare interface PrivateEndpointConnections {
4527
4882
  * @param privateEndpointConnectionName The name of the private endpoint connection.
4528
4883
  * @param options The options parameters.
4529
4884
  */
4530
- beginDelete(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
4885
+ beginDelete(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
4531
4886
  /**
4532
4887
  * Deletes a private endpoint connection with a given name.
4533
4888
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -4669,7 +5024,7 @@ export declare interface PrivateLinkScopedResources {
4669
5024
  * @param parameters A private link scoped resource
4670
5025
  * @param options The options parameters.
4671
5026
  */
4672
- beginCreateOrUpdate(resourceGroupName: string, scopeName: string, name: string, parameters: ScopedResource, options?: PrivateLinkScopedResourcesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<PrivateLinkScopedResourcesCreateOrUpdateResponse>, PrivateLinkScopedResourcesCreateOrUpdateResponse>>;
5027
+ beginCreateOrUpdate(resourceGroupName: string, scopeName: string, name: string, parameters: ScopedResource, options?: PrivateLinkScopedResourcesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateLinkScopedResourcesCreateOrUpdateResponse>, PrivateLinkScopedResourcesCreateOrUpdateResponse>>;
4673
5028
  /**
4674
5029
  * Approve or reject a private endpoint connection with a given name.
4675
5030
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -4686,7 +5041,7 @@ export declare interface PrivateLinkScopedResources {
4686
5041
  * @param name The name of the scoped resource object.
4687
5042
  * @param options The options parameters.
4688
5043
  */
4689
- beginDelete(resourceGroupName: string, scopeName: string, name: string, options?: PrivateLinkScopedResourcesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
5044
+ beginDelete(resourceGroupName: string, scopeName: string, name: string, options?: PrivateLinkScopedResourcesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
4690
5045
  /**
4691
5046
  * Deletes a private endpoint connection with a given name.
4692
5047
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -4774,7 +5129,7 @@ export declare interface PrivateLinkScopes {
4774
5129
  * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
4775
5130
  * @param options The options parameters.
4776
5131
  */
4777
- beginDelete(resourceGroupName: string, scopeName: string, options?: PrivateLinkScopesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
5132
+ beginDelete(resourceGroupName: string, scopeName: string, options?: PrivateLinkScopesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
4778
5133
  /**
4779
5134
  * Deletes a Azure Monitor PrivateLinkScope.
4780
5135
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -4881,10 +5236,11 @@ export declare interface PrivateLinkServiceConnectionState {
4881
5236
  * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
4882
5237
  * this enum contains the known values that the service supports.
4883
5238
  * ### Known values supported by the service
5239
+ * **Creating** \
4884
5240
  * **Succeeded** \
4885
- * **Deploying** \
4886
- * **Canceled** \
4887
- * **Failed**
5241
+ * **Deleting** \
5242
+ * **Failed** \
5243
+ * **Canceled**
4888
5244
  */
4889
5245
  export declare type ProvisioningState = string;
4890
5246
 
@@ -4912,13 +5268,15 @@ export declare interface ProxyResourceAutoGenerated extends ResourceAutoGenerate
4912
5268
  }
4913
5269
 
4914
5270
  /**
4915
- * Defines values for QueryType. \
4916
- * {@link KnownQueryType} can be used interchangeably with QueryType,
5271
+ * Defines values for PublicNetworkAccess. \
5272
+ * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,
4917
5273
  * this enum contains the known values that the service supports.
4918
5274
  * ### Known values supported by the service
4919
- * **ResultCount**
5275
+ * **Enabled** \
5276
+ * **Disabled** \
5277
+ * **SecuredByPerimeter**
4920
5278
  */
4921
- export declare type QueryType = string;
5279
+ export declare type PublicNetworkAccess = string;
4922
5280
 
4923
5281
  /** Defines values for ReceiverStatus. */
4924
5282
  export declare type ReceiverStatus = "NotSpecified" | "Enabled" | "Disabled";
@@ -5070,39 +5428,28 @@ export declare interface ResourceAutoGenerated4 {
5070
5428
  };
5071
5429
  }
5072
5430
 
5073
- /** An azure resource object */
5431
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
5074
5432
  export declare interface ResourceAutoGenerated5 {
5075
5433
  /**
5076
- * Azure resource Id
5434
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
5077
5435
  * NOTE: This property will not be serialized. It can only be populated by the server.
5078
5436
  */
5079
5437
  readonly id?: string;
5080
5438
  /**
5081
- * Azure resource name
5439
+ * The name of the resource
5082
5440
  * NOTE: This property will not be serialized. It can only be populated by the server.
5083
5441
  */
5084
5442
  readonly name?: string;
5085
5443
  /**
5086
- * Azure resource type
5444
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
5087
5445
  * NOTE: This property will not be serialized. It can only be populated by the server.
5088
5446
  */
5089
5447
  readonly type?: string;
5090
- /** Resource location */
5091
- location: string;
5092
- /** Resource tags */
5093
- tags?: {
5094
- [propertyName: string]: string;
5095
- };
5096
- /**
5097
- * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
5098
- * NOTE: This property will not be serialized. It can only be populated by the server.
5099
- */
5100
- readonly kind?: string;
5101
5448
  /**
5102
- * The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
5449
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
5103
5450
  * NOTE: This property will not be serialized. It can only be populated by the server.
5104
5451
  */
5105
- readonly etag?: string;
5452
+ readonly systemData?: SystemData;
5106
5453
  }
5107
5454
 
5108
5455
  /** Definition of ARM tracked top level resource properties for update operation. */
@@ -5229,6 +5576,14 @@ export declare interface RuleMetricDataSource extends RuleDataSource {
5229
5576
  metricName?: string;
5230
5577
  }
5231
5578
 
5579
+ /** TBD. Relevant only for rules of the kind LogAlert. */
5580
+ export declare interface RuleResolveConfiguration {
5581
+ /** The flag that indicates whether or not to auto resolve a fired alert. */
5582
+ autoResolved?: boolean;
5583
+ /** The duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format. */
5584
+ timeToResolve?: string;
5585
+ }
5586
+
5232
5587
  /** Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case. */
5233
5588
  export declare interface RuleWebhookAction extends RuleAction {
5234
5589
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -5297,52 +5652,208 @@ export declare type ScaleRuleMetricDimensionOperationType = string;
5297
5652
  /** Defines values for ScaleType. */
5298
5653
  export declare type ScaleType = "ChangeCount" | "PercentChangeCount" | "ExactCount" | "ServiceAllowedNextValue";
5299
5654
 
5300
- /** Defines how often to run the search and the time interval. */
5301
- export declare interface Schedule {
5302
- /** frequency (in minutes) at which rule condition should be evaluated. */
5303
- frequencyInMinutes: number;
5304
- /** Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes). */
5305
- timeWindowInMinutes: number;
5655
+ /** The rule criteria that defines the conditions of the scheduled query rule. */
5656
+ export declare interface ScheduledQueryRuleCriteria {
5657
+ /** A list of conditions to evaluate against the specified scopes */
5658
+ allOf?: Condition[];
5659
+ }
5660
+
5661
+ /** The scheduled query rule resource. */
5662
+ export declare interface ScheduledQueryRuleResource {
5663
+ /**
5664
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
5665
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5666
+ */
5667
+ readonly id?: string;
5668
+ /**
5669
+ * The name of the resource
5670
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5671
+ */
5672
+ readonly name?: string;
5673
+ /**
5674
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
5675
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5676
+ */
5677
+ readonly type?: string;
5678
+ /** The identity of the resource. */
5679
+ identity?: Identity;
5680
+ /** Resource tags. */
5681
+ tags?: {
5682
+ [propertyName: string]: string;
5683
+ };
5684
+ /** The geo-location where the resource lives */
5685
+ location: string;
5686
+ /** Indicates the type of scheduled query rule. The default is LogAlert. */
5687
+ kind?: Kind;
5688
+ /**
5689
+ * The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
5690
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5691
+ */
5692
+ readonly etag?: string;
5693
+ /**
5694
+ * SystemData of ScheduledQueryRule.
5695
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5696
+ */
5697
+ readonly systemData?: SystemData;
5698
+ /**
5699
+ * The api-version used when creating this alert rule
5700
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5701
+ */
5702
+ readonly createdWithApiVersion?: string;
5703
+ /**
5704
+ * True if alert rule is legacy Log Analytic rule
5705
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5706
+ */
5707
+ readonly isLegacyLogAnalyticsRule?: boolean;
5708
+ /** The description of the scheduled query rule. */
5709
+ description?: string;
5710
+ /** The display name of the alert rule */
5711
+ displayName?: string;
5712
+ /** Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert. */
5713
+ severity?: AlertSeverity;
5714
+ /** The flag which indicates whether this scheduled query rule is enabled. Value should be true or false */
5715
+ enabled?: boolean;
5716
+ /** This determines if traffic is allowed over public network. By default it is enabled. */
5717
+ publicNetworkAccess?: PublicNetworkAccess;
5718
+ /** The list of resource id's that this scheduled query rule is scoped to. */
5719
+ scopes?: string[];
5720
+ /** How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert. */
5721
+ evaluationFrequency?: string;
5722
+ /** The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert. */
5723
+ windowSize?: string;
5724
+ /** If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert. */
5725
+ overrideQueryTimeRange?: string;
5726
+ /** List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert */
5727
+ targetResourceTypes?: string[];
5728
+ /** The rule criteria that defines the conditions of the scheduled query rule. */
5729
+ criteria?: ScheduledQueryRuleCriteria;
5730
+ /** Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert. */
5731
+ muteActionsDuration?: string;
5732
+ /** Actions to invoke when the alert fires. */
5733
+ actions?: Actions;
5734
+ /**
5735
+ * The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
5736
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5737
+ */
5738
+ readonly isWorkspaceAlertsStorageConfigured?: boolean;
5739
+ /** The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert. */
5740
+ checkWorkspaceAlertsStorageConfigured?: boolean;
5741
+ /** The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert. */
5742
+ skipQueryValidation?: boolean;
5743
+ /** The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert. */
5744
+ autoMitigate?: boolean;
5745
+ /** Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert. */
5746
+ ruleResolveConfiguration?: RuleResolveConfiguration;
5747
+ }
5748
+
5749
+ /** Represents a collection of scheduled query rule resources. */
5750
+ export declare interface ScheduledQueryRuleResourceCollection {
5751
+ /** The values for the scheduled query rule resources. */
5752
+ value?: ScheduledQueryRuleResource[];
5753
+ /**
5754
+ * Provides the link to retrieve the next set of elements.
5755
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5756
+ */
5757
+ readonly nextLink?: string;
5758
+ }
5759
+
5760
+ /** The scheduled query rule resource for patch operations. */
5761
+ export declare interface ScheduledQueryRuleResourcePatch {
5762
+ /** The identity of the resource. */
5763
+ identity?: Identity;
5764
+ /** Resource tags */
5765
+ tags?: {
5766
+ [propertyName: string]: string;
5767
+ };
5768
+ /**
5769
+ * The api-version used when creating this alert rule
5770
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5771
+ */
5772
+ readonly createdWithApiVersion?: string;
5773
+ /**
5774
+ * True if alert rule is legacy Log Analytic rule
5775
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5776
+ */
5777
+ readonly isLegacyLogAnalyticsRule?: boolean;
5778
+ /** The description of the scheduled query rule. */
5779
+ description?: string;
5780
+ /** The display name of the alert rule */
5781
+ displayName?: string;
5782
+ /** Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert. */
5783
+ severity?: AlertSeverity;
5784
+ /** The flag which indicates whether this scheduled query rule is enabled. Value should be true or false */
5785
+ enabled?: boolean;
5786
+ /** This determines if traffic is allowed over public network. By default it is enabled. */
5787
+ publicNetworkAccess?: PublicNetworkAccess;
5788
+ /** The list of resource id's that this scheduled query rule is scoped to. */
5789
+ scopes?: string[];
5790
+ /** How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert. */
5791
+ evaluationFrequency?: string;
5792
+ /** The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert. */
5793
+ windowSize?: string;
5794
+ /** If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert. */
5795
+ overrideQueryTimeRange?: string;
5796
+ /** List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert */
5797
+ targetResourceTypes?: string[];
5798
+ /** The rule criteria that defines the conditions of the scheduled query rule. */
5799
+ criteria?: ScheduledQueryRuleCriteria;
5800
+ /** Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert. */
5801
+ muteActionsDuration?: string;
5802
+ /** Actions to invoke when the alert fires. */
5803
+ actions?: Actions;
5804
+ /**
5805
+ * The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false.
5806
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5807
+ */
5808
+ readonly isWorkspaceAlertsStorageConfigured?: boolean;
5809
+ /** The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert. */
5810
+ checkWorkspaceAlertsStorageConfigured?: boolean;
5811
+ /** The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert. */
5812
+ skipQueryValidation?: boolean;
5813
+ /** The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert. */
5814
+ autoMitigate?: boolean;
5815
+ /** Defines the configuration for resolving fired alerts. Relevant only for rules of the kind LogAlert. */
5816
+ ruleResolveConfiguration?: RuleResolveConfiguration;
5306
5817
  }
5307
5818
 
5308
5819
  /** Interface representing a ScheduledQueryRules. */
5309
5820
  export declare interface ScheduledQueryRules {
5310
5821
  /**
5311
- * List the Log Search rules within a subscription group.
5822
+ * Retrieve a scheduled query rule definitions in a subscription.
5312
5823
  * @param options The options parameters.
5313
5824
  */
5314
- listBySubscription(options?: ScheduledQueryRulesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<LogSearchRuleResource>;
5825
+ listBySubscription(options?: ScheduledQueryRulesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ScheduledQueryRuleResource>;
5315
5826
  /**
5316
- * List the Log Search rules within a resource group.
5827
+ * Retrieve scheduled query rule definitions in a resource group.
5317
5828
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5318
5829
  * @param options The options parameters.
5319
5830
  */
5320
- listByResourceGroup(resourceGroupName: string, options?: ScheduledQueryRulesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<LogSearchRuleResource>;
5831
+ listByResourceGroup(resourceGroupName: string, options?: ScheduledQueryRulesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ScheduledQueryRuleResource>;
5321
5832
  /**
5322
- * Creates or updates an log search rule.
5833
+ * Retrieve an scheduled query rule definition.
5323
5834
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5324
5835
  * @param ruleName The name of the rule.
5325
- * @param parameters The parameters of the rule to create or update.
5326
5836
  * @param options The options parameters.
5327
5837
  */
5328
- createOrUpdate(resourceGroupName: string, ruleName: string, parameters: LogSearchRuleResource, options?: ScheduledQueryRulesCreateOrUpdateOptionalParams): Promise<ScheduledQueryRulesCreateOrUpdateResponse>;
5838
+ get(resourceGroupName: string, ruleName: string, options?: ScheduledQueryRulesGetOptionalParams): Promise<ScheduledQueryRulesGetResponse>;
5329
5839
  /**
5330
- * Gets an Log Search rule
5840
+ * Creates or updates a scheduled query rule.
5331
5841
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5332
5842
  * @param ruleName The name of the rule.
5843
+ * @param parameters The parameters of the rule to create or update.
5333
5844
  * @param options The options parameters.
5334
5845
  */
5335
- get(resourceGroupName: string, ruleName: string, options?: ScheduledQueryRulesGetOptionalParams): Promise<ScheduledQueryRulesGetResponse>;
5846
+ createOrUpdate(resourceGroupName: string, ruleName: string, parameters: ScheduledQueryRuleResource, options?: ScheduledQueryRulesCreateOrUpdateOptionalParams): Promise<ScheduledQueryRulesCreateOrUpdateResponse>;
5336
5847
  /**
5337
- * Update log search Rule.
5848
+ * Update a scheduled query rule.
5338
5849
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5339
5850
  * @param ruleName The name of the rule.
5340
5851
  * @param parameters The parameters of the rule to update.
5341
5852
  * @param options The options parameters.
5342
5853
  */
5343
- update(resourceGroupName: string, ruleName: string, parameters: LogSearchRuleResourcePatch, options?: ScheduledQueryRulesUpdateOptionalParams): Promise<ScheduledQueryRulesUpdateResponse>;
5854
+ update(resourceGroupName: string, ruleName: string, parameters: ScheduledQueryRuleResourcePatch, options?: ScheduledQueryRulesUpdateOptionalParams): Promise<ScheduledQueryRulesUpdateResponse>;
5344
5855
  /**
5345
- * Deletes a Log Search rule
5856
+ * Deletes a scheduled query rule.
5346
5857
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
5347
5858
  * @param ruleName The name of the rule.
5348
5859
  * @param options The options parameters.
@@ -5355,7 +5866,7 @@ export declare interface ScheduledQueryRulesCreateOrUpdateOptionalParams extends
5355
5866
  }
5356
5867
 
5357
5868
  /** Contains response data for the createOrUpdate operation. */
5358
- export declare type ScheduledQueryRulesCreateOrUpdateResponse = LogSearchRuleResource;
5869
+ export declare type ScheduledQueryRulesCreateOrUpdateResponse = ScheduledQueryRuleResource;
5359
5870
 
5360
5871
  /** Optional parameters. */
5361
5872
  export declare interface ScheduledQueryRulesDeleteOptionalParams extends coreClient.OperationOptions {
@@ -5366,32 +5877,42 @@ export declare interface ScheduledQueryRulesGetOptionalParams extends coreClient
5366
5877
  }
5367
5878
 
5368
5879
  /** Contains response data for the get operation. */
5369
- export declare type ScheduledQueryRulesGetResponse = LogSearchRuleResource;
5880
+ export declare type ScheduledQueryRulesGetResponse = ScheduledQueryRuleResource;
5881
+
5882
+ /** Optional parameters. */
5883
+ export declare interface ScheduledQueryRulesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
5884
+ }
5885
+
5886
+ /** Contains response data for the listByResourceGroupNext operation. */
5887
+ export declare type ScheduledQueryRulesListByResourceGroupNextResponse = ScheduledQueryRuleResourceCollection;
5370
5888
 
5371
5889
  /** Optional parameters. */
5372
5890
  export declare interface ScheduledQueryRulesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
5373
- /** The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx */
5374
- filter?: string;
5375
5891
  }
5376
5892
 
5377
5893
  /** Contains response data for the listByResourceGroup operation. */
5378
- export declare type ScheduledQueryRulesListByResourceGroupResponse = LogSearchRuleResourceCollection;
5894
+ export declare type ScheduledQueryRulesListByResourceGroupResponse = ScheduledQueryRuleResourceCollection;
5895
+
5896
+ /** Optional parameters. */
5897
+ export declare interface ScheduledQueryRulesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
5898
+ }
5899
+
5900
+ /** Contains response data for the listBySubscriptionNext operation. */
5901
+ export declare type ScheduledQueryRulesListBySubscriptionNextResponse = ScheduledQueryRuleResourceCollection;
5379
5902
 
5380
5903
  /** Optional parameters. */
5381
5904
  export declare interface ScheduledQueryRulesListBySubscriptionOptionalParams extends coreClient.OperationOptions {
5382
- /** The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx */
5383
- filter?: string;
5384
5905
  }
5385
5906
 
5386
5907
  /** Contains response data for the listBySubscription operation. */
5387
- export declare type ScheduledQueryRulesListBySubscriptionResponse = LogSearchRuleResourceCollection;
5908
+ export declare type ScheduledQueryRulesListBySubscriptionResponse = ScheduledQueryRuleResourceCollection;
5388
5909
 
5389
5910
  /** Optional parameters. */
5390
5911
  export declare interface ScheduledQueryRulesUpdateOptionalParams extends coreClient.OperationOptions {
5391
5912
  }
5392
5913
 
5393
5914
  /** Contains response data for the update operation. */
5394
- export declare type ScheduledQueryRulesUpdateResponse = LogSearchRuleResource;
5915
+ export declare type ScheduledQueryRulesUpdateResponse = ScheduledQueryRuleResource;
5395
5916
 
5396
5917
  /** A private link scoped resource */
5397
5918
  export declare interface ScopedResource extends ProxyResourceAutoGenerated {
@@ -5476,18 +5997,6 @@ export declare interface SmsReceiver {
5476
5997
  readonly status?: ReceiverStatus;
5477
5998
  }
5478
5999
 
5479
- /** Specifies the log search query. */
5480
- export declare interface Source {
5481
- /** Log search query. Required for action type - AlertingAction */
5482
- query?: string;
5483
- /** List of Resource referred into query */
5484
- authorizedResources?: string[];
5485
- /** The resource uri over which log search query is to be run. */
5486
- dataSourceId: string;
5487
- /** Set value to 'ResultCount' . */
5488
- queryType?: QueryType;
5489
- }
5490
-
5491
6000
  /** Declaration of a custom stream. */
5492
6001
  export declare interface StreamDeclaration {
5493
6002
  /** List of columns used by data in this stream. */
@@ -5597,6 +6106,19 @@ export declare interface ThresholdRuleCondition extends RuleCondition {
5597
6106
  timeAggregation?: TimeAggregationOperator;
5598
6107
  }
5599
6108
 
6109
+ /**
6110
+ * Defines values for TimeAggregation. \
6111
+ * {@link KnownTimeAggregation} can be used interchangeably with TimeAggregation,
6112
+ * this enum contains the known values that the service supports.
6113
+ * ### Known values supported by the service
6114
+ * **Count** \
6115
+ * **Average** \
6116
+ * **Minimum** \
6117
+ * **Maximum** \
6118
+ * **Total**
6119
+ */
6120
+ export declare type TimeAggregation = string;
6121
+
5600
6122
  /** Defines values for TimeAggregationOperator. */
5601
6123
  export declare type TimeAggregationOperator = "Average" | "Minimum" | "Maximum" | "Total" | "Last";
5602
6124
 
@@ -5645,14 +6167,28 @@ export declare interface TrackedResource extends ResourceAutoGenerated3 {
5645
6167
  location: string;
5646
6168
  }
5647
6169
 
5648
- /** The condition that results in the Log Search rule. */
5649
- export declare interface TriggerCondition {
5650
- /** Evaluation operation for rule - 'GreaterThan' or 'LessThan. */
5651
- thresholdOperator: ConditionalOperator;
5652
- /** Result or count threshold based on which rule should be triggered. */
5653
- threshold: number;
5654
- /** Trigger condition for metric query rule */
5655
- metricTrigger?: LogMetricTrigger;
6170
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
6171
+ export declare interface TrackedResourceAutoGenerated extends ResourceAutoGenerated5 {
6172
+ /** Resource tags. */
6173
+ tags?: {
6174
+ [propertyName: string]: string;
6175
+ };
6176
+ /** The geo-location where the resource lives */
6177
+ location: string;
6178
+ }
6179
+
6180
+ /** User assigned identity properties. */
6181
+ export declare interface UserIdentityProperties {
6182
+ /**
6183
+ * The principal id of user assigned identity.
6184
+ * NOTE: This property will not be serialized. It can only be populated by the server.
6185
+ */
6186
+ readonly principalId?: string;
6187
+ /**
6188
+ * The client id of user assigned identity.
6189
+ * NOTE: This property will not be serialized. It can only be populated by the server.
6190
+ */
6191
+ readonly clientId?: string;
5656
6192
  }
5657
6193
 
5658
6194
  /** Interface representing a VMInsights. */