@azure/arm-monitor 8.0.0-beta.2 → 8.0.0-beta.3
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.
- package/CHANGELOG.md +6 -2
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +456 -223
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsCreateNotificationsAtResourceGroupLevelSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsGetSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsAtResourceGroupLevelSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js +10 -2
- package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js +10 -2
- package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js +10 -2
- package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js.map +1 -1
- package/dist-esm/samples-dev/actionGroupsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/actionGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js +19 -9
- package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsGetSample.js +11 -3
- package/dist-esm/samples-dev/activityLogAlertsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js +10 -2
- package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/activityLogsListSample.js +13 -4
- package/dist-esm/samples-dev/activityLogsListSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRuleIncidentsGetSample.js +11 -3
- package/dist-esm/samples-dev/alertRuleIncidentsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.js +11 -3
- package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesGetSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/alertRulesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/alertRulesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsGetSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/baselinesListSample.js +10 -2
- package/dist-esm/samples-dev/baselinesListSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js +16 -8
- package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesGetSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js +11 -3
- package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js +10 -2
- package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js +10 -2
- package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js +13 -4
- package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js +10 -2
- package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsGetSample.js +13 -4
- package/dist-esm/samples-dev/diagnosticSettingsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticSettingsListSample.js +13 -4
- package/dist-esm/samples-dev/diagnosticSettingsListSample.js.map +1 -1
- package/dist-esm/samples-dev/eventCategoriesListSample.js +10 -2
- package/dist-esm/samples-dev/eventCategoriesListSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesDeleteSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesGetSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesListSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesListSample.js.map +1 -1
- package/dist-esm/samples-dev/logProfilesUpdateSample.js +10 -2
- package/dist-esm/samples-dev/logProfilesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.js +40 -25
- package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/metricAlertsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsGetSample.js +35 -21
- package/dist-esm/samples-dev/metricAlertsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.js +11 -3
- package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsStatusListSample.js +11 -3
- package/dist-esm/samples-dev/metricAlertsStatusListSample.js.map +1 -1
- package/dist-esm/samples-dev/metricAlertsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/metricAlertsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/metricDefinitionsListSample.js +16 -6
- package/dist-esm/samples-dev/metricDefinitionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/metricNamespacesListSample.js +10 -2
- package/dist-esm/samples-dev/metricNamespacesListSample.js.map +1 -1
- package/dist-esm/samples-dev/metricsListSample.js +16 -6
- package/dist-esm/samples-dev/metricsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/predictiveMetricGetSample.js +11 -3
- package/dist-esm/samples-dev/predictiveMetricGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.js +11 -3
- package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.js +15 -6
- package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesGetSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesListSample.js +10 -2
- package/dist-esm/samples-dev/privateLinkScopesListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.js +10 -3
- package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js +19 -9
- package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js +11 -3
- package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js +10 -2
- package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js +10 -3
- package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/tenantActivityLogsListSample.js +19 -8
- package/dist-esm/samples-dev/tenantActivityLogsListSample.js.map +1 -1
- package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.js +22 -10
- package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +0 -6
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/monitorClient.d.ts.map +1 -1
- package/dist-esm/src/monitorClient.js +4 -7
- package/dist-esm/src/monitorClient.js.map +1 -1
- package/dist-esm/src/operations/actionGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/actionGroups.js +16 -8
- package/dist-esm/src/operations/actionGroups.js.map +1 -1
- package/dist-esm/src/operations/activityLogAlerts.d.ts.map +1 -1
- package/dist-esm/src/operations/activityLogAlerts.js +37 -16
- package/dist-esm/src/operations/activityLogAlerts.js.map +1 -1
- package/dist-esm/src/operations/activityLogs.d.ts +0 -13
- package/dist-esm/src/operations/activityLogs.d.ts.map +1 -1
- package/dist-esm/src/operations/activityLogs.js +22 -28
- package/dist-esm/src/operations/activityLogs.js.map +1 -1
- package/dist-esm/src/operations/alertRuleIncidents.d.ts.map +1 -1
- package/dist-esm/src/operations/alertRuleIncidents.js +8 -4
- package/dist-esm/src/operations/alertRuleIncidents.js.map +1 -1
- package/dist-esm/src/operations/alertRules.d.ts.map +1 -1
- package/dist-esm/src/operations/alertRules.js +16 -8
- package/dist-esm/src/operations/alertRules.js.map +1 -1
- package/dist-esm/src/operations/autoscaleSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/autoscaleSettings.js +37 -16
- package/dist-esm/src/operations/autoscaleSettings.js.map +1 -1
- package/dist-esm/src/operations/baselines.d.ts.map +1 -1
- package/dist-esm/src/operations/baselines.js +8 -4
- package/dist-esm/src/operations/baselines.js.map +1 -1
- package/dist-esm/src/operations/dataCollectionEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/dataCollectionEndpoints.js +37 -16
- package/dist-esm/src/operations/dataCollectionEndpoints.js.map +1 -1
- package/dist-esm/src/operations/dataCollectionRuleAssociations.d.ts.map +1 -1
- package/dist-esm/src/operations/dataCollectionRuleAssociations.js +55 -24
- package/dist-esm/src/operations/dataCollectionRuleAssociations.js.map +1 -1
- package/dist-esm/src/operations/dataCollectionRules.d.ts.map +1 -1
- package/dist-esm/src/operations/dataCollectionRules.js +37 -16
- package/dist-esm/src/operations/dataCollectionRules.js.map +1 -1
- package/dist-esm/src/operations/diagnosticSettings.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnosticSettings.js +8 -4
- package/dist-esm/src/operations/diagnosticSettings.js.map +1 -1
- package/dist-esm/src/operations/diagnosticSettingsCategory.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnosticSettingsCategory.js +8 -4
- package/dist-esm/src/operations/diagnosticSettingsCategory.js.map +1 -1
- package/dist-esm/src/operations/eventCategories.d.ts.map +1 -1
- package/dist-esm/src/operations/eventCategories.js +8 -4
- package/dist-esm/src/operations/eventCategories.js.map +1 -1
- package/dist-esm/src/operations/logProfiles.d.ts.map +1 -1
- package/dist-esm/src/operations/logProfiles.js +8 -4
- package/dist-esm/src/operations/logProfiles.js.map +1 -1
- package/dist-esm/src/operations/metricAlerts.d.ts.map +1 -1
- package/dist-esm/src/operations/metricAlerts.js +16 -8
- package/dist-esm/src/operations/metricAlerts.js.map +1 -1
- package/dist-esm/src/operations/metricDefinitions.d.ts.map +1 -1
- package/dist-esm/src/operations/metricDefinitions.js +8 -4
- package/dist-esm/src/operations/metricDefinitions.js.map +1 -1
- package/dist-esm/src/operations/metricNamespaces.d.ts.map +1 -1
- package/dist-esm/src/operations/metricNamespaces.js +8 -4
- package/dist-esm/src/operations/metricNamespaces.js.map +1 -1
- package/dist-esm/src/operations/privateLinkScopedResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkScopedResources.js +19 -8
- package/dist-esm/src/operations/privateLinkScopedResources.js.map +1 -1
- package/dist-esm/src/operations/privateLinkScopes.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkScopes.js +37 -16
- package/dist-esm/src/operations/privateLinkScopes.js.map +1 -1
- package/dist-esm/src/operations/scheduledQueryRules.d.ts.map +1 -1
- package/dist-esm/src/operations/scheduledQueryRules.js +16 -8
- package/dist-esm/src/operations/scheduledQueryRules.js.map +1 -1
- package/dist-esm/src/operations/tenantActivityLogs.d.ts.map +1 -1
- package/dist-esm/src/operations/tenantActivityLogs.js +19 -12
- package/dist-esm/src/operations/tenantActivityLogs.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/package.json +8 -6
- package/review/arm-monitor.api.md +3 -3
- package/src/index.ts +1 -0
- package/src/models/index.ts +2 -10
- package/src/monitorClient.ts +5 -6
- package/src/operations/actionGroups.ts +25 -11
- package/src/operations/activityLogAlerts.ts +46 -19
- package/src/operations/activityLogs.ts +23 -29
- package/src/operations/alertRuleIncidents.ts +13 -11
- package/src/operations/alertRules.ts +26 -12
- package/src/operations/autoscaleSettings.ts +46 -19
- package/src/operations/baselines.ts +10 -5
- package/src/operations/dataCollectionEndpoints.ts +45 -18
- package/src/operations/dataCollectionRuleAssociations.ts +71 -35
- package/src/operations/dataCollectionRules.ts +45 -18
- package/src/operations/diagnosticSettings.ts +12 -7
- package/src/operations/diagnosticSettingsCategory.ts +12 -7
- package/src/operations/eventCategories.ts +10 -5
- package/src/operations/logProfiles.ts +12 -7
- package/src/operations/metricAlerts.ts +24 -10
- package/src/operations/metricDefinitions.ts +10 -5
- package/src/operations/metricNamespaces.ts +10 -5
- package/src/operations/privateLinkScopedResources.ts +27 -14
- package/src/operations/privateLinkScopes.ts +45 -18
- package/src/operations/scheduledQueryRules.ts +26 -12
- package/src/operations/tenantActivityLogs.ts +21 -13
- package/src/pagingHelper.ts +39 -0
- package/types/arm-monitor.d.ts +9 -6
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { MetricAlerts } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -15,8 +15,8 @@ import { MonitorClient } from "../monitorClient";
|
|
|
15
15
|
import {
|
|
16
16
|
MetricAlertResource,
|
|
17
17
|
MetricAlertsListBySubscriptionOptionalParams,
|
|
18
|
-
MetricAlertsListByResourceGroupOptionalParams,
|
|
19
18
|
MetricAlertsListBySubscriptionResponse,
|
|
19
|
+
MetricAlertsListByResourceGroupOptionalParams,
|
|
20
20
|
MetricAlertsListByResourceGroupResponse,
|
|
21
21
|
MetricAlertsGetOptionalParams,
|
|
22
22
|
MetricAlertsGetResponse,
|
|
@@ -56,16 +56,21 @@ export class MetricAlertsImpl implements MetricAlerts {
|
|
|
56
56
|
[Symbol.asyncIterator]() {
|
|
57
57
|
return this;
|
|
58
58
|
},
|
|
59
|
-
byPage: () => {
|
|
60
|
-
|
|
59
|
+
byPage: (settings?: PageSettings) => {
|
|
60
|
+
if (settings?.maxPageSize) {
|
|
61
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
62
|
+
}
|
|
63
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
61
64
|
}
|
|
62
65
|
};
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
private async *listBySubscriptionPagingPage(
|
|
66
|
-
options?: MetricAlertsListBySubscriptionOptionalParams
|
|
69
|
+
options?: MetricAlertsListBySubscriptionOptionalParams,
|
|
70
|
+
_settings?: PageSettings
|
|
67
71
|
): AsyncIterableIterator<MetricAlertResource[]> {
|
|
68
|
-
let result
|
|
72
|
+
let result: MetricAlertsListBySubscriptionResponse;
|
|
73
|
+
result = await this._listBySubscription(options);
|
|
69
74
|
yield result.value || [];
|
|
70
75
|
}
|
|
71
76
|
|
|
@@ -94,17 +99,26 @@ export class MetricAlertsImpl implements MetricAlerts {
|
|
|
94
99
|
[Symbol.asyncIterator]() {
|
|
95
100
|
return this;
|
|
96
101
|
},
|
|
97
|
-
byPage: () => {
|
|
98
|
-
|
|
102
|
+
byPage: (settings?: PageSettings) => {
|
|
103
|
+
if (settings?.maxPageSize) {
|
|
104
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
|
+
}
|
|
106
|
+
return this.listByResourceGroupPagingPage(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
options,
|
|
109
|
+
settings
|
|
110
|
+
);
|
|
99
111
|
}
|
|
100
112
|
};
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
private async *listByResourceGroupPagingPage(
|
|
104
116
|
resourceGroupName: string,
|
|
105
|
-
options?: MetricAlertsListByResourceGroupOptionalParams
|
|
117
|
+
options?: MetricAlertsListByResourceGroupOptionalParams,
|
|
118
|
+
_settings?: PageSettings
|
|
106
119
|
): AsyncIterableIterator<MetricAlertResource[]> {
|
|
107
|
-
let result
|
|
120
|
+
let result: MetricAlertsListByResourceGroupResponse;
|
|
121
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
108
122
|
yield result.value || [];
|
|
109
123
|
}
|
|
110
124
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { MetricDefinitions } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -48,17 +48,22 @@ export class MetricDefinitionsImpl implements MetricDefinitions {
|
|
|
48
48
|
[Symbol.asyncIterator]() {
|
|
49
49
|
return this;
|
|
50
50
|
},
|
|
51
|
-
byPage: () => {
|
|
52
|
-
|
|
51
|
+
byPage: (settings?: PageSettings) => {
|
|
52
|
+
if (settings?.maxPageSize) {
|
|
53
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
54
|
+
}
|
|
55
|
+
return this.listPagingPage(resourceUri, options, settings);
|
|
53
56
|
}
|
|
54
57
|
};
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
private async *listPagingPage(
|
|
58
61
|
resourceUri: string,
|
|
59
|
-
options?: MetricDefinitionsListOptionalParams
|
|
62
|
+
options?: MetricDefinitionsListOptionalParams,
|
|
63
|
+
_settings?: PageSettings
|
|
60
64
|
): AsyncIterableIterator<MetricDefinition[]> {
|
|
61
|
-
let result
|
|
65
|
+
let result: MetricDefinitionsListResponse;
|
|
66
|
+
result = await this._list(resourceUri, options);
|
|
62
67
|
yield result.value || [];
|
|
63
68
|
}
|
|
64
69
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { MetricNamespaces } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -48,17 +48,22 @@ export class MetricNamespacesImpl implements MetricNamespaces {
|
|
|
48
48
|
[Symbol.asyncIterator]() {
|
|
49
49
|
return this;
|
|
50
50
|
},
|
|
51
|
-
byPage: () => {
|
|
52
|
-
|
|
51
|
+
byPage: (settings?: PageSettings) => {
|
|
52
|
+
if (settings?.maxPageSize) {
|
|
53
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
54
|
+
}
|
|
55
|
+
return this.listPagingPage(resourceUri, options, settings);
|
|
53
56
|
}
|
|
54
57
|
};
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
private async *listPagingPage(
|
|
58
61
|
resourceUri: string,
|
|
59
|
-
options?: MetricNamespacesListOptionalParams
|
|
62
|
+
options?: MetricNamespacesListOptionalParams,
|
|
63
|
+
_settings?: PageSettings
|
|
60
64
|
): AsyncIterableIterator<MetricNamespace[]> {
|
|
61
|
-
let result
|
|
65
|
+
let result: MetricNamespacesListResponse;
|
|
66
|
+
result = await this._list(resourceUri, options);
|
|
62
67
|
yield result.value || [];
|
|
63
68
|
}
|
|
64
69
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { PrivateLinkScopedResources } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,12 +19,12 @@ import {
|
|
|
18
19
|
ScopedResource,
|
|
19
20
|
PrivateLinkScopedResourcesListByPrivateLinkScopeNextOptionalParams,
|
|
20
21
|
PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,
|
|
22
|
+
PrivateLinkScopedResourcesListByPrivateLinkScopeResponse,
|
|
21
23
|
PrivateLinkScopedResourcesGetOptionalParams,
|
|
22
24
|
PrivateLinkScopedResourcesGetResponse,
|
|
23
25
|
PrivateLinkScopedResourcesCreateOrUpdateOptionalParams,
|
|
24
26
|
PrivateLinkScopedResourcesCreateOrUpdateResponse,
|
|
25
27
|
PrivateLinkScopedResourcesDeleteOptionalParams,
|
|
26
|
-
PrivateLinkScopedResourcesListByPrivateLinkScopeResponse,
|
|
27
28
|
PrivateLinkScopedResourcesListByPrivateLinkScopeNextResponse
|
|
28
29
|
} from "../models";
|
|
29
30
|
|
|
@@ -64,11 +65,15 @@ export class PrivateLinkScopedResourcesImpl
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
68
72
|
return this.listByPrivateLinkScopePagingPage(
|
|
69
73
|
resourceGroupName,
|
|
70
74
|
scopeName,
|
|
71
|
-
options
|
|
75
|
+
options,
|
|
76
|
+
settings
|
|
72
77
|
);
|
|
73
78
|
}
|
|
74
79
|
};
|
|
@@ -77,15 +82,22 @@ export class PrivateLinkScopedResourcesImpl
|
|
|
77
82
|
private async *listByPrivateLinkScopePagingPage(
|
|
78
83
|
resourceGroupName: string,
|
|
79
84
|
scopeName: string,
|
|
80
|
-
options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams
|
|
85
|
+
options?: PrivateLinkScopedResourcesListByPrivateLinkScopeOptionalParams,
|
|
86
|
+
settings?: PageSettings
|
|
81
87
|
): AsyncIterableIterator<ScopedResource[]> {
|
|
82
|
-
let result
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
let result: PrivateLinkScopedResourcesListByPrivateLinkScopeResponse;
|
|
89
|
+
let continuationToken = settings?.continuationToken;
|
|
90
|
+
if (!continuationToken) {
|
|
91
|
+
result = await this._listByPrivateLinkScope(
|
|
92
|
+
resourceGroupName,
|
|
93
|
+
scopeName,
|
|
94
|
+
options
|
|
95
|
+
);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
89
101
|
while (continuationToken) {
|
|
90
102
|
result = await this._listByPrivateLinkScopeNext(
|
|
91
103
|
resourceGroupName,
|
|
@@ -94,7 +106,9 @@ export class PrivateLinkScopedResourcesImpl
|
|
|
94
106
|
options
|
|
95
107
|
);
|
|
96
108
|
continuationToken = result.nextLink;
|
|
97
|
-
|
|
109
|
+
let page = result.value || [];
|
|
110
|
+
setContinuationToken(page, continuationToken);
|
|
111
|
+
yield page;
|
|
98
112
|
}
|
|
99
113
|
}
|
|
100
114
|
|
|
@@ -468,7 +482,6 @@ const listByPrivateLinkScopeNextOperationSpec: coreClient.OperationSpec = {
|
|
|
468
482
|
bodyMapper: Mappers.DefaultErrorResponse
|
|
469
483
|
}
|
|
470
484
|
},
|
|
471
|
-
queryParameters: [Parameters.apiVersion11],
|
|
472
485
|
urlParameters: [
|
|
473
486
|
Parameters.$host,
|
|
474
487
|
Parameters.resourceGroupName,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { PrivateLinkScopes } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,9 +19,9 @@ import {
|
|
|
18
19
|
AzureMonitorPrivateLinkScope,
|
|
19
20
|
PrivateLinkScopesListNextOptionalParams,
|
|
20
21
|
PrivateLinkScopesListOptionalParams,
|
|
22
|
+
PrivateLinkScopesListResponse,
|
|
21
23
|
PrivateLinkScopesListByResourceGroupNextOptionalParams,
|
|
22
24
|
PrivateLinkScopesListByResourceGroupOptionalParams,
|
|
23
|
-
PrivateLinkScopesListResponse,
|
|
24
25
|
PrivateLinkScopesListByResourceGroupResponse,
|
|
25
26
|
PrivateLinkScopesDeleteOptionalParams,
|
|
26
27
|
PrivateLinkScopesGetOptionalParams,
|
|
@@ -62,22 +63,34 @@ export class PrivateLinkScopesImpl implements PrivateLinkScopes {
|
|
|
62
63
|
[Symbol.asyncIterator]() {
|
|
63
64
|
return this;
|
|
64
65
|
},
|
|
65
|
-
byPage: () => {
|
|
66
|
-
|
|
66
|
+
byPage: (settings?: PageSettings) => {
|
|
67
|
+
if (settings?.maxPageSize) {
|
|
68
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
69
|
+
}
|
|
70
|
+
return this.listPagingPage(options, settings);
|
|
67
71
|
}
|
|
68
72
|
};
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
private async *listPagingPage(
|
|
72
|
-
options?: PrivateLinkScopesListOptionalParams
|
|
76
|
+
options?: PrivateLinkScopesListOptionalParams,
|
|
77
|
+
settings?: PageSettings
|
|
73
78
|
): AsyncIterableIterator<AzureMonitorPrivateLinkScope[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
let result: PrivateLinkScopesListResponse;
|
|
80
|
+
let continuationToken = settings?.continuationToken;
|
|
81
|
+
if (!continuationToken) {
|
|
82
|
+
result = await this._list(options);
|
|
83
|
+
let page = result.value || [];
|
|
84
|
+
continuationToken = result.nextLink;
|
|
85
|
+
setContinuationToken(page, continuationToken);
|
|
86
|
+
yield page;
|
|
87
|
+
}
|
|
77
88
|
while (continuationToken) {
|
|
78
89
|
result = await this._listNext(continuationToken, options);
|
|
79
90
|
continuationToken = result.nextLink;
|
|
80
|
-
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
setContinuationToken(page, continuationToken);
|
|
93
|
+
yield page;
|
|
81
94
|
}
|
|
82
95
|
}
|
|
83
96
|
|
|
@@ -106,19 +119,33 @@ export class PrivateLinkScopesImpl implements PrivateLinkScopes {
|
|
|
106
119
|
[Symbol.asyncIterator]() {
|
|
107
120
|
return this;
|
|
108
121
|
},
|
|
109
|
-
byPage: () => {
|
|
110
|
-
|
|
122
|
+
byPage: (settings?: PageSettings) => {
|
|
123
|
+
if (settings?.maxPageSize) {
|
|
124
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
125
|
+
}
|
|
126
|
+
return this.listByResourceGroupPagingPage(
|
|
127
|
+
resourceGroupName,
|
|
128
|
+
options,
|
|
129
|
+
settings
|
|
130
|
+
);
|
|
111
131
|
}
|
|
112
132
|
};
|
|
113
133
|
}
|
|
114
134
|
|
|
115
135
|
private async *listByResourceGroupPagingPage(
|
|
116
136
|
resourceGroupName: string,
|
|
117
|
-
options?: PrivateLinkScopesListByResourceGroupOptionalParams
|
|
137
|
+
options?: PrivateLinkScopesListByResourceGroupOptionalParams,
|
|
138
|
+
settings?: PageSettings
|
|
118
139
|
): AsyncIterableIterator<AzureMonitorPrivateLinkScope[]> {
|
|
119
|
-
let result
|
|
120
|
-
|
|
121
|
-
|
|
140
|
+
let result: PrivateLinkScopesListByResourceGroupResponse;
|
|
141
|
+
let continuationToken = settings?.continuationToken;
|
|
142
|
+
if (!continuationToken) {
|
|
143
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
144
|
+
let page = result.value || [];
|
|
145
|
+
continuationToken = result.nextLink;
|
|
146
|
+
setContinuationToken(page, continuationToken);
|
|
147
|
+
yield page;
|
|
148
|
+
}
|
|
122
149
|
while (continuationToken) {
|
|
123
150
|
result = await this._listByResourceGroupNext(
|
|
124
151
|
resourceGroupName,
|
|
@@ -126,7 +153,9 @@ export class PrivateLinkScopesImpl implements PrivateLinkScopes {
|
|
|
126
153
|
options
|
|
127
154
|
);
|
|
128
155
|
continuationToken = result.nextLink;
|
|
129
|
-
|
|
156
|
+
let page = result.value || [];
|
|
157
|
+
setContinuationToken(page, continuationToken);
|
|
158
|
+
yield page;
|
|
130
159
|
}
|
|
131
160
|
}
|
|
132
161
|
|
|
@@ -491,7 +520,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
491
520
|
bodyMapper: Mappers.DefaultErrorResponse
|
|
492
521
|
}
|
|
493
522
|
},
|
|
494
|
-
queryParameters: [Parameters.apiVersion11],
|
|
495
523
|
urlParameters: [
|
|
496
524
|
Parameters.$host,
|
|
497
525
|
Parameters.subscriptionId,
|
|
@@ -511,7 +539,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
|
511
539
|
bodyMapper: Mappers.DefaultErrorResponse
|
|
512
540
|
}
|
|
513
541
|
},
|
|
514
|
-
queryParameters: [Parameters.apiVersion11],
|
|
515
542
|
urlParameters: [
|
|
516
543
|
Parameters.$host,
|
|
517
544
|
Parameters.resourceGroupName,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { ScheduledQueryRules } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -15,7 +15,9 @@ import { MonitorClient } from "../monitorClient";
|
|
|
15
15
|
import {
|
|
16
16
|
LogSearchRuleResource,
|
|
17
17
|
ScheduledQueryRulesListBySubscriptionOptionalParams,
|
|
18
|
+
ScheduledQueryRulesListBySubscriptionResponse,
|
|
18
19
|
ScheduledQueryRulesListByResourceGroupOptionalParams,
|
|
20
|
+
ScheduledQueryRulesListByResourceGroupResponse,
|
|
19
21
|
ScheduledQueryRulesCreateOrUpdateOptionalParams,
|
|
20
22
|
ScheduledQueryRulesCreateOrUpdateResponse,
|
|
21
23
|
ScheduledQueryRulesGetOptionalParams,
|
|
@@ -23,9 +25,7 @@ import {
|
|
|
23
25
|
LogSearchRuleResourcePatch,
|
|
24
26
|
ScheduledQueryRulesUpdateOptionalParams,
|
|
25
27
|
ScheduledQueryRulesUpdateResponse,
|
|
26
|
-
ScheduledQueryRulesDeleteOptionalParams
|
|
27
|
-
ScheduledQueryRulesListBySubscriptionResponse,
|
|
28
|
-
ScheduledQueryRulesListByResourceGroupResponse
|
|
28
|
+
ScheduledQueryRulesDeleteOptionalParams
|
|
29
29
|
} from "../models";
|
|
30
30
|
|
|
31
31
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -56,16 +56,21 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
56
56
|
[Symbol.asyncIterator]() {
|
|
57
57
|
return this;
|
|
58
58
|
},
|
|
59
|
-
byPage: () => {
|
|
60
|
-
|
|
59
|
+
byPage: (settings?: PageSettings) => {
|
|
60
|
+
if (settings?.maxPageSize) {
|
|
61
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
62
|
+
}
|
|
63
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
61
64
|
}
|
|
62
65
|
};
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
private async *listBySubscriptionPagingPage(
|
|
66
|
-
options?: ScheduledQueryRulesListBySubscriptionOptionalParams
|
|
69
|
+
options?: ScheduledQueryRulesListBySubscriptionOptionalParams,
|
|
70
|
+
_settings?: PageSettings
|
|
67
71
|
): AsyncIterableIterator<LogSearchRuleResource[]> {
|
|
68
|
-
let result
|
|
72
|
+
let result: ScheduledQueryRulesListBySubscriptionResponse;
|
|
73
|
+
result = await this._listBySubscription(options);
|
|
69
74
|
yield result.value || [];
|
|
70
75
|
}
|
|
71
76
|
|
|
@@ -94,17 +99,26 @@ export class ScheduledQueryRulesImpl implements ScheduledQueryRules {
|
|
|
94
99
|
[Symbol.asyncIterator]() {
|
|
95
100
|
return this;
|
|
96
101
|
},
|
|
97
|
-
byPage: () => {
|
|
98
|
-
|
|
102
|
+
byPage: (settings?: PageSettings) => {
|
|
103
|
+
if (settings?.maxPageSize) {
|
|
104
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
|
+
}
|
|
106
|
+
return this.listByResourceGroupPagingPage(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
options,
|
|
109
|
+
settings
|
|
110
|
+
);
|
|
99
111
|
}
|
|
100
112
|
};
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
private async *listByResourceGroupPagingPage(
|
|
104
116
|
resourceGroupName: string,
|
|
105
|
-
options?: ScheduledQueryRulesListByResourceGroupOptionalParams
|
|
117
|
+
options?: ScheduledQueryRulesListByResourceGroupOptionalParams,
|
|
118
|
+
_settings?: PageSettings
|
|
106
119
|
): AsyncIterableIterator<LogSearchRuleResource[]> {
|
|
107
|
-
let result
|
|
120
|
+
let result: ScheduledQueryRulesListByResourceGroupResponse;
|
|
121
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
108
122
|
yield result.value || [];
|
|
109
123
|
}
|
|
110
124
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { TenantActivityLogs } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -51,22 +52,34 @@ export class TenantActivityLogsImpl implements TenantActivityLogs {
|
|
|
51
52
|
[Symbol.asyncIterator]() {
|
|
52
53
|
return this;
|
|
53
54
|
},
|
|
54
|
-
byPage: () => {
|
|
55
|
-
|
|
55
|
+
byPage: (settings?: PageSettings) => {
|
|
56
|
+
if (settings?.maxPageSize) {
|
|
57
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
58
|
+
}
|
|
59
|
+
return this.listPagingPage(options, settings);
|
|
56
60
|
}
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
private async *listPagingPage(
|
|
61
|
-
options?: TenantActivityLogsListOptionalParams
|
|
65
|
+
options?: TenantActivityLogsListOptionalParams,
|
|
66
|
+
settings?: PageSettings
|
|
62
67
|
): AsyncIterableIterator<EventData[]> {
|
|
63
|
-
let result
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
let result: TenantActivityLogsListResponse;
|
|
69
|
+
let continuationToken = settings?.continuationToken;
|
|
70
|
+
if (!continuationToken) {
|
|
71
|
+
result = await this._list(options);
|
|
72
|
+
let page = result.value || [];
|
|
73
|
+
continuationToken = result.nextLink;
|
|
74
|
+
setContinuationToken(page, continuationToken);
|
|
75
|
+
yield page;
|
|
76
|
+
}
|
|
66
77
|
while (continuationToken) {
|
|
67
78
|
result = await this._listNext(continuationToken, options);
|
|
68
79
|
continuationToken = result.nextLink;
|
|
69
|
-
|
|
80
|
+
let page = result.value || [];
|
|
81
|
+
setContinuationToken(page, continuationToken);
|
|
82
|
+
yield page;
|
|
70
83
|
}
|
|
71
84
|
}
|
|
72
85
|
|
|
@@ -140,11 +153,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
140
153
|
bodyMapper: Mappers.ErrorResponse
|
|
141
154
|
}
|
|
142
155
|
},
|
|
143
|
-
queryParameters: [
|
|
144
|
-
Parameters.apiVersion1,
|
|
145
|
-
Parameters.select,
|
|
146
|
-
Parameters.filter1
|
|
147
|
-
],
|
|
148
156
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
149
157
|
headerParameters: [Parameters.accept],
|
|
150
158
|
serializer
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
+
* returns a continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|
package/types/arm-monitor.d.ts
CHANGED
|
@@ -492,8 +492,6 @@ export declare interface ActivityLogs {
|
|
|
492
492
|
|
|
493
493
|
/** Optional parameters. */
|
|
494
494
|
export declare interface ActivityLogsListNextOptionalParams extends coreClient.OperationOptions {
|
|
495
|
-
/** Used to fetch events with only the given properties.<br>The **$select** argument is a comma separated list of property names to be returned. Possible values are: *authorization*, *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, *subscriptionId* */
|
|
496
|
-
select?: string;
|
|
497
495
|
}
|
|
498
496
|
|
|
499
497
|
/** Contains response data for the listNext operation. */
|
|
@@ -2472,6 +2470,15 @@ export declare interface ExtensionDataSource {
|
|
|
2472
2470
|
name?: string;
|
|
2473
2471
|
}
|
|
2474
2472
|
|
|
2473
|
+
/**
|
|
2474
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
2475
|
+
* returns a continuation token that can be used to begin paging from
|
|
2476
|
+
* that point later.
|
|
2477
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
2478
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
2479
|
+
*/
|
|
2480
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
2481
|
+
|
|
2475
2482
|
/** The Http request info. */
|
|
2476
2483
|
export declare interface HttpRequestInfo {
|
|
2477
2484
|
/** the client request id. */
|
|
@@ -5546,10 +5553,6 @@ export declare interface TenantActivityLogs {
|
|
|
5546
5553
|
|
|
5547
5554
|
/** Optional parameters. */
|
|
5548
5555
|
export declare interface TenantActivityLogsListNextOptionalParams extends coreClient.OperationOptions {
|
|
5549
|
-
/** Used to fetch events with only the given properties.<br>The **$select** argument is a comma separated list of property names to be returned. Possible values are: *authorization*, *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, *subscriptionId* */
|
|
5550
|
-
select?: string;
|
|
5551
|
-
/** Reduces the set of data collected. <br>The **$filter** is very restricted and allows only the following patterns.<br>- List events for a resource group: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le '<End Time>' and eventChannels eq 'Admin, Operation' and resourceGroupName eq '<ResourceGroupName>'.<br>- List events for resource: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le '<End Time>' and eventChannels eq 'Admin, Operation' and resourceUri eq '<ResourceURI>'.<br>- List events for a subscription: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le '<End Time>' and eventChannels eq 'Admin, Operation'.<br>- List events for a resource provider: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le '<End Time>' and eventChannels eq 'Admin, Operation' and resourceProvider eq '<ResourceProviderName>'.<br>- List events for a correlation Id: api-version=2014-04-01&$filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and correlationId eq '<CorrelationID>'.<br>**NOTE**: No other syntax is allowed. */
|
|
5552
|
-
filter?: string;
|
|
5553
5556
|
}
|
|
5554
5557
|
|
|
5555
5558
|
/** Contains response data for the listNext operation. */
|