diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 5317e23b1d5a..b5bdbce3cfc4 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -322,6 +322,7 @@ com.azure.resourcemanager:azure-resourcemanager-extendedlocation;1.0.0-beta.1;1.
com.azure.resourcemanager:azure-resourcemanager-logz;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-storagepool;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-dataprotection;1.0.0-beta.1;1.0.0-beta.1
+com.azure.resourcemanager:azure-resourcemanager-monitor-generated;1.0.0-beta.1;1.0.0-beta.1
# Unreleased dependencies: Copy the entry from above, prepend "unreleased_" and remove the current
# version. Unreleased dependencies are only valid for dependency versions.
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/CHANGELOG.md b/sdk/monitor/azure-resourcemanager-monitor-generated/CHANGELOG.md
new file mode 100644
index 000000000000..fb8a77405608
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2021-11-03)
+
+- Azure Resource Manager Monitor client library for Java. This package contains Microsoft Azure SDK for Monitor Management SDK. Monitor Management Client. Package tag package-2021-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/README.md b/sdk/monitor/azure-resourcemanager-monitor-generated/README.md
new file mode 100644
index 000000000000..b1297e3719b7
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager Monitor client library for Java
+
+Azure Resource Manager Monitor client library for Java.
+
+This package contains Microsoft Azure SDK for Monitor Management SDK. Monitor Management Client. Package tag package-2021-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+## We'd love to hear your feedback
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-monitor-generated;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-monitor-generated
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+MonitorManager manager = MonitorManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/monitor/azure-resourcemanager-monitor-generated/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/SAMPLE.md b/sdk/monitor/azure-resourcemanager-monitor-generated/SAMPLE.md
new file mode 100644
index 000000000000..a8b64d330a19
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/SAMPLE.md
@@ -0,0 +1,4093 @@
+# Code snippets and samples
+
+
+## ActionGroups
+
+- [CreateOrUpdate](#actiongroups_createorupdate)
+- [Delete](#actiongroups_delete)
+- [EnableReceiver](#actiongroups_enablereceiver)
+- [GetByResourceGroup](#actiongroups_getbyresourcegroup)
+- [List](#actiongroups_list)
+- [ListByResourceGroup](#actiongroups_listbyresourcegroup)
+- [Update](#actiongroups_update)
+
+## ActivityLogAlerts
+
+- [CreateOrUpdate](#activitylogalerts_createorupdate)
+- [Delete](#activitylogalerts_delete)
+- [GetByResourceGroup](#activitylogalerts_getbyresourcegroup)
+- [List](#activitylogalerts_list)
+- [ListByResourceGroup](#activitylogalerts_listbyresourcegroup)
+- [Update](#activitylogalerts_update)
+
+## ActivityLogs
+
+- [List](#activitylogs_list)
+
+## AlertRuleIncidents
+
+- [Get](#alertruleincidents_get)
+- [ListByAlertRule](#alertruleincidents_listbyalertrule)
+
+## AlertRules
+
+- [CreateOrUpdate](#alertrules_createorupdate)
+- [Delete](#alertrules_delete)
+- [GetByResourceGroup](#alertrules_getbyresourcegroup)
+- [List](#alertrules_list)
+- [ListByResourceGroup](#alertrules_listbyresourcegroup)
+- [Update](#alertrules_update)
+
+## AutoscaleSettings
+
+- [CreateOrUpdate](#autoscalesettings_createorupdate)
+- [Delete](#autoscalesettings_delete)
+- [GetByResourceGroup](#autoscalesettings_getbyresourcegroup)
+- [List](#autoscalesettings_list)
+- [ListByResourceGroup](#autoscalesettings_listbyresourcegroup)
+- [Update](#autoscalesettings_update)
+
+## Baselines
+
+- [List](#baselines_list)
+
+## DataCollectionEndpoints
+
+- [Create](#datacollectionendpoints_create)
+- [Delete](#datacollectionendpoints_delete)
+- [GetByResourceGroup](#datacollectionendpoints_getbyresourcegroup)
+- [List](#datacollectionendpoints_list)
+- [ListByResourceGroup](#datacollectionendpoints_listbyresourcegroup)
+- [Update](#datacollectionendpoints_update)
+
+## DataCollectionRuleAssociations
+
+- [Create](#datacollectionruleassociations_create)
+- [Delete](#datacollectionruleassociations_delete)
+- [Get](#datacollectionruleassociations_get)
+- [ListByResource](#datacollectionruleassociations_listbyresource)
+- [ListByRule](#datacollectionruleassociations_listbyrule)
+
+## DataCollectionRules
+
+- [Create](#datacollectionrules_create)
+- [Delete](#datacollectionrules_delete)
+- [GetByResourceGroup](#datacollectionrules_getbyresourcegroup)
+- [List](#datacollectionrules_list)
+- [ListByResourceGroup](#datacollectionrules_listbyresourcegroup)
+- [Update](#datacollectionrules_update)
+
+## DiagnosticSettingsCategory
+
+- [Get](#diagnosticsettingscategory_get)
+- [List](#diagnosticsettingscategory_list)
+
+## DiagnosticSettingsOperation
+
+- [CreateOrUpdate](#diagnosticsettingsoperation_createorupdate)
+- [Delete](#diagnosticsettingsoperation_delete)
+- [Get](#diagnosticsettingsoperation_get)
+- [List](#diagnosticsettingsoperation_list)
+
+## EventCategories
+
+- [List](#eventcategories_list)
+
+## LogProfiles
+
+- [CreateOrUpdate](#logprofiles_createorupdate)
+- [Delete](#logprofiles_delete)
+- [Get](#logprofiles_get)
+- [List](#logprofiles_list)
+- [Update](#logprofiles_update)
+
+## MetricAlerts
+
+- [CreateOrUpdate](#metricalerts_createorupdate)
+- [Delete](#metricalerts_delete)
+- [GetByResourceGroup](#metricalerts_getbyresourcegroup)
+- [List](#metricalerts_list)
+- [ListByResourceGroup](#metricalerts_listbyresourcegroup)
+- [Update](#metricalerts_update)
+
+## MetricAlertsStatus
+
+- [List](#metricalertsstatus_list)
+- [ListByName](#metricalertsstatus_listbyname)
+
+## MetricDefinitions
+
+- [List](#metricdefinitions_list)
+
+## MetricNamespaces
+
+- [List](#metricnamespaces_list)
+
+## Metrics
+
+- [List](#metrics_list)
+
+## Operations
+
+- [List](#operations_list)
+
+## PrivateEndpointConnections
+
+- [CreateOrUpdate](#privateendpointconnections_createorupdate)
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [ListByPrivateLinkScope](#privateendpointconnections_listbyprivatelinkscope)
+
+## PrivateLinkResources
+
+- [Get](#privatelinkresources_get)
+- [ListByPrivateLinkScope](#privatelinkresources_listbyprivatelinkscope)
+
+## PrivateLinkScopeOperationStatus
+
+- [GetByResourceGroup](#privatelinkscopeoperationstatus_getbyresourcegroup)
+
+## PrivateLinkScopedResources
+
+- [CreateOrUpdate](#privatelinkscopedresources_createorupdate)
+- [Delete](#privatelinkscopedresources_delete)
+- [Get](#privatelinkscopedresources_get)
+- [ListByPrivateLinkScope](#privatelinkscopedresources_listbyprivatelinkscope)
+
+## PrivateLinkScopes
+
+- [CreateOrUpdate](#privatelinkscopes_createorupdate)
+- [Delete](#privatelinkscopes_delete)
+- [GetByResourceGroup](#privatelinkscopes_getbyresourcegroup)
+- [List](#privatelinkscopes_list)
+- [ListByResourceGroup](#privatelinkscopes_listbyresourcegroup)
+- [UpdateTags](#privatelinkscopes_updatetags)
+
+## ScheduledQueryRules
+
+- [CreateOrUpdate](#scheduledqueryrules_createorupdate)
+- [Delete](#scheduledqueryrules_delete)
+- [GetByResourceGroup](#scheduledqueryrules_getbyresourcegroup)
+- [List](#scheduledqueryrules_list)
+- [ListByResourceGroup](#scheduledqueryrules_listbyresourcegroup)
+- [Update](#scheduledqueryrules_update)
+
+## TenantActivityLogs
+
+- [List](#tenantactivitylogs_list)
+
+## VMInsights
+
+- [GetOnboardingStatus](#vminsights_getonboardingstatus)
+### ActionGroups_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.monitor.generated.models.ArmRoleReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AutomationRunbookReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AzureAppPushReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AzureFunctionReceiver;
+import com.azure.resourcemanager.monitor.generated.models.EmailReceiver;
+import com.azure.resourcemanager.monitor.generated.models.ItsmReceiver;
+import com.azure.resourcemanager.monitor.generated.models.LogicAppReceiver;
+import com.azure.resourcemanager.monitor.generated.models.SmsReceiver;
+import com.azure.resourcemanager.monitor.generated.models.VoiceReceiver;
+import com.azure.resourcemanager.monitor.generated.models.WebhookReceiver;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ActionGroups CreateOrUpdate. */
+public final class ActionGroupsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/createOrUpdateActionGroup.json
+ */
+ /**
+ * Sample code: Create or update an action group.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnActionGroup(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .actionGroups()
+ .define("SampleActionGroup")
+ .withRegion("Global")
+ .withExistingResourceGroup("Default-NotificationRules")
+ .withTags(mapOf())
+ .withGroupShortName("sample")
+ .withEnabled(true)
+ .withEmailReceivers(
+ Arrays
+ .asList(
+ new EmailReceiver()
+ .withName("John Doe's email")
+ .withEmailAddress("johndoe@email.com")
+ .withUseCommonAlertSchema(false),
+ new EmailReceiver()
+ .withName("Jane Smith's email")
+ .withEmailAddress("janesmith@email.com")
+ .withUseCommonAlertSchema(true)))
+ .withSmsReceivers(
+ Arrays
+ .asList(
+ new SmsReceiver()
+ .withName("John Doe's mobile")
+ .withCountryCode("1")
+ .withPhoneNumber("1234567890"),
+ new SmsReceiver()
+ .withName("Jane Smith's mobile")
+ .withCountryCode("1")
+ .withPhoneNumber("0987654321")))
+ .withWebhookReceivers(
+ Arrays
+ .asList(
+ new WebhookReceiver()
+ .withName("Sample webhook 1")
+ .withServiceUri("http://www.example.com/webhook1")
+ .withUseCommonAlertSchema(true),
+ new WebhookReceiver()
+ .withName("Sample webhook 2")
+ .withServiceUri("http://www.example.com/webhook2")
+ .withUseCommonAlertSchema(true)
+ .withUseAadAuth(true)
+ .withObjectId("d3bb868c-fe44-452c-aa26-769a6538c808")
+ .withIdentifierUri("http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a")
+ .withTenantId("68a4459a-ccb8-493c-b9da-dd30457d1b84")))
+ .withItsmReceivers(
+ Arrays
+ .asList(
+ new ItsmReceiver()
+ .withName("Sample itsm")
+ .withWorkspaceId(
+ "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c")
+ .withConnectionId("a3b9076c-ce8e-434e-85b4-aff10cb3c8f1")
+ .withTicketConfiguration(
+ "{\"PayloadRevision\":0,\"WorkItemType\":\"Incident\",\"UseTemplate\":false,\"WorkItemData\":\"{}\",\"CreateOneWIPerCI\":false}")
+ .withRegion("westcentralus")))
+ .withAzureAppPushReceivers(
+ Arrays
+ .asList(
+ new AzureAppPushReceiver()
+ .withName("Sample azureAppPush")
+ .withEmailAddress("johndoe@email.com")))
+ .withAutomationRunbookReceivers(
+ Arrays
+ .asList(
+ new AutomationRunbookReceiver()
+ .withAutomationAccountId(
+ "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest")
+ .withRunbookName("Sample runbook")
+ .withWebhookResourceId(
+ "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084")
+ .withIsGlobalRunbook(false)
+ .withName("testRunbook")
+ .withServiceUri("")
+ .withUseCommonAlertSchema(true)))
+ .withVoiceReceivers(
+ Arrays
+ .asList(
+ new VoiceReceiver()
+ .withName("Sample voice")
+ .withCountryCode("1")
+ .withPhoneNumber("1234567890")))
+ .withLogicAppReceivers(
+ Arrays
+ .asList(
+ new LogicAppReceiver()
+ .withName("Sample logicApp")
+ .withResourceId(
+ "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp")
+ .withCallbackUrl(
+ "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w")
+ .withUseCommonAlertSchema(false)))
+ .withAzureFunctionReceivers(
+ Arrays
+ .asList(
+ new AzureFunctionReceiver()
+ .withName("Sample azureFunction")
+ .withFunctionAppResourceId(
+ "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp")
+ .withFunctionName("HttpTriggerCSharp1")
+ .withHttpTriggerUrl("")
+ .withUseCommonAlertSchema(true)))
+ .withArmRoleReceivers(
+ Arrays
+ .asList(
+ new ArmRoleReceiver()
+ .withName("Sample armRole")
+ .withRoleId("8e3af657-a8ff-443c-a75c-2fe8c4bcb635")
+ .withUseCommonAlertSchema(true)))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ActionGroups_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ActionGroups Delete. */
+public final class ActionGroupsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/deleteActionGroup.json
+ */
+ /**
+ * Sample code: Delete an action group.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteAnActionGroup(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.actionGroups().deleteWithResponse("Default-NotificationRules", "SampleActionGroup", Context.NONE);
+ }
+}
+```
+
+### ActionGroups_EnableReceiver
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.EnableRequest;
+
+/** Samples for ActionGroups EnableReceiver. */
+public final class ActionGroupsEnableReceiverSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/enableReceiver.json
+ */
+ /**
+ * Sample code: Enable the receiver.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void enableTheReceiver(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .actionGroups()
+ .enableReceiverWithResponse(
+ "Default-NotificationRules",
+ "SampleActionGroup",
+ new EnableRequest().withReceiverName("John Doe's mobile"),
+ Context.NONE);
+ }
+}
+```
+
+### ActionGroups_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ActionGroups GetByResourceGroup. */
+public final class ActionGroupsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/getActionGroup.json
+ */
+ /**
+ * Sample code: Get an action group.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnActionGroup(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .actionGroups()
+ .getByResourceGroupWithResponse("Default-NotificationRules", "SampleActionGroup", Context.NONE);
+ }
+}
+```
+
+### ActionGroups_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ActionGroups List. */
+public final class ActionGroupsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/listActionGroups.json
+ */
+ /**
+ * Sample code: List action groups.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listActionGroups(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.actionGroups().list(Context.NONE);
+ }
+}
+```
+
+### ActionGroups_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ActionGroups ListByResourceGroup. */
+public final class ActionGroupsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/listActionGroups.json
+ */
+ /**
+ * Sample code: List action groups.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listActionGroups(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.actionGroups().listByResourceGroup("Default-NotificationRules", Context.NONE);
+ }
+}
+```
+
+### ActionGroups_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.ActionGroupResource;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ActionGroups Update. */
+public final class ActionGroupsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-06-01/examples/patchActionGroup.json
+ */
+ /**
+ * Sample code: Patch an action group.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void patchAnActionGroup(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ ActionGroupResource resource =
+ manager
+ .actionGroups()
+ .getByResourceGroupWithResponse("Default-NotificationRules", "SampleActionGroup", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1", "value1", "key2", "value2")).withEnabled(false).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ActivityLogAlerts_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertActionGroup;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertActionList;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertAllOfCondition;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertLeafCondition;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ActivityLogAlerts CreateOrUpdate. */
+public final class ActivityLogAlertsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/createOrUpdateActivityLogAlert.json
+ */
+ /**
+ * Sample code: Create or update an activity log alert.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnActivityLogAlert(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .activityLogAlerts()
+ .define("SampleActivityLogAlert")
+ .withRegion("Global")
+ .withExistingResourceGroup("Default-ActivityLogAlerts")
+ .withTags(mapOf())
+ .withScopes(Arrays.asList("subscriptions/187f412d-1758-44d9-b052-169e2564721d"))
+ .withEnabled(true)
+ .withCondition(
+ new ActivityLogAlertAllOfCondition()
+ .withAllOf(
+ Arrays
+ .asList(
+ new ActivityLogAlertLeafCondition().withField("Category").withEquals("Administrative"),
+ new ActivityLogAlertLeafCondition().withField("Level").withEquals("Error"))))
+ .withActions(
+ new ActivityLogAlertActionList()
+ .withActionGroups(
+ Arrays
+ .asList(
+ new ActivityLogAlertActionGroup()
+ .withActionGroupId(
+ "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-ActionGroups/providers/microsoft.insights/actionGroups/SampleActionGroup")
+ .withWebhookProperties(mapOf("sampleWebhookProperty", "samplePropertyValue")))))
+ .withDescription("Sample activity log alert description")
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ActivityLogAlerts_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ActivityLogAlerts Delete. */
+public final class ActivityLogAlertsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/deleteActivityLogAlert.json
+ */
+ /**
+ * Sample code: Delete an activity log alert.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteAnActivityLogAlert(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .activityLogAlerts()
+ .deleteWithResponse("Default-ActivityLogAlerts", "SampleActivityLogAlert", Context.NONE);
+ }
+}
+```
+
+### ActivityLogAlerts_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ActivityLogAlerts GetByResourceGroup. */
+public final class ActivityLogAlertsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/getActivityLogAlert.json
+ */
+ /**
+ * Sample code: Get an activity log alert.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnActivityLogAlert(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .activityLogAlerts()
+ .getByResourceGroupWithResponse("Default-ActivityLogAlerts", "SampleActivityLogAlert", Context.NONE);
+ }
+}
+```
+
+### ActivityLogAlerts_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ActivityLogAlerts List. */
+public final class ActivityLogAlertsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActivityLogAlerts.json
+ */
+ /**
+ * Sample code: List activity log alerts.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listActivityLogAlerts(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.activityLogAlerts().list(Context.NONE);
+ }
+}
+```
+
+### ActivityLogAlerts_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ActivityLogAlerts ListByResourceGroup. */
+public final class ActivityLogAlertsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/listActivityLogAlerts.json
+ */
+ /**
+ * Sample code: List activity log alerts.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listActivityLogAlerts(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.activityLogAlerts().listByResourceGroup("Default-ActivityLogAlerts", Context.NONE);
+ }
+}
+```
+
+### ActivityLogAlerts_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertResource;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ActivityLogAlerts Update. */
+public final class ActivityLogAlertsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2017-04-01/examples/patchActivityLogAlert.json
+ */
+ /**
+ * Sample code: Patch an activity log alert.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void patchAnActivityLogAlert(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ ActivityLogAlertResource resource =
+ manager
+ .activityLogAlerts()
+ .getByResourceGroupWithResponse("Default-ActivityLogAlerts", "SampleActivityLogAlert", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("key1", "value1", "key2", "value2")).withEnabled(false).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ActivityLogs_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ActivityLogs List. */
+public final class ActivityLogsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFilteredAndSelected.json
+ */
+ /**
+ * Sample code: Get Activity Logs with filter and select.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getActivityLogsWithFilterAndSelect(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .activityLogs()
+ .list(
+ "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and"
+ + " resourceGroupName eq 'MSSupportGroup'",
+ "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json
+ */
+ /**
+ * Sample code: Get Activity Logs with filter.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getActivityLogsWithFilter(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .activityLogs()
+ .list(
+ "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and"
+ + " resourceGroupName eq 'MSSupportGroup'",
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### AlertRuleIncidents_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AlertRuleIncidents Get. */
+public final class AlertRuleIncidentsGetSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json
+ */
+ /**
+ * Sample code: Get a single alert rule incident.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getASingleAlertRuleIncident(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.alertRuleIncidents().getWithResponse("Rac46PostSwapRG", "myRuleName", "Website_started", Context.NONE);
+ }
+}
+```
+
+### AlertRuleIncidents_ListByAlertRule
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AlertRuleIncidents ListByAlertRule. */
+public final class AlertRuleIncidentsListByAlertRuleSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json
+ */
+ /**
+ * Sample code: List alert rule incidents.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listAlertRuleIncidents(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.alertRuleIncidents().listByAlertRule("Rac46PostSwapRG", "myRuleName", Context.NONE);
+ }
+}
+```
+
+### AlertRules_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.monitor.generated.models.ConditionOperator;
+import com.azure.resourcemanager.monitor.generated.models.RuleMetricDataSource;
+import com.azure.resourcemanager.monitor.generated.models.ThresholdRuleCondition;
+import com.azure.resourcemanager.monitor.generated.models.TimeAggregationOperator;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for AlertRules CreateOrUpdate. */
+public final class AlertRulesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json
+ */
+ /**
+ * Sample code: Create or update an alert rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnAlertRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .alertRules()
+ .define("chiricutin")
+ .withRegion("West US")
+ .withExistingResourceGroup("Rac46PostSwapRG")
+ .withNamePropertiesName("chiricutin")
+ .withIsEnabled(true)
+ .withCondition(
+ new ThresholdRuleCondition()
+ .withDataSource(
+ new RuleMetricDataSource()
+ .withResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest")
+ .withMetricName("Requests"))
+ .withOperator(ConditionOperator.GREATER_THAN)
+ .withThreshold(3.0)
+ .withWindowSize(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationOperator.TOTAL))
+ .withTags(mapOf())
+ .withDescription("Pura Vida")
+ .withActions(Arrays.asList())
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AlertRules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AlertRules Delete. */
+public final class AlertRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json
+ */
+ /**
+ * Sample code: Delete an alert rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteAnAlertRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.alertRules().deleteWithResponse("Rac46PostSwapRG", "chiricutin", Context.NONE);
+ }
+}
+```
+
+### AlertRules_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AlertRules GetByResourceGroup. */
+public final class AlertRulesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json
+ */
+ /**
+ * Sample code: Get an alert rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnAlertRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.alertRules().getByResourceGroupWithResponse("Rac46PostSwapRG", "chiricutin", Context.NONE);
+ }
+}
+```
+
+### AlertRules_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AlertRules List. */
+public final class AlertRulesListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json
+ */
+ /**
+ * Sample code: List alert rules.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listAlertRules(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.alertRules().list(Context.NONE);
+ }
+}
+```
+
+### AlertRules_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AlertRules ListByResourceGroup. */
+public final class AlertRulesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json
+ */
+ /**
+ * Sample code: List alert rules.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listAlertRules(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.alertRules().listByResourceGroup("Rac46PostSwapRG", Context.NONE);
+ }
+}
+```
+
+### AlertRules_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.AlertRuleResource;
+import com.azure.resourcemanager.monitor.generated.models.ConditionOperator;
+import com.azure.resourcemanager.monitor.generated.models.RuleMetricDataSource;
+import com.azure.resourcemanager.monitor.generated.models.ThresholdRuleCondition;
+import com.azure.resourcemanager.monitor.generated.models.TimeAggregationOperator;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for AlertRules Update. */
+public final class AlertRulesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json
+ */
+ /**
+ * Sample code: Patch an alert rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void patchAnAlertRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ AlertRuleResource resource =
+ manager
+ .alertRules()
+ .getByResourceGroupWithResponse("Rac46PostSwapRG", "chiricutin", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf("$type", "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary"))
+ .withName("chiricutin")
+ .withDescription("Pura Vida")
+ .withIsEnabled(true)
+ .withCondition(
+ new ThresholdRuleCondition()
+ .withDataSource(
+ new RuleMetricDataSource()
+ .withResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest")
+ .withMetricName("Requests"))
+ .withOperator(ConditionOperator.GREATER_THAN)
+ .withThreshold(3.0)
+ .withWindowSize(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationOperator.TOTAL))
+ .withActions(Arrays.asList())
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AutoscaleSettings_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.monitor.generated.models.AutoscaleNotification;
+import com.azure.resourcemanager.monitor.generated.models.AutoscaleProfile;
+import com.azure.resourcemanager.monitor.generated.models.ComparisonOperationType;
+import com.azure.resourcemanager.monitor.generated.models.EmailNotification;
+import com.azure.resourcemanager.monitor.generated.models.MetricStatisticType;
+import com.azure.resourcemanager.monitor.generated.models.MetricTrigger;
+import com.azure.resourcemanager.monitor.generated.models.Recurrence;
+import com.azure.resourcemanager.monitor.generated.models.RecurrenceFrequency;
+import com.azure.resourcemanager.monitor.generated.models.RecurrentSchedule;
+import com.azure.resourcemanager.monitor.generated.models.ScaleAction;
+import com.azure.resourcemanager.monitor.generated.models.ScaleCapacity;
+import com.azure.resourcemanager.monitor.generated.models.ScaleDirection;
+import com.azure.resourcemanager.monitor.generated.models.ScaleRule;
+import com.azure.resourcemanager.monitor.generated.models.ScaleType;
+import com.azure.resourcemanager.monitor.generated.models.TimeAggregationType;
+import com.azure.resourcemanager.monitor.generated.models.TimeWindow;
+import com.azure.resourcemanager.monitor.generated.models.WebhookNotification;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for AutoscaleSettings CreateOrUpdate. */
+public final class AutoscaleSettingsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/createOrUpdateAutoscaleSetting.json
+ */
+ /**
+ * Sample code: Create or update an autoscale setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnAutoscaleSetting(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .autoscaleSettings()
+ .define("MySetting")
+ .withRegion("West US")
+ .withExistingResourceGroup("TestingMetricsScaleSet")
+ .withProfiles(
+ Arrays
+ .asList(
+ new AutoscaleProfile()
+ .withName("adios")
+ .withCapacity(
+ new ScaleCapacity().withMinimum("1").withMaximum("10").withDefaultProperty("1"))
+ .withRules(
+ Arrays
+ .asList(
+ new ScaleRule()
+ .withMetricTrigger(
+ new MetricTrigger()
+ .withMetricName("Percentage CPU")
+ .withMetricResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .withTimeGrain(Duration.parse("PT1M"))
+ .withStatistic(MetricStatisticType.AVERAGE)
+ .withTimeWindow(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationType.AVERAGE)
+ .withOperator(ComparisonOperationType.GREATER_THAN)
+ .withThreshold(10.0)
+ .withDividePerInstance(false))
+ .withScaleAction(
+ new ScaleAction()
+ .withDirection(ScaleDirection.INCREASE)
+ .withType(ScaleType.CHANGE_COUNT)
+ .withValue("1")
+ .withCooldown(Duration.parse("PT5M"))),
+ new ScaleRule()
+ .withMetricTrigger(
+ new MetricTrigger()
+ .withMetricName("Percentage CPU")
+ .withMetricResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .withTimeGrain(Duration.parse("PT2M"))
+ .withStatistic(MetricStatisticType.AVERAGE)
+ .withTimeWindow(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationType.AVERAGE)
+ .withOperator(ComparisonOperationType.GREATER_THAN)
+ .withThreshold(15.0)
+ .withDividePerInstance(false))
+ .withScaleAction(
+ new ScaleAction()
+ .withDirection(ScaleDirection.DECREASE)
+ .withType(ScaleType.CHANGE_COUNT)
+ .withValue("2")
+ .withCooldown(Duration.parse("PT6M")))))
+ .withFixedDate(
+ new TimeWindow()
+ .withTimeZone("UTC")
+ .withStart(OffsetDateTime.parse("2015-03-05T14:00:00Z"))
+ .withEnd(OffsetDateTime.parse("2015-03-05T14:30:00Z"))),
+ new AutoscaleProfile()
+ .withName("saludos")
+ .withCapacity(
+ new ScaleCapacity().withMinimum("1").withMaximum("10").withDefaultProperty("1"))
+ .withRules(
+ Arrays
+ .asList(
+ new ScaleRule()
+ .withMetricTrigger(
+ new MetricTrigger()
+ .withMetricName("Percentage CPU")
+ .withMetricResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .withTimeGrain(Duration.parse("PT1M"))
+ .withStatistic(MetricStatisticType.AVERAGE)
+ .withTimeWindow(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationType.AVERAGE)
+ .withOperator(ComparisonOperationType.GREATER_THAN)
+ .withThreshold(10.0)
+ .withDividePerInstance(false))
+ .withScaleAction(
+ new ScaleAction()
+ .withDirection(ScaleDirection.INCREASE)
+ .withType(ScaleType.CHANGE_COUNT)
+ .withValue("1")
+ .withCooldown(Duration.parse("PT5M"))),
+ new ScaleRule()
+ .withMetricTrigger(
+ new MetricTrigger()
+ .withMetricName("Percentage CPU")
+ .withMetricResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .withTimeGrain(Duration.parse("PT2M"))
+ .withStatistic(MetricStatisticType.AVERAGE)
+ .withTimeWindow(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationType.AVERAGE)
+ .withOperator(ComparisonOperationType.GREATER_THAN)
+ .withThreshold(15.0)
+ .withDividePerInstance(false))
+ .withScaleAction(
+ new ScaleAction()
+ .withDirection(ScaleDirection.DECREASE)
+ .withType(ScaleType.CHANGE_COUNT)
+ .withValue("2")
+ .withCooldown(Duration.parse("PT6M")))))
+ .withRecurrence(
+ new Recurrence()
+ .withFrequency(RecurrenceFrequency.WEEK)
+ .withSchedule(
+ new RecurrentSchedule()
+ .withTimeZone("UTC")
+ .withDays(Arrays.asList("1"))
+ .withHours(Arrays.asList(5))
+ .withMinutes(Arrays.asList(15))))))
+ .withTags(mapOf())
+ .withNotifications(
+ Arrays
+ .asList(
+ new AutoscaleNotification()
+ .withEmail(
+ new EmailNotification()
+ .withSendToSubscriptionAdministrator(true)
+ .withSendToSubscriptionCoAdministrators(true)
+ .withCustomEmails(Arrays.asList("gu@ms.com", "ge@ns.net")))
+ .withWebhooks(
+ Arrays
+ .asList(
+ new WebhookNotification()
+ .withServiceUri("http://myservice.com")
+ .withProperties(mapOf())))))
+ .withEnabled(true)
+ .withTargetResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### AutoscaleSettings_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AutoscaleSettings Delete. */
+public final class AutoscaleSettingsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/deleteAutoscaleSetting.json
+ */
+ /**
+ * Sample code: Delete an autoscale setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteAnAutoscaleSetting(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.autoscaleSettings().deleteWithResponse("TestingMetricsScaleSet", "MySetting", Context.NONE);
+ }
+}
+```
+
+### AutoscaleSettings_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AutoscaleSettings GetByResourceGroup. */
+public final class AutoscaleSettingsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/getAutoscaleSetting.json
+ */
+ /**
+ * Sample code: Get an autoscale setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnAutoscaleSetting(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.autoscaleSettings().getByResourceGroupWithResponse("TestingMetricsScaleSet", "MySetting", Context.NONE);
+ }
+}
+```
+
+### AutoscaleSettings_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AutoscaleSettings List. */
+public final class AutoscaleSettingsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSettingBySubscription.json
+ */
+ /**
+ * Sample code: List autoscale settings.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listAutoscaleSettings(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.autoscaleSettings().list(Context.NONE);
+ }
+}
+```
+
+### AutoscaleSettings_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AutoscaleSettings ListByResourceGroup. */
+public final class AutoscaleSettingsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/listAutoscaleSetting.json
+ */
+ /**
+ * Sample code: List autoscale settings.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listAutoscaleSettings(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.autoscaleSettings().listByResourceGroup("TestingMetricsScaleSet", Context.NONE);
+ }
+}
+```
+
+### AutoscaleSettings_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.AutoscaleNotification;
+import com.azure.resourcemanager.monitor.generated.models.AutoscaleProfile;
+import com.azure.resourcemanager.monitor.generated.models.AutoscaleSettingResource;
+import com.azure.resourcemanager.monitor.generated.models.ComparisonOperationType;
+import com.azure.resourcemanager.monitor.generated.models.EmailNotification;
+import com.azure.resourcemanager.monitor.generated.models.MetricStatisticType;
+import com.azure.resourcemanager.monitor.generated.models.MetricTrigger;
+import com.azure.resourcemanager.monitor.generated.models.Recurrence;
+import com.azure.resourcemanager.monitor.generated.models.RecurrenceFrequency;
+import com.azure.resourcemanager.monitor.generated.models.RecurrentSchedule;
+import com.azure.resourcemanager.monitor.generated.models.ScaleAction;
+import com.azure.resourcemanager.monitor.generated.models.ScaleCapacity;
+import com.azure.resourcemanager.monitor.generated.models.ScaleDirection;
+import com.azure.resourcemanager.monitor.generated.models.ScaleRule;
+import com.azure.resourcemanager.monitor.generated.models.ScaleType;
+import com.azure.resourcemanager.monitor.generated.models.TimeAggregationType;
+import com.azure.resourcemanager.monitor.generated.models.TimeWindow;
+import com.azure.resourcemanager.monitor.generated.models.WebhookNotification;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for AutoscaleSettings Update. */
+public final class AutoscaleSettingsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/patchAutoscaleSetting.json
+ */
+ /**
+ * Sample code: Patch an autoscale setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void patchAnAutoscaleSetting(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ AutoscaleSettingResource resource =
+ manager
+ .autoscaleSettings()
+ .getByResourceGroupWithResponse("TestingMetricsScaleSet", "MySetting", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf("$type", "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary"))
+ .withProfiles(
+ Arrays
+ .asList(
+ new AutoscaleProfile()
+ .withName("adios")
+ .withCapacity(
+ new ScaleCapacity().withMinimum("1").withMaximum("10").withDefaultProperty("1"))
+ .withRules(
+ Arrays
+ .asList(
+ new ScaleRule()
+ .withMetricTrigger(
+ new MetricTrigger()
+ .withMetricName("Percentage CPU")
+ .withMetricResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .withTimeGrain(Duration.parse("PT1M"))
+ .withStatistic(MetricStatisticType.AVERAGE)
+ .withTimeWindow(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationType.AVERAGE)
+ .withOperator(ComparisonOperationType.GREATER_THAN)
+ .withThreshold(10.0)
+ .withDividePerInstance(false))
+ .withScaleAction(
+ new ScaleAction()
+ .withDirection(ScaleDirection.INCREASE)
+ .withType(ScaleType.CHANGE_COUNT)
+ .withValue("1")
+ .withCooldown(Duration.parse("PT5M"))),
+ new ScaleRule()
+ .withMetricTrigger(
+ new MetricTrigger()
+ .withMetricName("Percentage CPU")
+ .withMetricResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .withTimeGrain(Duration.parse("PT2M"))
+ .withStatistic(MetricStatisticType.AVERAGE)
+ .withTimeWindow(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationType.AVERAGE)
+ .withOperator(ComparisonOperationType.GREATER_THAN)
+ .withThreshold(15.0)
+ .withDividePerInstance(false))
+ .withScaleAction(
+ new ScaleAction()
+ .withDirection(ScaleDirection.DECREASE)
+ .withType(ScaleType.CHANGE_COUNT)
+ .withValue("2")
+ .withCooldown(Duration.parse("PT6M")))))
+ .withFixedDate(
+ new TimeWindow()
+ .withTimeZone("UTC")
+ .withStart(OffsetDateTime.parse("2015-03-05T14:00:00Z"))
+ .withEnd(OffsetDateTime.parse("2015-03-05T14:30:00Z"))),
+ new AutoscaleProfile()
+ .withName("saludos")
+ .withCapacity(
+ new ScaleCapacity().withMinimum("1").withMaximum("10").withDefaultProperty("1"))
+ .withRules(
+ Arrays
+ .asList(
+ new ScaleRule()
+ .withMetricTrigger(
+ new MetricTrigger()
+ .withMetricName("Percentage CPU")
+ .withMetricResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .withTimeGrain(Duration.parse("PT1M"))
+ .withStatistic(MetricStatisticType.AVERAGE)
+ .withTimeWindow(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationType.AVERAGE)
+ .withOperator(ComparisonOperationType.GREATER_THAN)
+ .withThreshold(10.0)
+ .withDividePerInstance(false))
+ .withScaleAction(
+ new ScaleAction()
+ .withDirection(ScaleDirection.INCREASE)
+ .withType(ScaleType.CHANGE_COUNT)
+ .withValue("1")
+ .withCooldown(Duration.parse("PT5M"))),
+ new ScaleRule()
+ .withMetricTrigger(
+ new MetricTrigger()
+ .withMetricName("Percentage CPU")
+ .withMetricResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .withTimeGrain(Duration.parse("PT2M"))
+ .withStatistic(MetricStatisticType.AVERAGE)
+ .withTimeWindow(Duration.parse("PT5M"))
+ .withTimeAggregation(TimeAggregationType.AVERAGE)
+ .withOperator(ComparisonOperationType.GREATER_THAN)
+ .withThreshold(15.0)
+ .withDividePerInstance(false))
+ .withScaleAction(
+ new ScaleAction()
+ .withDirection(ScaleDirection.DECREASE)
+ .withType(ScaleType.CHANGE_COUNT)
+ .withValue("2")
+ .withCooldown(Duration.parse("PT6M")))))
+ .withRecurrence(
+ new Recurrence()
+ .withFrequency(RecurrenceFrequency.WEEK)
+ .withSchedule(
+ new RecurrentSchedule()
+ .withTimeZone("UTC")
+ .withDays(Arrays.asList("1"))
+ .withHours(Arrays.asList(5))
+ .withMinutes(Arrays.asList(15))))))
+ .withNotifications(
+ Arrays
+ .asList(
+ new AutoscaleNotification()
+ .withEmail(
+ new EmailNotification()
+ .withSendToSubscriptionAdministrator(true)
+ .withSendToSubscriptionCoAdministrators(true)
+ .withCustomEmails(Arrays.asList("gu@ms.com", "ge@ns.net")))
+ .withWebhooks(
+ Arrays
+ .asList(
+ new WebhookNotification()
+ .withServiceUri("http://myservice.com")
+ .withProperties(mapOf())))))
+ .withEnabled(true)
+ .withTargetResourceUri(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc")
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Baselines_List
+
+```java
+import com.azure.core.util.Context;
+import java.time.Duration;
+
+/** Samples for Baselines List. */
+public final class BaselinesListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json
+ */
+ /**
+ * Sample code: Get metric baselines.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getMetricBaselines(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .baselines()
+ .list(
+ "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1",
+ null,
+ null,
+ "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z",
+ Duration.parse("PT1H"),
+ "average",
+ "Low,Medium",
+ null,
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### DataCollectionEndpoints_Create
+
+```java
+/** Samples for DataCollectionEndpoints Create. */
+public final class DataCollectionEndpointsCreateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsCreate.json
+ */
+ /**
+ * Sample code: Create or update data collection endpoint.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateDataCollectionEndpoint(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .dataCollectionEndpoints()
+ .define("myCollectionEndpoint")
+ .withRegion("eastus")
+ .withExistingResourceGroup("myResourceGroup")
+ .create();
+ }
+}
+```
+
+### DataCollectionEndpoints_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionEndpoints Delete. */
+public final class DataCollectionEndpointsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsDelete.json
+ */
+ /**
+ * Sample code: Delete data collection endpoint.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteDataCollectionEndpoint(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.dataCollectionEndpoints().deleteWithResponse("myResourceGroup", "myCollectionEndpoint", Context.NONE);
+ }
+}
+```
+
+### DataCollectionEndpoints_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionEndpoints GetByResourceGroup. */
+public final class DataCollectionEndpointsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsGet.json
+ */
+ /**
+ * Sample code: Get data collection endpoint.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getDataCollectionEndpoint(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .dataCollectionEndpoints()
+ .getByResourceGroupWithResponse("myResourceGroup", "myCollectionEndpoint", Context.NONE);
+ }
+}
+```
+
+### DataCollectionEndpoints_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionEndpoints List. */
+public final class DataCollectionEndpointsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsListBySubscription.json
+ */
+ /**
+ * Sample code: List data collection endpoints by subscription.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listDataCollectionEndpointsBySubscription(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.dataCollectionEndpoints().list(Context.NONE);
+ }
+}
+```
+
+### DataCollectionEndpoints_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionEndpoints ListByResourceGroup. */
+public final class DataCollectionEndpointsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsListByResourceGroup.json
+ */
+ /**
+ * Sample code: List data collection endpoints by resource group.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listDataCollectionEndpointsByResourceGroup(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.dataCollectionEndpoints().listByResourceGroup("myResourceGroup", Context.NONE);
+ }
+}
+```
+
+### DataCollectionEndpoints_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.DataCollectionEndpointResource;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for DataCollectionEndpoints Update. */
+public final class DataCollectionEndpointsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionEndpointsUpdate.json
+ */
+ /**
+ * Sample code: Update data collection endpoint.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void updateDataCollectionEndpoint(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ DataCollectionEndpointResource resource =
+ manager
+ .dataCollectionEndpoints()
+ .getByResourceGroupWithResponse("myResourceGroup", "myCollectionEndpoint", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tag1", "A", "tag2", "B", "tag3", "C")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DataCollectionRuleAssociations_Create
+
+```java
+/** Samples for DataCollectionRuleAssociations Create. */
+public final class DataCollectionRuleAssociationsCreateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsCreate.json
+ */
+ /**
+ * Sample code: Create or update association.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAssociation(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .dataCollectionRuleAssociations()
+ .define("myAssociation")
+ .withExistingResourceUri(
+ "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm")
+ .create();
+ }
+}
+```
+
+### DataCollectionRuleAssociations_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionRuleAssociations Delete. */
+public final class DataCollectionRuleAssociationsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsDelete.json
+ */
+ /**
+ * Sample code: Delete association.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteAssociation(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .dataCollectionRuleAssociations()
+ .deleteWithResponse(
+ "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm",
+ "myAssociation",
+ Context.NONE);
+ }
+}
+```
+
+### DataCollectionRuleAssociations_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionRuleAssociations Get. */
+public final class DataCollectionRuleAssociationsGetSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsGet.json
+ */
+ /**
+ * Sample code: Get association.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAssociation(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .dataCollectionRuleAssociations()
+ .getWithResponse(
+ "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm",
+ "myAssociation",
+ Context.NONE);
+ }
+}
+```
+
+### DataCollectionRuleAssociations_ListByResource
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionRuleAssociations ListByResource. */
+public final class DataCollectionRuleAssociationsListByResourceSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByResource.json
+ */
+ /**
+ * Sample code: List associations for specified resource.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listAssociationsForSpecifiedResource(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .dataCollectionRuleAssociations()
+ .listByResource(
+ "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm",
+ Context.NONE);
+ }
+}
+```
+
+### DataCollectionRuleAssociations_ListByRule
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionRuleAssociations ListByRule. */
+public final class DataCollectionRuleAssociationsListByRuleSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByRule.json
+ */
+ /**
+ * Sample code: List associations for specified data collection rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listAssociationsForSpecifiedDataCollectionRule(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.dataCollectionRuleAssociations().listByRule("myResourceGroup", "myCollectionRule", Context.NONE);
+ }
+}
+```
+
+### DataCollectionRules_Create
+
+```java
+/** Samples for DataCollectionRules Create. */
+public final class DataCollectionRulesCreateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesCreate.json
+ */
+ /**
+ * Sample code: Create or update data collection rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateDataCollectionRule(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .dataCollectionRules()
+ .define("myCollectionRule")
+ .withRegion("eastus")
+ .withExistingResourceGroup("myResourceGroup")
+ .create();
+ }
+}
+```
+
+### DataCollectionRules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionRules Delete. */
+public final class DataCollectionRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesDelete.json
+ */
+ /**
+ * Sample code: Delete data collection rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteDataCollectionRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.dataCollectionRules().deleteWithResponse("myResourceGroup", "myCollectionRule", Context.NONE);
+ }
+}
+```
+
+### DataCollectionRules_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionRules GetByResourceGroup. */
+public final class DataCollectionRulesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesGet.json
+ */
+ /**
+ * Sample code: Get data collection rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getDataCollectionRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .dataCollectionRules()
+ .getByResourceGroupWithResponse("myResourceGroup", "myCollectionRule", Context.NONE);
+ }
+}
+```
+
+### DataCollectionRules_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionRules List. */
+public final class DataCollectionRulesListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListBySubscription.json
+ */
+ /**
+ * Sample code: List data collection rules by subscription.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listDataCollectionRulesBySubscription(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.dataCollectionRules().list(Context.NONE);
+ }
+}
+```
+
+### DataCollectionRules_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DataCollectionRules ListByResourceGroup. */
+public final class DataCollectionRulesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListByResourceGroup.json
+ */
+ /**
+ * Sample code: List data collection rules by resource group.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listDataCollectionRulesByResourceGroup(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.dataCollectionRules().listByResourceGroup("myResourceGroup", Context.NONE);
+ }
+}
+```
+
+### DataCollectionRules_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.DataCollectionRuleResource;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for DataCollectionRules Update. */
+public final class DataCollectionRulesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesUpdate.json
+ */
+ /**
+ * Sample code: Update data collection rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void updateDataCollectionRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ DataCollectionRuleResource resource =
+ manager
+ .dataCollectionRules()
+ .getByResourceGroupWithResponse("myResourceGroup", "myCollectionRule", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("tag1", "A", "tag2", "B", "tag3", "C")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### DiagnosticSettingsCategory_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettingsCategory Get. */
+public final class DiagnosticSettingsCategoryGetSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSettingsCategory.json
+ */
+ /**
+ * Sample code: Gets the diagnostic setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsTheDiagnosticSetting(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .diagnosticSettingsCategories()
+ .getWithResponse(
+ "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6",
+ "WorkflowRuntime",
+ Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettingsCategory_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettingsCategory List. */
+public final class DiagnosticSettingsCategoryListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettingsCategories.json
+ */
+ /**
+ * Sample code: Gets the diagnostic setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsTheDiagnosticSetting(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .diagnosticSettingsCategories()
+ .listWithResponse(
+ "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6",
+ Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettingsOperation_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.monitor.generated.models.LogSettings;
+import com.azure.resourcemanager.monitor.generated.models.MetricSettings;
+import com.azure.resourcemanager.monitor.generated.models.RetentionPolicy;
+import java.util.Arrays;
+
+/** Samples for DiagnosticSettingsOperation CreateOrUpdate. */
+public final class DiagnosticSettingsOperationCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/createOrUpdateDiagnosticSetting.json
+ */
+ /**
+ * Sample code: Creates or Updates the diagnostic setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createsOrUpdatesTheDiagnosticSetting(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .diagnosticSettingsOperations()
+ .define("mysetting")
+ .withExistingResourceUri(
+ "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6")
+ .withStorageAccountId(
+ "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1")
+ .withEventHubAuthorizationRuleId(
+ "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule")
+ .withEventHubName("myeventhub")
+ .withMetrics(
+ Arrays
+ .asList(
+ new MetricSettings()
+ .withCategory("WorkflowMetrics")
+ .withEnabled(true)
+ .withRetentionPolicy(new RetentionPolicy().withEnabled(false).withDays(0))))
+ .withLogs(
+ Arrays
+ .asList(
+ new LogSettings()
+ .withCategory("WorkflowRuntime")
+ .withEnabled(true)
+ .withRetentionPolicy(new RetentionPolicy().withEnabled(false).withDays(0))))
+ .withWorkspaceId("")
+ .withLogAnalyticsDestinationType("Dedicated")
+ .create();
+ }
+}
+```
+
+### DiagnosticSettingsOperation_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettingsOperation Delete. */
+public final class DiagnosticSettingsOperationDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/deleteDiagnosticSetting.json
+ */
+ /**
+ * Sample code: Deletes the diagnostic setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deletesTheDiagnosticSetting(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .diagnosticSettingsOperations()
+ .deleteWithResponse(
+ "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6",
+ "mysetting",
+ Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettingsOperation_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettingsOperation Get. */
+public final class DiagnosticSettingsOperationGetSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSetting.json
+ */
+ /**
+ * Sample code: Gets the diagnostic setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsTheDiagnosticSetting(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .diagnosticSettingsOperations()
+ .getWithResponse(
+ "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6",
+ "mysetting",
+ Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettingsOperation_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettingsOperation List. */
+public final class DiagnosticSettingsOperationListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettings.json
+ */
+ /**
+ * Sample code: Gets the diagnostic setting.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsTheDiagnosticSetting(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .diagnosticSettingsOperations()
+ .listWithResponse(
+ "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6",
+ Context.NONE);
+ }
+}
+```
+
+### EventCategories_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for EventCategories List. */
+public final class EventCategoriesListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json
+ */
+ /**
+ * Sample code: Get event categories.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getEventCategories(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.eventCategories().list(Context.NONE);
+ }
+}
+```
+
+### LogProfiles_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.monitor.generated.models.RetentionPolicy;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for LogProfiles CreateOrUpdate. */
+public final class LogProfilesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json
+ */
+ /**
+ * Sample code: Create or update a log profile.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateALogProfile(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .logProfiles()
+ .define("Rac46PostSwapRG")
+ .withRegion("")
+ .withLocations(Arrays.asList("global"))
+ .withCategories(Arrays.asList("Write", "Delete", "Action"))
+ .withRetentionPolicy(new RetentionPolicy().withEnabled(true).withDays(3))
+ .withTags(mapOf())
+ .withStorageAccountId(
+ "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162")
+ .withServiceBusRuleId("")
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### LogProfiles_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LogProfiles Delete. */
+public final class LogProfilesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json
+ */
+ /**
+ * Sample code: Delete log profile.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteLogProfile(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.logProfiles().deleteWithResponse("Rac46PostSwapRG", Context.NONE);
+ }
+}
+```
+
+### LogProfiles_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LogProfiles Get. */
+public final class LogProfilesGetSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json
+ */
+ /**
+ * Sample code: Get log profile.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getLogProfile(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.logProfiles().getWithResponse("default", Context.NONE);
+ }
+}
+```
+
+### LogProfiles_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for LogProfiles List. */
+public final class LogProfilesListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json
+ */
+ /**
+ * Sample code: List log profiles.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listLogProfiles(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.logProfiles().list(Context.NONE);
+ }
+}
+```
+
+### LogProfiles_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.LogProfileResource;
+import com.azure.resourcemanager.monitor.generated.models.RetentionPolicy;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for LogProfiles Update. */
+public final class LogProfilesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json
+ */
+ /**
+ * Sample code: Patch a log profile.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void patchALogProfile(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ LogProfileResource resource = manager.logProfiles().getWithResponse("Rac46PostSwapRG", Context.NONE).getValue();
+ resource
+ .update()
+ .withTags(mapOf("key1", "value1"))
+ .withStorageAccountId(
+ "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162")
+ .withServiceBusRuleId("")
+ .withLocations(Arrays.asList("global"))
+ .withCategories(Arrays.asList("Write", "Delete", "Action"))
+ .withRetentionPolicy(new RetentionPolicy().withEnabled(true).withDays(3))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### MetricAlerts_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.monitor.generated.models.AggregationTypeEnum;
+import com.azure.resourcemanager.monitor.generated.models.DynamicMetricCriteria;
+import com.azure.resourcemanager.monitor.generated.models.DynamicThresholdFailingPeriods;
+import com.azure.resourcemanager.monitor.generated.models.DynamicThresholdOperator;
+import com.azure.resourcemanager.monitor.generated.models.DynamicThresholdSensitivity;
+import com.azure.resourcemanager.monitor.generated.models.MetricAlertAction;
+import com.azure.resourcemanager.monitor.generated.models.MetricAlertMultipleResourceMultipleMetricCriteria;
+import com.azure.resourcemanager.monitor.generated.models.MetricAlertSingleResourceMultipleMetricCriteria;
+import com.azure.resourcemanager.monitor.generated.models.MetricCriteria;
+import com.azure.resourcemanager.monitor.generated.models.MetricDimension;
+import com.azure.resourcemanager.monitor.generated.models.Operator;
+import com.azure.resourcemanager.monitor.generated.models.WebtestLocationAvailabilityCriteria;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for MetricAlerts CreateOrUpdate. */
+public final class MetricAlertsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSubscription.json
+ */
+ /**
+ * Sample code: Create or update an alert rule on Subscription.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnAlertRuleOnSubscription(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .define("MetricAlertAtSubscriptionLevel")
+ .withRegion("global")
+ .withExistingResourceGroup("gigtest")
+ .withSeverity(3)
+ .withEnabled(true)
+ .withScopes(Arrays.asList("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"))
+ .withEvaluationFrequency(Duration.parse("PT1M"))
+ .withWindowSize(Duration.parse("PT15M"))
+ .withCriteria(
+ new MetricAlertMultipleResourceMultipleMetricCriteria()
+ .withAllOf(
+ Arrays
+ .asList(
+ new MetricCriteria()
+ .withName("High_CPU_80")
+ .withMetricName("Percentage CPU")
+ .withMetricNamespace("microsoft.compute/virtualmachines")
+ .withTimeAggregation(AggregationTypeEnum.AVERAGE)
+ .withDimensions(Arrays.asList())
+ .withOperator(Operator.GREATER_THAN)
+ .withThreshold(80.5))))
+ .withTags(mapOf())
+ .withDescription("This is the description of the rule1")
+ .withTargetResourceType("Microsoft.Compute/virtualMachines")
+ .withTargetResourceRegion("southcentralus")
+ .withAutoMitigate(true)
+ .withActions(
+ Arrays
+ .asList(
+ new MetricAlertAction()
+ .withActionGroupId(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
+ .withWebhookProperties(mapOf("key11", "value11", "key12", "value12"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertResourceGroup.json
+ */
+ /**
+ * Sample code: Create or update an alert rule on Resource group(s).
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnAlertRuleOnResourceGroupS(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .define("MetricAlertAtResourceGroupLevel")
+ .withRegion("global")
+ .withExistingResourceGroup("gigtest1")
+ .withSeverity(3)
+ .withEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1",
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2"))
+ .withEvaluationFrequency(Duration.parse("PT1M"))
+ .withWindowSize(Duration.parse("PT15M"))
+ .withCriteria(
+ new MetricAlertMultipleResourceMultipleMetricCriteria()
+ .withAllOf(
+ Arrays
+ .asList(
+ new MetricCriteria()
+ .withName("High_CPU_80")
+ .withMetricName("Percentage CPU")
+ .withMetricNamespace("microsoft.compute/virtualmachines")
+ .withTimeAggregation(AggregationTypeEnum.AVERAGE)
+ .withDimensions(Arrays.asList())
+ .withOperator(Operator.GREATER_THAN)
+ .withThreshold(80.5))))
+ .withTags(mapOf())
+ .withDescription("This is the description of the rule1")
+ .withTargetResourceType("Microsoft.Compute/virtualMachines")
+ .withTargetResourceRegion("southcentralus")
+ .withAutoMitigate(true)
+ .withActions(
+ Arrays
+ .asList(
+ new MetricAlertAction()
+ .withActionGroupId(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
+ .withWebhookProperties(mapOf("key11", "value11", "key12", "value12"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertWithDimensions.json
+ */
+ /**
+ * Sample code: Create or update an alert rules with dimensions.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnAlertRulesWithDimensions(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .define("MetricAlertOnMultipleDimensions")
+ .withRegion("global")
+ .withExistingResourceGroup("gigtest")
+ .withSeverity(3)
+ .withEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource"))
+ .withEvaluationFrequency(Duration.parse("PT1H"))
+ .withWindowSize(Duration.parse("P1D"))
+ .withCriteria(
+ new MetricAlertMultipleResourceMultipleMetricCriteria()
+ .withAllOf(
+ Arrays
+ .asList(
+ new MetricCriteria()
+ .withName("Metric1")
+ .withMetricName("Availability")
+ .withMetricNamespace("Microsoft.KeyVault/vaults")
+ .withTimeAggregation(AggregationTypeEnum.AVERAGE)
+ .withDimensions(
+ Arrays
+ .asList(
+ new MetricDimension()
+ .withName("ActivityName")
+ .withOperator("Include")
+ .withValues(Arrays.asList("*")),
+ new MetricDimension()
+ .withName("StatusCode")
+ .withOperator("Include")
+ .withValues(Arrays.asList("200"))))
+ .withOperator(Operator.GREATER_THAN)
+ .withThreshold(55.0))))
+ .withTags(mapOf())
+ .withDescription("This is the description of the rule1")
+ .withAutoMitigate(true)
+ .withActions(
+ Arrays
+ .asList(
+ new MetricAlertAction()
+ .withActionGroupId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
+ .withWebhookProperties(mapOf("key11", "value11", "key12", "value12"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateWebTestMetricAlert.json
+ */
+ /**
+ * Sample code: Create or update a web test alert rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAWebTestAlertRule(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .define("webtest-name-example")
+ .withRegion("global")
+ .withExistingResourceGroup("rg-example")
+ .withSeverity(4)
+ .withEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example",
+ "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example"))
+ .withEvaluationFrequency(Duration.parse("PT1M"))
+ .withWindowSize(Duration.parse("PT15M"))
+ .withCriteria(
+ new WebtestLocationAvailabilityCriteria()
+ .withWebTestId(
+ "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example")
+ .withComponentId(
+ "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example")
+ .withFailedLocationCount(2f))
+ .withTags(
+ mapOf(
+ "hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example",
+ "Resource",
+ "hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example",
+ "Resource"))
+ .withDescription("Automatically created alert rule for availability test \"component-example\" a")
+ .withActions(Arrays.asList())
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json
+ */
+ /**
+ * Sample code: Create or update a dynamic alert rule for Single Resource.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateADynamicAlertRuleForSingleResource(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .define("chiricutin")
+ .withRegion("global")
+ .withExistingResourceGroup("gigtest")
+ .withSeverity(3)
+ .withEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"))
+ .withEvaluationFrequency(Duration.parse("PT1M"))
+ .withWindowSize(Duration.parse("PT15M"))
+ .withCriteria(
+ new MetricAlertMultipleResourceMultipleMetricCriteria()
+ .withAllOf(
+ Arrays
+ .asList(
+ new DynamicMetricCriteria()
+ .withName("High_CPU_80")
+ .withMetricName("Percentage CPU")
+ .withMetricNamespace("microsoft.compute/virtualmachines")
+ .withTimeAggregation(AggregationTypeEnum.AVERAGE)
+ .withDimensions(Arrays.asList())
+ .withOperator(DynamicThresholdOperator.GREATER_OR_LESS_THAN)
+ .withAlertSensitivity(DynamicThresholdSensitivity.MEDIUM)
+ .withFailingPeriods(
+ new DynamicThresholdFailingPeriods()
+ .withNumberOfEvaluationPeriods(4f)
+ .withMinFailingPeriodsToAlert(4f))
+ .withIgnoreDataBefore(OffsetDateTime.parse("2019-04-04T21:00:00.000Z")))))
+ .withTags(mapOf())
+ .withDescription("This is the description of the rule1")
+ .withAutoMitigate(true)
+ .withActions(
+ Arrays
+ .asList(
+ new MetricAlertAction()
+ .withActionGroupId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
+ .withWebhookProperties(mapOf("key11", "value11", "key12", "value12"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json
+ */
+ /**
+ * Sample code: Create or update an alert rule for Single Resource.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnAlertRuleForSingleResource(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .define("chiricutin")
+ .withRegion("global")
+ .withExistingResourceGroup("gigtest")
+ .withSeverity(3)
+ .withEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"))
+ .withEvaluationFrequency(Duration.parse("Pt1m"))
+ .withWindowSize(Duration.parse("Pt15m"))
+ .withCriteria(
+ new MetricAlertSingleResourceMultipleMetricCriteria()
+ .withAllOf(
+ Arrays
+ .asList(
+ new MetricCriteria()
+ .withName("High_CPU_80")
+ .withMetricName("\\Processor(_Total)\\% Processor Time")
+ .withTimeAggregation(AggregationTypeEnum.AVERAGE)
+ .withDimensions(Arrays.asList())
+ .withOperator(Operator.GREATER_THAN)
+ .withThreshold(80.5))))
+ .withTags(mapOf())
+ .withDescription("This is the description of the rule1")
+ .withAutoMitigate(true)
+ .withActions(
+ Arrays
+ .asList(
+ new MetricAlertAction()
+ .withActionGroupId(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
+ .withWebhookProperties(mapOf("key11", "value11", "key12", "value12"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertMultipleResource.json
+ */
+ /**
+ * Sample code: Create or update an alert rule for Multiple Resource.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnAlertRuleForMultipleResource(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .define("MetricAlertOnMultipleResources")
+ .withRegion("global")
+ .withExistingResourceGroup("gigtest")
+ .withSeverity(3)
+ .withEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2"))
+ .withEvaluationFrequency(Duration.parse("PT1M"))
+ .withWindowSize(Duration.parse("PT15M"))
+ .withCriteria(
+ new MetricAlertMultipleResourceMultipleMetricCriteria()
+ .withAllOf(
+ Arrays
+ .asList(
+ new MetricCriteria()
+ .withName("High_CPU_80")
+ .withMetricName("Percentage CPU")
+ .withMetricNamespace("microsoft.compute/virtualmachines")
+ .withTimeAggregation(AggregationTypeEnum.AVERAGE)
+ .withDimensions(Arrays.asList())
+ .withOperator(Operator.GREATER_THAN)
+ .withThreshold(80.5))))
+ .withTags(mapOf())
+ .withDescription("This is the description of the rule1")
+ .withTargetResourceType("Microsoft.Compute/virtualMachines")
+ .withTargetResourceRegion("southcentralus")
+ .withAutoMitigate(true)
+ .withActions(
+ Arrays
+ .asList(
+ new MetricAlertAction()
+ .withActionGroupId(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
+ .withWebhookProperties(mapOf("key11", "value11", "key12", "value12"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json
+ */
+ /**
+ * Sample code: Create or update a dynamic alert rule for Multiple Resources.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateADynamicAlertRuleForMultipleResources(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .define("MetricAlertOnMultipleResources")
+ .withRegion("global")
+ .withExistingResourceGroup("gigtest")
+ .withSeverity(3)
+ .withEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2"))
+ .withEvaluationFrequency(Duration.parse("PT1M"))
+ .withWindowSize(Duration.parse("PT15M"))
+ .withCriteria(
+ new MetricAlertMultipleResourceMultipleMetricCriteria()
+ .withAllOf(
+ Arrays
+ .asList(
+ new DynamicMetricCriteria()
+ .withName("High_CPU_80")
+ .withMetricName("Percentage CPU")
+ .withMetricNamespace("microsoft.compute/virtualmachines")
+ .withTimeAggregation(AggregationTypeEnum.AVERAGE)
+ .withDimensions(Arrays.asList())
+ .withOperator(DynamicThresholdOperator.GREATER_OR_LESS_THAN)
+ .withAlertSensitivity(DynamicThresholdSensitivity.MEDIUM)
+ .withFailingPeriods(
+ new DynamicThresholdFailingPeriods()
+ .withNumberOfEvaluationPeriods(4f)
+ .withMinFailingPeriodsToAlert(4f)))))
+ .withTags(mapOf())
+ .withDescription("This is the description of the rule1")
+ .withTargetResourceType("Microsoft.Compute/virtualMachines")
+ .withTargetResourceRegion("southcentralus")
+ .withAutoMitigate(true)
+ .withActions(
+ Arrays
+ .asList(
+ new MetricAlertAction()
+ .withActionGroupId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
+ .withWebhookProperties(mapOf("key11", "value11", "key12", "value12"))))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### MetricAlerts_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MetricAlerts Delete. */
+public final class MetricAlertsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json
+ */
+ /**
+ * Sample code: Delete an alert rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteAnAlertRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.metricAlerts().deleteWithResponse("gigtest", "chiricutin", Context.NONE);
+ }
+}
+```
+
+### MetricAlerts_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MetricAlerts GetByResourceGroup. */
+public final class MetricAlertsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertResourceGroup.json
+ */
+ /**
+ * Sample code: Get an alert rule on resource group(s).
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnAlertRuleOnResourceGroupS(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .getByResourceGroupWithResponse("gigtest1", "MetricAlertAtResourceGroupLevel", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json
+ */
+ /**
+ * Sample code: Get a dynamic alert rule for multiple resources.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getADynamicAlertRuleForMultipleResources(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .getByResourceGroupWithResponse("gigtest", "MetricAlertOnMultipleResources", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getWebTestMetricAlert.json
+ */
+ /**
+ * Sample code: Get a web test alert rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAWebTestAlertRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.metricAlerts().getByResourceGroupWithResponse("rg-example", "webtest-name-example", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json
+ */
+ /**
+ * Sample code: Get an alert rule for single resource.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnAlertRuleForSingleResource(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.metricAlerts().getByResourceGroupWithResponse("gigtest", "chiricutin", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSubscription.json
+ */
+ /**
+ * Sample code: Get an alert rule on subscription.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnAlertRuleOnSubscription(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .getByResourceGroupWithResponse("gigtest", "MetricAlertAtSubscriptionLevel", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json
+ */
+ /**
+ * Sample code: Get a dynamic alert rule for single resource.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getADynamicAlertRuleForSingleResource(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.metricAlerts().getByResourceGroupWithResponse("gigtest", "chiricutin", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertMultipleResource.json
+ */
+ /**
+ * Sample code: Get an alert rule for multiple resources.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnAlertRuleForMultipleResources(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlerts()
+ .getByResourceGroupWithResponse("gigtest", "MetricAlertOnMultipleResources", Context.NONE);
+ }
+}
+```
+
+### MetricAlerts_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MetricAlerts List. */
+public final class MetricAlertsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json
+ */
+ /**
+ * Sample code: List metric alert rules.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listMetricAlertRules(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.metricAlerts().list(Context.NONE);
+ }
+}
+```
+
+### MetricAlerts_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MetricAlerts ListByResourceGroup. */
+public final class MetricAlertsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json
+ */
+ /**
+ * Sample code: List metric alert rules.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listMetricAlertRules(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.metricAlerts().listByResourceGroup("gigtest", Context.NONE);
+ }
+}
+```
+
+### MetricAlerts_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.AggregationTypeEnum;
+import com.azure.resourcemanager.monitor.generated.models.MetricAlertAction;
+import com.azure.resourcemanager.monitor.generated.models.MetricAlertResource;
+import com.azure.resourcemanager.monitor.generated.models.MetricAlertSingleResourceMultipleMetricCriteria;
+import com.azure.resourcemanager.monitor.generated.models.MetricCriteria;
+import com.azure.resourcemanager.monitor.generated.models.Operator;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for MetricAlerts Update. */
+public final class MetricAlertsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json
+ */
+ /**
+ * Sample code: Create or update an alert rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateAnAlertRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ MetricAlertResource resource =
+ manager.metricAlerts().getByResourceGroupWithResponse("gigtest", "chiricutin", Context.NONE).getValue();
+ resource
+ .update()
+ .withTags(mapOf())
+ .withDescription("This is the description of the rule1")
+ .withSeverity(3)
+ .withEnabled(true)
+ .withScopes(
+ Arrays
+ .asList(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"))
+ .withEvaluationFrequency(Duration.parse("Pt1m"))
+ .withWindowSize(Duration.parse("Pt15m"))
+ .withCriteria(
+ new MetricAlertSingleResourceMultipleMetricCriteria()
+ .withAllOf(
+ Arrays
+ .asList(
+ new MetricCriteria()
+ .withName("High_CPU_80")
+ .withMetricName("\\Processor(_Total)\\% Processor Time")
+ .withTimeAggregation(AggregationTypeEnum.AVERAGE)
+ .withDimensions(Arrays.asList())
+ .withOperator(Operator.GREATER_THAN)
+ .withThreshold(80.5))))
+ .withAutoMitigate(true)
+ .withActions(
+ Arrays
+ .asList(
+ new MetricAlertAction()
+ .withActionGroupId(
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
+ .withWebhookProperties(mapOf("key11", "value11", "key12", "value12"))))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### MetricAlertsStatus_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MetricAlertsStatus List. */
+public final class MetricAlertsStatusListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json
+ */
+ /**
+ * Sample code: Get an alert rule status.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnAlertRuleStatus(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.metricAlertsStatus().listWithResponse("gigtest", "chiricutin", Context.NONE);
+ }
+}
+```
+
+### MetricAlertsStatus_ListByName
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MetricAlertsStatus ListByName. */
+public final class MetricAlertsStatusListByNameSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json
+ */
+ /**
+ * Sample code: Get an alert rule status.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAnAlertRuleStatus(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricAlertsStatus()
+ .listByNameWithResponse(
+ "EastUs",
+ "custom1",
+ "cmVzb3VyY2VJZD0vc3Vic2NyaXB0aW9ucy8xNGRkZjBjNS03N2M1LTRiNTMtODRmNi1lMWZhNDNhZDY4ZjcvcmVzb3VyY2VHcm91cHMvZ2lndGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL2dpZ3dhZG1l",
+ Context.NONE);
+ }
+}
+```
+
+### MetricDefinitions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MetricDefinitions List. */
+public final class MetricDefinitionsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitions.json
+ */
+ /**
+ * Sample code: Get Metric Definitions without filter.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getMetricDefinitionsWithoutFilter(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricDefinitions()
+ .list(
+ "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions",
+ "Microsoft.Web/sites",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json
+ */
+ /**
+ * Sample code: Get Application Insights Metric Definitions without filter.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getApplicationInsightsMetricDefinitionsWithoutFilter(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricDefinitions()
+ .list(
+ "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions",
+ "microsoft.insights/components",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsMetricClass.json
+ */
+ /**
+ * Sample code: Get StorageCache Metric Definitions with metric class.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getStorageCacheMetricDefinitionsWithMetricClass(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricDefinitions()
+ .list(
+ "subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache",
+ "microsoft.storagecache/caches",
+ Context.NONE);
+ }
+}
+```
+
+### MetricNamespaces_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MetricNamespaces List. */
+public final class MetricNamespacesListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json
+ */
+ /**
+ * Sample code: Get Metric Namespaces without filter.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getMetricNamespacesWithoutFilter(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metricNamespaces()
+ .list(
+ "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill",
+ "2020-08-31T15:53:00Z",
+ Context.NONE);
+ }
+}
+```
+
+### Metrics_List
+
+```java
+import com.azure.core.util.Context;
+import java.time.Duration;
+
+/** Samples for Metrics List. */
+public final class MetricsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json
+ */
+ /**
+ * Sample code: Get Metric for data.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getMetricForData(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metrics()
+ .listWithResponse(
+ "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default",
+ "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z",
+ Duration.parse("PT1M"),
+ null,
+ "Average,count",
+ 3,
+ "Average asc",
+ "BlobType eq '*'",
+ null,
+ "Microsoft.Storage/storageAccounts/blobServices",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json
+ */
+ /**
+ * Sample code: Get Metric for metadata.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getMetricForMetadata(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metrics()
+ .listWithResponse(
+ "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default",
+ "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z",
+ Duration.parse("PT1M"),
+ null,
+ "Average,count",
+ 3,
+ "Average asc",
+ "BlobType eq '*'",
+ null,
+ "Microsoft.Storage/storageAccounts/blobServices",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricError.json
+ */
+ /**
+ * Sample code: Get Metric with error.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getMetricWithError(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .metrics()
+ .listWithResponse(
+ "subscriptions/ac41e21f-afd6-4a79-8070-f01eba278f97/resourceGroups/todking/providers/Microsoft.DocumentDb/databaseAccounts/tk-cosmos-mongo",
+ "2021-06-07T21:51:00Z/2021-06-08T01:51:00Z",
+ Duration.parse("FULL"),
+ "MongoRequestsCount,MongoRequests",
+ "average",
+ null,
+ null,
+ null,
+ null,
+ "microsoft.documentdb/databaseaccounts",
+ Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json
+ */
+ /**
+ * Sample code: Get a list of operations for a resource provider.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getAListOfOperationsForAResourceProvider(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.operations().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.monitor.generated.models.PrivateLinkServiceConnectionStateProperty;
+
+/** Samples for PrivateEndpointConnections CreateOrUpdate. */
+public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateEndpointConnectionUpdate.json
+ */
+ /**
+ * Sample code: Approve or reject a private endpoint connection with a given name.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void approveOrRejectAPrivateEndpointConnectionWithAGivenName(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateEndpointConnections()
+ .define("private-endpoint-connection-name")
+ .withExistingPrivateLinkScope("MyResourceGroup", "MyPrivateLinkScope")
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionStateProperty()
+ .withStatus("Approved")
+ .withDescription("Approved by johndoe@contoso.com"))
+ .create();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateEndpointConnectionDelete.json
+ */
+ /**
+ * Sample code: Deletes a private endpoint connection with a given name.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deletesAPrivateEndpointConnectionWithAGivenName(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateEndpointConnections()
+ .delete("MyResourceGroup", "MyPrivateLinkScope", "private-endpoint-connection-name", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateEndpointConnectionGet.json
+ */
+ /**
+ * Sample code: Gets private endpoint connection.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsPrivateEndpointConnection(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("MyResourceGroup", "MyPrivateLinkScope", "private-endpoint-connection-name", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_ListByPrivateLinkScope
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections ListByPrivateLinkScope. */
+public final class PrivateEndpointConnectionsListByPrivateLinkScopeSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateEndpointConnectionList.json
+ */
+ /**
+ * Sample code: Gets list of private endpoint connections on a private link scope.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateEndpointConnections()
+ .listByPrivateLinkScope("MyResourceGroup", "MyPrivateLinkScope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources Get. */
+public final class PrivateLinkResourcesGetSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json
+ */
+ /**
+ * Sample code: Gets private endpoint connection.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsPrivateEndpointConnection(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateLinkResources()
+ .getWithResponse("MyResourceGroup", "MyPrivateLinkScope", "azuremonitor", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_ListByPrivateLinkScope
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources ListByPrivateLinkScope. */
+public final class PrivateLinkResourcesListByPrivateLinkScopeSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json
+ */
+ /**
+ * Sample code: Gets private endpoint connection.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsPrivateEndpointConnection(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.privateLinkResources().listByPrivateLinkScope("MyResourceGroup", "MyPrivateLinkScope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopeOperationStatus_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopeOperationStatus GetByResourceGroup. */
+public final class PrivateLinkScopeOperationStatusGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/privateLinkScopeOperationStatuses.json
+ */
+ /**
+ * Sample code: Get specific operation status.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getSpecificOperationStatus(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateLinkScopeOperationStatus()
+ .getByResourceGroupWithResponse("MyResourceGroup", "713192d7-503f-477a-9cfe-4efc3ee2bd11", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopedResources_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.ScopedResource;
+
+/** Samples for PrivateLinkScopedResources CreateOrUpdate. */
+public final class PrivateLinkScopedResourcesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopedResourceUpdate.json
+ */
+ /**
+ * Sample code: Update a scoped resource in a private link scope.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void updateAScopedResourceInAPrivateLinkScope(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ ScopedResource resource =
+ manager
+ .privateLinkScopedResources()
+ .getWithResponse("MyResourceGroup", "MyPrivateLinkScope", "scoped-resource-name", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withLinkedResourceId(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component")
+ .apply();
+ }
+}
+```
+
+### PrivateLinkScopedResources_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopedResources Delete. */
+public final class PrivateLinkScopedResourcesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopedResourceDelete.json
+ */
+ /**
+ * Sample code: Deletes a scoped resource with a given name.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deletesAScopedResourceWithAGivenName(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateLinkScopedResources()
+ .delete("MyResourceGroup", "MyPrivateLinkScope", "scoped-resource-name", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopedResources_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopedResources Get. */
+public final class PrivateLinkScopedResourcesGetSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopedResourceGet.json
+ */
+ /**
+ * Sample code: Gets private link scoped resource.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsPrivateLinkScopedResource(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateLinkScopedResources()
+ .getWithResponse("MyResourceGroup", "MyPrivateLinkScope", "scoped-resource-name", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopedResources_ListByPrivateLinkScope
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopedResources ListByPrivateLinkScope. */
+public final class PrivateLinkScopedResourcesListByPrivateLinkScopeSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopedResourceList.json
+ */
+ /**
+ * Sample code: Gets list of scoped resources in a private link scope.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getsListOfScopedResourcesInAPrivateLinkScope(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateLinkScopedResources()
+ .listByPrivateLinkScope("MyResourceGroup", "MyPrivateLinkScope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_CreateOrUpdate
+
+```java
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for PrivateLinkScopes CreateOrUpdate. */
+public final class PrivateLinkScopesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopesCreate.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeCreate.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void privateLinkScopeCreate(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateLinkScopes()
+ .define("my-privatelinkscope")
+ .withRegion("Global")
+ .withExistingResourceGroup("my-resource-group")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopesUpdate.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeUpdate.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void privateLinkScopeUpdate(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateLinkScopes()
+ .define("my-privatelinkscope")
+ .withRegion("Global")
+ .withExistingResourceGroup("my-resource-group")
+ .withTags(mapOf("Tag1", "Value1"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### PrivateLinkScopes_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes Delete. */
+public final class PrivateLinkScopesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopesDelete.json
+ */
+ /**
+ * Sample code: PrivateLinkScopesDelete.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void privateLinkScopesDelete(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.privateLinkScopes().delete("my-resource-group", "my-privatelinkscope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes GetByResourceGroup. */
+public final class PrivateLinkScopesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopesGet.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeGet.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void privateLinkScopeGet(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .privateLinkScopes()
+ .getByResourceGroupWithResponse("my-resource-group", "my-privatelinkscope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes List. */
+public final class PrivateLinkScopesListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopesList.json
+ */
+ /**
+ * Sample code: PrivateLinkScopesList.json.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void privateLinkScopesListJson(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.privateLinkScopes().list(Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes ListByResourceGroup. */
+public final class PrivateLinkScopesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopesListByResourceGroup.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeListByResourceGroup.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void privateLinkScopeListByResourceGroup(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.privateLinkScopes().listByResourceGroup("my-resource-group", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_UpdateTags
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.AzureMonitorPrivateLinkScope;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for PrivateLinkScopes UpdateTags. */
+public final class PrivateLinkScopesUpdateTagsSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2019-10-17-preview/examples/PrivateLinkScopesUpdateTagsOnly.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeUpdateTagsOnly.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void privateLinkScopeUpdateTagsOnly(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ AzureMonitorPrivateLinkScope resource =
+ manager
+ .privateLinkScopes()
+ .getByResourceGroupWithResponse("my-resource-group", "my-privatelinkscope", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("Tag1", "Value1", "Tag2", "Value2")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ScheduledQueryRules_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.monitor.generated.models.AlertSeverity;
+import com.azure.resourcemanager.monitor.generated.models.AlertingAction;
+import com.azure.resourcemanager.monitor.generated.models.AzNsActionGroup;
+import com.azure.resourcemanager.monitor.generated.models.ConditionalOperator;
+import com.azure.resourcemanager.monitor.generated.models.Criteria;
+import com.azure.resourcemanager.monitor.generated.models.Enabled;
+import com.azure.resourcemanager.monitor.generated.models.LogMetricTrigger;
+import com.azure.resourcemanager.monitor.generated.models.LogToMetricAction;
+import com.azure.resourcemanager.monitor.generated.models.MetricTriggerType;
+import com.azure.resourcemanager.monitor.generated.models.QueryType;
+import com.azure.resourcemanager.monitor.generated.models.Schedule;
+import com.azure.resourcemanager.monitor.generated.models.Source;
+import com.azure.resourcemanager.monitor.generated.models.TriggerCondition;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ScheduledQueryRules CreateOrUpdate. */
+public final class ScheduledQueryRulesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json
+ */
+ /**
+ * Sample code: Create or Update rule - LogToMetricAction.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateRuleLogToMetricAction(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .scheduledQueryRules()
+ .define("logtometricfoo")
+ .withRegion("West Europe")
+ .withExistingResourceGroup("alertsweu")
+ .withSource(
+ new Source()
+ .withDataSourceId(
+ "/subscriptions/af52d502-a447-4bc6-8cb7-4780fbb00490/resourceGroups/alertsweu/providers/Microsoft.OperationalInsights/workspaces/alertsweu"))
+ .withAction(
+ new LogToMetricAction()
+ .withCriteria(
+ Arrays
+ .asList(
+ new Criteria().withMetricName("Average_% Idle Time").withDimensions(Arrays.asList()))))
+ .withTags(mapOf())
+ .withDescription("log to metric description")
+ .withEnabled(Enabled.TRUE)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRuleswithCrossResource.json
+ */
+ /**
+ * Sample code: Create or Update rule - AlertingAction with Cross-Resource.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateRuleAlertingActionWithCrossResource(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .scheduledQueryRules()
+ .define("SampleCrossResourceAlert")
+ .withRegion("eastus")
+ .withExistingResourceGroup("Rac46PostSwapRG")
+ .withSource(
+ new Source()
+ .withQuery("union requests, workspace(\"sampleWorkspace\").Update")
+ .withAuthorizedResources(
+ Arrays
+ .asList(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.OperationalInsights/workspaces/sampleWorkspace",
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/components/sampleAI"))
+ .withDataSourceId(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/components/sampleAI")
+ .withQueryType(QueryType.RESULT_COUNT))
+ .withAction(
+ new AlertingAction()
+ .withSeverity(AlertSeverity.THREE)
+ .withAznsAction(
+ new AzNsActionGroup()
+ .withActionGroup(
+ Arrays
+ .asList(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/actiongroups/test-ag"))
+ .withEmailSubject("Cross Resource Mail!!"))
+ .withTrigger(
+ new TriggerCondition()
+ .withThresholdOperator(ConditionalOperator.GREATER_THAN)
+ .withThreshold(5000.0)))
+ .withTags(mapOf())
+ .withDescription("Sample Cross Resource alert")
+ .withEnabled(Enabled.TRUE)
+ .withSchedule(new Schedule().withFrequencyInMinutes(60).withTimeWindowInMinutes(60))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRules.json
+ */
+ /**
+ * Sample code: Create or Update rule - AlertingAction.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void createOrUpdateRuleAlertingAction(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .scheduledQueryRules()
+ .define("logalertfoo")
+ .withRegion("eastus")
+ .withExistingResourceGroup("Rac46PostSwapRG")
+ .withSource(
+ new Source()
+ .withQuery("Heartbeat | summarize AggregatedValue = count() by bin(TimeGenerated, 5m)")
+ .withDataSourceId(
+ "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.OperationalInsights/workspaces/sampleWorkspace")
+ .withQueryType(QueryType.RESULT_COUNT))
+ .withAction(
+ new AlertingAction()
+ .withSeverity(AlertSeverity.ONE)
+ .withAznsAction(
+ new AzNsActionGroup()
+ .withActionGroup(Arrays.asList())
+ .withEmailSubject("Email Header")
+ .withCustomWebhookPayload("{}"))
+ .withTrigger(
+ new TriggerCondition()
+ .withThresholdOperator(ConditionalOperator.GREATER_THAN)
+ .withThreshold(3.0)
+ .withMetricTrigger(
+ new LogMetricTrigger()
+ .withThresholdOperator(ConditionalOperator.GREATER_THAN)
+ .withThreshold(5.0)
+ .withMetricTriggerType(MetricTriggerType.CONSECUTIVE)
+ .withMetricColumn("Computer"))))
+ .withTags(mapOf())
+ .withDescription("log alert description")
+ .withEnabled(Enabled.TRUE)
+ .withSchedule(new Schedule().withFrequencyInMinutes(15).withTimeWindowInMinutes(15))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ScheduledQueryRules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ScheduledQueryRules Delete. */
+public final class ScheduledQueryRulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/deleteScheduledQueryRules.json
+ */
+ /**
+ * Sample code: Delete rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void deleteRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.scheduledQueryRules().deleteWithResponse("Rac46PostSwapRG", "logalertfoo", Context.NONE);
+ }
+}
+```
+
+### ScheduledQueryRules_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ScheduledQueryRules GetByResourceGroup. */
+public final class ScheduledQueryRulesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/getScheduledQueryRules.json
+ */
+ /**
+ * Sample code: Get rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.scheduledQueryRules().getByResourceGroupWithResponse("Rac46PostSwapRG", "logalertfoo", Context.NONE);
+ }
+}
+```
+
+### ScheduledQueryRules_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ScheduledQueryRules List. */
+public final class ScheduledQueryRulesListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/listScheduledQueryRules.json
+ */
+ /**
+ * Sample code: List rules.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listRules(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.scheduledQueryRules().list(null, Context.NONE);
+ }
+}
+```
+
+### ScheduledQueryRules_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ScheduledQueryRules ListByResourceGroup. */
+public final class ScheduledQueryRulesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/listScheduledQueryRules.json
+ */
+ /**
+ * Sample code: List rules.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void listRules(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.scheduledQueryRules().listByResourceGroup("gigtest", null, Context.NONE);
+ }
+}
+```
+
+### ScheduledQueryRules_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.models.Enabled;
+import com.azure.resourcemanager.monitor.generated.models.LogSearchRuleResource;
+
+/** Samples for ScheduledQueryRules Update. */
+public final class ScheduledQueryRulesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/examples/patchScheduledQueryRules.json
+ */
+ /**
+ * Sample code: Patch Log Search Rule.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void patchLogSearchRule(com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ LogSearchRuleResource resource =
+ manager
+ .scheduledQueryRules()
+ .getByResourceGroupWithResponse("my-resource-group", "logalertfoo", Context.NONE)
+ .getValue();
+ resource.update().withEnabled(Enabled.TRUE).apply();
+ }
+}
+```
+
+### TenantActivityLogs_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for TenantActivityLogs List. */
+public final class TenantActivityLogsListSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFilteredAndSelected.json
+ */
+ /**
+ * Sample code: Get Tenant Activity Logs with filter and select.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getTenantActivityLogsWithFilterAndSelect(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .tenantActivityLogs()
+ .list(
+ "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and"
+ + " resourceGroupName eq 'MSSupportGroup'",
+ "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsSelected.json
+ */
+ /**
+ * Sample code: Get Tenant Activity Logs with select.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getTenantActivityLogsWithSelect(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .tenantActivityLogs()
+ .list(
+ null,
+ "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json
+ */
+ /**
+ * Sample code: Get Tenant Activity Logs with filter.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getTenantActivityLogsWithFilter(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .tenantActivityLogs()
+ .list(
+ "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and"
+ + " resourceGroupName eq 'MSSupportGroup'",
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsNoParams.json
+ */
+ /**
+ * Sample code: Get Tenant Activity Logs without filter or select.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getTenantActivityLogsWithoutFilterOrSelect(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager.tenantActivityLogs().list(null, null, Context.NONE);
+ }
+}
+```
+
+### VMInsights_GetOnboardingStatus
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for VMInsights GetOnboardingStatus. */
+public final class VMInsightsGetOnboardingStatusSamples {
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusResourceGroup.json
+ */
+ /**
+ * Sample code: Get status for a resource group that has at least one VM that is actively reporting data.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getStatusForAResourceGroupThatHasAtLeastOneVMThatIsActivelyReportingData(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .vMInsights()
+ .getOnboardingStatusWithResponse(
+ "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVMUnknown.json
+ */
+ /**
+ * Sample code: Get status for a VM that has not yet reported data.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getStatusForAVMThatHasNotYetReportedData(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .vMInsights()
+ .getOnboardingStatusWithResponse(
+ "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVM.json
+ */
+ /**
+ * Sample code: Get status for a VM that is actively reporting data.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getStatusForAVMThatIsActivelyReportingData(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .vMInsights()
+ .getOnboardingStatusWithResponse(
+ "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json
+ */
+ /**
+ * Sample code: Get status for a VM scale set that is actively reporting data.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getStatusForAVMScaleSetThatIsActivelyReportingData(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .vMInsights()
+ .getOnboardingStatusWithResponse(
+ "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSubscription.json
+ */
+ /**
+ * Sample code: Get status for a subscription that has at least one VM that is actively reporting data.
+ *
+ * @param manager Entry point to MonitorManager.
+ */
+ public static void getStatusForASubscriptionThatHasAtLeastOneVMThatIsActivelyReportingData(
+ com.azure.resourcemanager.monitor.generated.MonitorManager manager) {
+ manager
+ .vMInsights()
+ .getOnboardingStatusWithResponse("subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87", Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/pom.xml b/sdk/monitor/azure-resourcemanager-monitor-generated/pom.xml
new file mode 100644
index 000000000000..2b460db0c343
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/pom.xml
@@ -0,0 +1,81 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-monitor-generated
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for Monitor Management
+ This package contains Microsoft Azure SDK for Monitor Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Monitor Management Client. Package tag package-2021-04.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+ false
+
+
+
+
+
+ com.azure
+ azure-core
+ 1.21.0
+
+
+ com.azure
+ azure-core-management
+ 1.4.2
+
+
+
+
+
+ org.revapi
+ revapi-maven-plugin
+ 0.11.2
+
+
+
+ -
+
java.method.addedToInterface
+
+ -
+ true
+
.*
+ com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*
+
+
+
+
+
+
+
+
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/MonitorManager.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/MonitorManager.java
new file mode 100644
index 000000000000..ca1f095e5603
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/MonitorManager.java
@@ -0,0 +1,573 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.monitor.generated.fluent.MonitorClient;
+import com.azure.resourcemanager.monitor.generated.implementation.ActionGroupsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.ActivityLogAlertsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.ActivityLogsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.AlertRuleIncidentsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.AlertRulesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.AutoscaleSettingsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.BaselinesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.DataCollectionEndpointsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.DataCollectionRuleAssociationsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.DataCollectionRulesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.DiagnosticSettingsCategoriesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.DiagnosticSettingsOperationsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.EventCategoriesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.LogProfilesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.MetricAlertsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.MetricAlertsStatusImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.MetricDefinitionsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.MetricNamespacesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.MetricsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.MonitorClientBuilder;
+import com.azure.resourcemanager.monitor.generated.implementation.OperationsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.PrivateLinkScopeOperationStatusImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.PrivateLinkScopedResourcesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.PrivateLinkScopesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.ScheduledQueryRulesImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.TenantActivityLogsImpl;
+import com.azure.resourcemanager.monitor.generated.implementation.VMInsightsImpl;
+import com.azure.resourcemanager.monitor.generated.models.ActionGroups;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlerts;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogs;
+import com.azure.resourcemanager.monitor.generated.models.AlertRuleIncidents;
+import com.azure.resourcemanager.monitor.generated.models.AlertRules;
+import com.azure.resourcemanager.monitor.generated.models.AutoscaleSettings;
+import com.azure.resourcemanager.monitor.generated.models.Baselines;
+import com.azure.resourcemanager.monitor.generated.models.DataCollectionEndpoints;
+import com.azure.resourcemanager.monitor.generated.models.DataCollectionRuleAssociations;
+import com.azure.resourcemanager.monitor.generated.models.DataCollectionRules;
+import com.azure.resourcemanager.monitor.generated.models.DiagnosticSettingsCategories;
+import com.azure.resourcemanager.monitor.generated.models.DiagnosticSettingsOperations;
+import com.azure.resourcemanager.monitor.generated.models.EventCategories;
+import com.azure.resourcemanager.monitor.generated.models.LogProfiles;
+import com.azure.resourcemanager.monitor.generated.models.MetricAlerts;
+import com.azure.resourcemanager.monitor.generated.models.MetricAlertsStatus;
+import com.azure.resourcemanager.monitor.generated.models.MetricDefinitions;
+import com.azure.resourcemanager.monitor.generated.models.MetricNamespaces;
+import com.azure.resourcemanager.monitor.generated.models.Metrics;
+import com.azure.resourcemanager.monitor.generated.models.Operations;
+import com.azure.resourcemanager.monitor.generated.models.PrivateEndpointConnections;
+import com.azure.resourcemanager.monitor.generated.models.PrivateLinkResources;
+import com.azure.resourcemanager.monitor.generated.models.PrivateLinkScopeOperationStatus;
+import com.azure.resourcemanager.monitor.generated.models.PrivateLinkScopedResources;
+import com.azure.resourcemanager.monitor.generated.models.PrivateLinkScopes;
+import com.azure.resourcemanager.monitor.generated.models.ScheduledQueryRules;
+import com.azure.resourcemanager.monitor.generated.models.TenantActivityLogs;
+import com.azure.resourcemanager.monitor.generated.models.VMInsights;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/** Entry point to MonitorManager. Monitor Management Client. */
+public final class MonitorManager {
+ private AutoscaleSettings autoscaleSettings;
+
+ private Operations operations;
+
+ private AlertRuleIncidents alertRuleIncidents;
+
+ private AlertRules alertRules;
+
+ private LogProfiles logProfiles;
+
+ private DiagnosticSettingsOperations diagnosticSettingsOperations;
+
+ private DiagnosticSettingsCategories diagnosticSettingsCategories;
+
+ private ActionGroups actionGroups;
+
+ private ActivityLogs activityLogs;
+
+ private EventCategories eventCategories;
+
+ private TenantActivityLogs tenantActivityLogs;
+
+ private MetricDefinitions metricDefinitions;
+
+ private Metrics metrics;
+
+ private Baselines baselines;
+
+ private MetricAlerts metricAlerts;
+
+ private MetricAlertsStatus metricAlertsStatus;
+
+ private ScheduledQueryRules scheduledQueryRules;
+
+ private MetricNamespaces metricNamespaces;
+
+ private VMInsights vMInsights;
+
+ private PrivateLinkScopes privateLinkScopes;
+
+ private PrivateLinkScopeOperationStatus privateLinkScopeOperationStatus;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkScopedResources privateLinkScopedResources;
+
+ private ActivityLogAlerts activityLogAlerts;
+
+ private DataCollectionEndpoints dataCollectionEndpoints;
+
+ private DataCollectionRuleAssociations dataCollectionRuleAssociations;
+
+ private DataCollectionRules dataCollectionRules;
+
+ private final MonitorClient clientObject;
+
+ private MonitorManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new MonitorClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of Monitor service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Monitor service API instance.
+ */
+ public static MonitorManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create MonitorManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new MonitorManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private final ClientLogger logger = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Monitor service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Monitor service API instance.
+ */
+ public MonitorManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.monitor.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new MonitorManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /** @return Resource collection API of AutoscaleSettings. */
+ public AutoscaleSettings autoscaleSettings() {
+ if (this.autoscaleSettings == null) {
+ this.autoscaleSettings = new AutoscaleSettingsImpl(clientObject.getAutoscaleSettings(), this);
+ }
+ return autoscaleSettings;
+ }
+
+ /** @return Resource collection API of Operations. */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /** @return Resource collection API of AlertRuleIncidents. */
+ public AlertRuleIncidents alertRuleIncidents() {
+ if (this.alertRuleIncidents == null) {
+ this.alertRuleIncidents = new AlertRuleIncidentsImpl(clientObject.getAlertRuleIncidents(), this);
+ }
+ return alertRuleIncidents;
+ }
+
+ /** @return Resource collection API of AlertRules. */
+ public AlertRules alertRules() {
+ if (this.alertRules == null) {
+ this.alertRules = new AlertRulesImpl(clientObject.getAlertRules(), this);
+ }
+ return alertRules;
+ }
+
+ /** @return Resource collection API of LogProfiles. */
+ public LogProfiles logProfiles() {
+ if (this.logProfiles == null) {
+ this.logProfiles = new LogProfilesImpl(clientObject.getLogProfiles(), this);
+ }
+ return logProfiles;
+ }
+
+ /** @return Resource collection API of DiagnosticSettingsOperations. */
+ public DiagnosticSettingsOperations diagnosticSettingsOperations() {
+ if (this.diagnosticSettingsOperations == null) {
+ this.diagnosticSettingsOperations =
+ new DiagnosticSettingsOperationsImpl(clientObject.getDiagnosticSettingsOperations(), this);
+ }
+ return diagnosticSettingsOperations;
+ }
+
+ /** @return Resource collection API of DiagnosticSettingsCategories. */
+ public DiagnosticSettingsCategories diagnosticSettingsCategories() {
+ if (this.diagnosticSettingsCategories == null) {
+ this.diagnosticSettingsCategories =
+ new DiagnosticSettingsCategoriesImpl(clientObject.getDiagnosticSettingsCategories(), this);
+ }
+ return diagnosticSettingsCategories;
+ }
+
+ /** @return Resource collection API of ActionGroups. */
+ public ActionGroups actionGroups() {
+ if (this.actionGroups == null) {
+ this.actionGroups = new ActionGroupsImpl(clientObject.getActionGroups(), this);
+ }
+ return actionGroups;
+ }
+
+ /** @return Resource collection API of ActivityLogs. */
+ public ActivityLogs activityLogs() {
+ if (this.activityLogs == null) {
+ this.activityLogs = new ActivityLogsImpl(clientObject.getActivityLogs(), this);
+ }
+ return activityLogs;
+ }
+
+ /** @return Resource collection API of EventCategories. */
+ public EventCategories eventCategories() {
+ if (this.eventCategories == null) {
+ this.eventCategories = new EventCategoriesImpl(clientObject.getEventCategories(), this);
+ }
+ return eventCategories;
+ }
+
+ /** @return Resource collection API of TenantActivityLogs. */
+ public TenantActivityLogs tenantActivityLogs() {
+ if (this.tenantActivityLogs == null) {
+ this.tenantActivityLogs = new TenantActivityLogsImpl(clientObject.getTenantActivityLogs(), this);
+ }
+ return tenantActivityLogs;
+ }
+
+ /** @return Resource collection API of MetricDefinitions. */
+ public MetricDefinitions metricDefinitions() {
+ if (this.metricDefinitions == null) {
+ this.metricDefinitions = new MetricDefinitionsImpl(clientObject.getMetricDefinitions(), this);
+ }
+ return metricDefinitions;
+ }
+
+ /** @return Resource collection API of Metrics. */
+ public Metrics metrics() {
+ if (this.metrics == null) {
+ this.metrics = new MetricsImpl(clientObject.getMetrics(), this);
+ }
+ return metrics;
+ }
+
+ /** @return Resource collection API of Baselines. */
+ public Baselines baselines() {
+ if (this.baselines == null) {
+ this.baselines = new BaselinesImpl(clientObject.getBaselines(), this);
+ }
+ return baselines;
+ }
+
+ /** @return Resource collection API of MetricAlerts. */
+ public MetricAlerts metricAlerts() {
+ if (this.metricAlerts == null) {
+ this.metricAlerts = new MetricAlertsImpl(clientObject.getMetricAlerts(), this);
+ }
+ return metricAlerts;
+ }
+
+ /** @return Resource collection API of MetricAlertsStatus. */
+ public MetricAlertsStatus metricAlertsStatus() {
+ if (this.metricAlertsStatus == null) {
+ this.metricAlertsStatus = new MetricAlertsStatusImpl(clientObject.getMetricAlertsStatus(), this);
+ }
+ return metricAlertsStatus;
+ }
+
+ /** @return Resource collection API of ScheduledQueryRules. */
+ public ScheduledQueryRules scheduledQueryRules() {
+ if (this.scheduledQueryRules == null) {
+ this.scheduledQueryRules = new ScheduledQueryRulesImpl(clientObject.getScheduledQueryRules(), this);
+ }
+ return scheduledQueryRules;
+ }
+
+ /** @return Resource collection API of MetricNamespaces. */
+ public MetricNamespaces metricNamespaces() {
+ if (this.metricNamespaces == null) {
+ this.metricNamespaces = new MetricNamespacesImpl(clientObject.getMetricNamespaces(), this);
+ }
+ return metricNamespaces;
+ }
+
+ /** @return Resource collection API of VMInsights. */
+ public VMInsights vMInsights() {
+ if (this.vMInsights == null) {
+ this.vMInsights = new VMInsightsImpl(clientObject.getVMInsights(), this);
+ }
+ return vMInsights;
+ }
+
+ /** @return Resource collection API of PrivateLinkScopes. */
+ public PrivateLinkScopes privateLinkScopes() {
+ if (this.privateLinkScopes == null) {
+ this.privateLinkScopes = new PrivateLinkScopesImpl(clientObject.getPrivateLinkScopes(), this);
+ }
+ return privateLinkScopes;
+ }
+
+ /** @return Resource collection API of PrivateLinkScopeOperationStatus. */
+ public PrivateLinkScopeOperationStatus privateLinkScopeOperationStatus() {
+ if (this.privateLinkScopeOperationStatus == null) {
+ this.privateLinkScopeOperationStatus =
+ new PrivateLinkScopeOperationStatusImpl(clientObject.getPrivateLinkScopeOperationStatus(), this);
+ }
+ return privateLinkScopeOperationStatus;
+ }
+
+ /** @return Resource collection API of PrivateLinkResources. */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /** @return Resource collection API of PrivateEndpointConnections. */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /** @return Resource collection API of PrivateLinkScopedResources. */
+ public PrivateLinkScopedResources privateLinkScopedResources() {
+ if (this.privateLinkScopedResources == null) {
+ this.privateLinkScopedResources =
+ new PrivateLinkScopedResourcesImpl(clientObject.getPrivateLinkScopedResources(), this);
+ }
+ return privateLinkScopedResources;
+ }
+
+ /** @return Resource collection API of ActivityLogAlerts. */
+ public ActivityLogAlerts activityLogAlerts() {
+ if (this.activityLogAlerts == null) {
+ this.activityLogAlerts = new ActivityLogAlertsImpl(clientObject.getActivityLogAlerts(), this);
+ }
+ return activityLogAlerts;
+ }
+
+ /** @return Resource collection API of DataCollectionEndpoints. */
+ public DataCollectionEndpoints dataCollectionEndpoints() {
+ if (this.dataCollectionEndpoints == null) {
+ this.dataCollectionEndpoints =
+ new DataCollectionEndpointsImpl(clientObject.getDataCollectionEndpoints(), this);
+ }
+ return dataCollectionEndpoints;
+ }
+
+ /** @return Resource collection API of DataCollectionRuleAssociations. */
+ public DataCollectionRuleAssociations dataCollectionRuleAssociations() {
+ if (this.dataCollectionRuleAssociations == null) {
+ this.dataCollectionRuleAssociations =
+ new DataCollectionRuleAssociationsImpl(clientObject.getDataCollectionRuleAssociations(), this);
+ }
+ return dataCollectionRuleAssociations;
+ }
+
+ /** @return Resource collection API of DataCollectionRules. */
+ public DataCollectionRules dataCollectionRules() {
+ if (this.dataCollectionRules == null) {
+ this.dataCollectionRules = new DataCollectionRulesImpl(clientObject.getDataCollectionRules(), this);
+ }
+ return dataCollectionRules;
+ }
+
+ /**
+ * @return Wrapped service client MonitorClient providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public MonitorClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ActionGroupsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ActionGroupsClient.java
new file mode 100644
index 000000000000..6f412984f514
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ActionGroupsClient.java
@@ -0,0 +1,211 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.ActionGroupResourceInner;
+import com.azure.resourcemanager.monitor.generated.models.ActionGroupPatchBody;
+import com.azure.resourcemanager.monitor.generated.models.EnableRequest;
+
+/** An instance of this class provides access to all the operations defined in ActionGroupsClient. */
+public interface ActionGroupsClient {
+ /**
+ * Create a new action group or update an existing one.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @param actionGroup The action group to create or use for the update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an action group resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActionGroupResourceInner createOrUpdate(
+ String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup);
+
+ /**
+ * Create a new action group or update an existing one.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @param actionGroup The action group to create or use for the update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an action group resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup, Context context);
+
+ /**
+ * Get an action group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an action group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActionGroupResourceInner getByResourceGroup(String resourceGroupName, String actionGroupName);
+
+ /**
+ * Get an action group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an action group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String actionGroupName, Context context);
+
+ /**
+ * Delete an action group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String actionGroupName);
+
+ /**
+ * Delete an action group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String actionGroupName, Context context);
+
+ /**
+ * Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @param actionGroupPatch Parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an action group resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActionGroupResourceInner update(
+ String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch);
+
+ /**
+ * Updates an existing action group's tags. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @param actionGroupPatch Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an action group resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String actionGroupName, ActionGroupPatchBody actionGroupPatch, Context context);
+
+ /**
+ * Get a list of all action groups in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all action groups in a subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get a list of all action groups in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all action groups in a subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get a list of all action groups in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all action groups in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get a list of all action groups in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all action groups in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation
+ * is only supported for Email or SMS receivers.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @param enableRequest The receiver to re-enable.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void enableReceiver(String resourceGroupName, String actionGroupName, EnableRequest enableRequest);
+
+ /**
+ * Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation
+ * is only supported for Email or SMS receivers.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param actionGroupName The name of the action group.
+ * @param enableRequest The receiver to re-enable.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response enableReceiverWithResponse(
+ String resourceGroupName, String actionGroupName, EnableRequest enableRequest, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ActivityLogAlertsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ActivityLogAlertsClient.java
new file mode 100644
index 000000000000..446b44958b5f
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ActivityLogAlertsClient.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.ActivityLogAlertResourceInner;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertPatchBody;
+
+/** An instance of this class provides access to all the operations defined in ActivityLogAlertsClient. */
+public interface ActivityLogAlertsClient {
+ /**
+ * Create a new activity log alert or update an existing one.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param activityLogAlertName The name of the activity log alert.
+ * @param activityLogAlert The activity log alert to create or use for the update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an activity log alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActivityLogAlertResourceInner createOrUpdate(
+ String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlert);
+
+ /**
+ * Create a new activity log alert or update an existing one.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param activityLogAlertName The name of the activity log alert.
+ * @param activityLogAlert The activity log alert to create or use for the update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an activity log alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String activityLogAlertName,
+ ActivityLogAlertResourceInner activityLogAlert,
+ Context context);
+
+ /**
+ * Get an activity log alert.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param activityLogAlertName The name of the activity log alert.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an activity log alert.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActivityLogAlertResourceInner getByResourceGroup(String resourceGroupName, String activityLogAlertName);
+
+ /**
+ * Get an activity log alert.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param activityLogAlertName The name of the activity log alert.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an activity log alert.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String activityLogAlertName, Context context);
+
+ /**
+ * Delete an activity log alert.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param activityLogAlertName The name of the activity log alert.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String activityLogAlertName);
+
+ /**
+ * Delete an activity log alert.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param activityLogAlertName The name of the activity log alert.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String activityLogAlertName, Context context);
+
+ /**
+ * Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param activityLogAlertName The name of the activity log alert.
+ * @param activityLogAlertPatch Parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an activity log alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ActivityLogAlertResourceInner update(
+ String resourceGroupName, String activityLogAlertName, ActivityLogAlertPatchBody activityLogAlertPatch);
+
+ /**
+ * Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param activityLogAlertName The name of the activity log alert.
+ * @param activityLogAlertPatch Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an activity log alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String activityLogAlertName,
+ ActivityLogAlertPatchBody activityLogAlertPatch,
+ Context context);
+
+ /**
+ * Get a list of all activity log alerts in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all activity log alerts in a subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get a list of all activity log alerts in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all activity log alerts in a subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Get a list of all activity log alerts in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all activity log alerts in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Get a list of all activity log alerts in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all activity log alerts in a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ActivityLogsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ActivityLogsClient.java
new file mode 100644
index 000000000000..23ab5e62e672
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ActivityLogsClient.java
@@ -0,0 +1,68 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.EventDataInner;
+
+/** An instance of this class provides access to all the operations defined in ActivityLogsClient. */
+public interface ActivityLogsClient {
+ /**
+ * Provides the list of records from the activity logs.
+ *
+ * @param filter Reduces the set of data collected.<br>This argument is required and it also requires at least
+ * the start date/time.<br>The **$filter** argument is very restricted and allows only the following
+ * patterns.<br>- *List events for a resource group*: $filter=eventTimestamp ge
+ * '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceGroupName eq
+ * 'resourceGroupName'.<br>- *List events for resource*: $filter=eventTimestamp ge
+ * '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq
+ * 'resourceURI'.<br>- *List events for a subscription in a time range*: $filter=eventTimestamp ge
+ * '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z'.<br>- *List events
+ * for a resource provider*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le
+ * '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.<br>- *List events for a
+ * correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le
+ * '2014-07-20T04:36:37.6407898Z' and correlationId eq 'correlationID'.<br><br>**NOTE**: No other
+ * syntax is allowed.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents collection of events.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter);
+
+ /**
+ * Provides the list of records from the activity logs.
+ *
+ * @param filter Reduces the set of data collected.<br>This argument is required and it also requires at least
+ * the start date/time.<br>The **$filter** argument is very restricted and allows only the following
+ * patterns.<br>- *List events for a resource group*: $filter=eventTimestamp ge
+ * '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceGroupName eq
+ * 'resourceGroupName'.<br>- *List events for resource*: $filter=eventTimestamp ge
+ * '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq
+ * 'resourceURI'.<br>- *List events for a subscription in a time range*: $filter=eventTimestamp ge
+ * '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z'.<br>- *List events
+ * for a resource provider*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le
+ * '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.<br>- *List events for a
+ * correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le
+ * '2014-07-20T04:36:37.6407898Z' and correlationId eq 'correlationID'.<br><br>**NOTE**: No other
+ * syntax is allowed.
+ * @param select 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*.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents collection of events.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, String select, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/AlertRuleIncidentsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/AlertRuleIncidentsClient.java
new file mode 100644
index 000000000000..d38277e124d3
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/AlertRuleIncidentsClient.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.IncidentInner;
+
+/** An instance of this class provides access to all the operations defined in AlertRuleIncidentsClient. */
+public interface AlertRuleIncidentsClient {
+ /**
+ * Gets an incident associated to an alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param incidentName The name of the incident to retrieve.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an incident associated to an alert rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ IncidentInner get(String resourceGroupName, String ruleName, String incidentName);
+
+ /**
+ * Gets an incident associated to an alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param incidentName The name of the incident to retrieve.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an incident associated to an alert rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String ruleName, String incidentName, Context context);
+
+ /**
+ * Gets a list of incidents associated to an alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of incidents associated to an alert rule.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAlertRule(String resourceGroupName, String ruleName);
+
+ /**
+ * Gets a list of incidents associated to an alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of incidents associated to an alert rule.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByAlertRule(String resourceGroupName, String ruleName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/AlertRulesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/AlertRulesClient.java
new file mode 100644
index 000000000000..66ca94d744bc
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/AlertRulesClient.java
@@ -0,0 +1,177 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.AlertRuleResourceInner;
+import com.azure.resourcemanager.monitor.generated.models.AlertRuleResourcePatch;
+
+/** An instance of this class provides access to all the operations defined in AlertRulesClient. */
+public interface AlertRulesClient {
+ /**
+ * Creates or updates a classic metric alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the alert rule resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AlertRuleResourceInner createOrUpdate(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters);
+
+ /**
+ * Creates or updates a classic metric alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the alert rule resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String ruleName, AlertRuleResourceInner parameters, Context context);
+
+ /**
+ * Deletes a classic metric alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String ruleName);
+
+ /**
+ * Deletes a classic metric alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String ruleName, Context context);
+
+ /**
+ * Gets a classic metric alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a classic metric alert rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AlertRuleResourceInner getByResourceGroup(String resourceGroupName, String ruleName);
+
+ /**
+ * Gets a classic metric alert rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a classic metric alert rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String ruleName, Context context);
+
+ /**
+ * Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param alertRulesResource Parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the alert rule resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AlertRuleResourceInner update(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource);
+
+ /**
+ * Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param alertRulesResource Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the alert rule resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource, Context context);
+
+ /**
+ * List the classic metric alert rules within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List the classic metric alert rules within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List the classic metric alert rules within a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the classic metric alert rules within a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/AutoscaleSettingsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/AutoscaleSettingsClient.java
new file mode 100644
index 000000000000..728098244255
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/AutoscaleSettingsClient.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.AutoscaleSettingResourceInner;
+import com.azure.resourcemanager.monitor.generated.models.AutoscaleSettingResourcePatch;
+
+/** An instance of this class provides access to all the operations defined in AutoscaleSettingsClient. */
+public interface AutoscaleSettingsClient {
+ /**
+ * Lists the autoscale settings for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of autoscale setting resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists the autoscale settings for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of autoscale setting resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Creates or updates an autoscale setting.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param autoscaleSettingName The autoscale setting name.
+ * @param parameters Parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the autoscale setting resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AutoscaleSettingResourceInner createOrUpdate(
+ String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourceInner parameters);
+
+ /**
+ * Creates or updates an autoscale setting.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param autoscaleSettingName The autoscale setting name.
+ * @param parameters Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the autoscale setting resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String autoscaleSettingName,
+ AutoscaleSettingResourceInner parameters,
+ Context context);
+
+ /**
+ * Deletes and autoscale setting.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param autoscaleSettingName The autoscale setting name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String autoscaleSettingName);
+
+ /**
+ * Deletes and autoscale setting.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param autoscaleSettingName The autoscale setting name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String autoscaleSettingName, Context context);
+
+ /**
+ * Gets an autoscale setting.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param autoscaleSettingName The autoscale setting name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an autoscale setting.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AutoscaleSettingResourceInner getByResourceGroup(String resourceGroupName, String autoscaleSettingName);
+
+ /**
+ * Gets an autoscale setting.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param autoscaleSettingName The autoscale setting name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an autoscale setting.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String autoscaleSettingName, Context context);
+
+ /**
+ * Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param autoscaleSettingName The autoscale setting name.
+ * @param autoscaleSettingResource Parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the autoscale setting resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AutoscaleSettingResourceInner update(
+ String resourceGroupName, String autoscaleSettingName, AutoscaleSettingResourcePatch autoscaleSettingResource);
+
+ /**
+ * Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param autoscaleSettingName The autoscale setting name.
+ * @param autoscaleSettingResource Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the autoscale setting resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String autoscaleSettingName,
+ AutoscaleSettingResourcePatch autoscaleSettingResource,
+ Context context);
+
+ /**
+ * Lists the autoscale settings for a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of autoscale setting resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists the autoscale settings for a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of autoscale setting resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/BaselinesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/BaselinesClient.java
new file mode 100644
index 000000000000..43fda4ee0238
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/BaselinesClient.java
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.SingleMetricBaselineInner;
+import com.azure.resourcemanager.monitor.generated.models.ResultType;
+import java.time.Duration;
+
+/** An instance of this class provides access to all the operations defined in BaselinesClient. */
+public interface BaselinesClient {
+ /**
+ * **Lists the metric baseline values for a resource**.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of metric baselines.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * **Lists the metric baseline values for a resource**.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself
+ * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.
+ * @param metricnamespace Metric namespace to query metric definitions for.
+ * @param timespan The timespan of the query. It is a string with the following format
+ * 'startDateTime_ISO/endDateTime_ISO'.
+ * @param interval The interval (i.e. timegrain) of the query.
+ * @param aggregation The list of aggregation types (comma separated) to retrieve.
+ * @param sensitivities The list of sensitivities (comma separated) to retrieve.
+ * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains
+ * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq
+ * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B =
+ * 'b2'** This is invalid because the logical or operator cannot separate two different metadata names. - Return
+ * all time series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return
+ * all time series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension
+ * name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using
+ * $filter= "dim (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim
+ * (test) 3** and dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test)
+ * val' " use **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**.
+ * @param resultType Allows retrieving only metadata of the baseline. On data request all information is retrieved.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of metric baselines.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceUri,
+ String metricnames,
+ String metricnamespace,
+ String timespan,
+ Duration interval,
+ String aggregation,
+ String sensitivities,
+ String filter,
+ ResultType resultType,
+ Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DataCollectionEndpointsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DataCollectionEndpointsClient.java
new file mode 100644
index 000000000000..e92a4e68e5dc
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DataCollectionEndpointsClient.java
@@ -0,0 +1,178 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.DataCollectionEndpointResourceInner;
+import com.azure.resourcemanager.monitor.generated.models.ResourceForUpdate;
+
+/** An instance of this class provides access to all the operations defined in DataCollectionEndpointsClient. */
+public interface DataCollectionEndpointsClient {
+ /**
+ * Lists all data collection endpoints in the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all data collection endpoints in the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all data collection endpoints in the specified subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all data collection endpoints in the specified subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Returns the specified data collection endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataCollectionEndpointResourceInner getByResourceGroup(String resourceGroupName, String dataCollectionEndpointName);
+
+ /**
+ * Returns the specified data collection endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String dataCollectionEndpointName, Context context);
+
+ /**
+ * Creates or updates a data collection endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataCollectionEndpointResourceInner create(String resourceGroupName, String dataCollectionEndpointName);
+
+ /**
+ * Creates or updates a data collection endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case insensitive.
+ * @param body The payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName,
+ String dataCollectionEndpointName,
+ DataCollectionEndpointResourceInner body,
+ Context context);
+
+ /**
+ * Updates part of a data collection endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataCollectionEndpointResourceInner update(String resourceGroupName, String dataCollectionEndpointName);
+
+ /**
+ * Updates part of a data collection endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case insensitive.
+ * @param body The payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String dataCollectionEndpointName, ResourceForUpdate body, Context context);
+
+ /**
+ * Deletes a data collection endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String dataCollectionEndpointName);
+
+ /**
+ * Deletes a data collection endpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String dataCollectionEndpointName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DataCollectionRuleAssociationsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DataCollectionRuleAssociationsClient.java
new file mode 100644
index 000000000000..e7d47bbcabca
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DataCollectionRuleAssociationsClient.java
@@ -0,0 +1,156 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.DataCollectionRuleAssociationProxyOnlyResourceInner;
+
+/** An instance of this class provides access to all the operations defined in DataCollectionRuleAssociationsClient. */
+public interface DataCollectionRuleAssociationsClient {
+ /**
+ * Lists associations for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResource(String resourceUri);
+
+ /**
+ * Lists associations for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResource(
+ String resourceUri, Context context);
+
+ /**
+ * Lists associations for the specified data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByRule(
+ String resourceGroupName, String dataCollectionRuleName);
+
+ /**
+ * Lists associations for the specified data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByRule(
+ String resourceGroupName, String dataCollectionRuleName, Context context);
+
+ /**
+ * Returns the specified association.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param associationName The name of the association. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of generic ARM proxy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataCollectionRuleAssociationProxyOnlyResourceInner get(String resourceUri, String associationName);
+
+ /**
+ * Returns the specified association.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param associationName The name of the association. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of generic ARM proxy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceUri, String associationName, Context context);
+
+ /**
+ * Creates or updates an association.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param associationName The name of the association. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of generic ARM proxy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataCollectionRuleAssociationProxyOnlyResourceInner create(String resourceUri, String associationName);
+
+ /**
+ * Creates or updates an association.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param associationName The name of the association. The name is case insensitive.
+ * @param body The payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of generic ARM proxy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceUri,
+ String associationName,
+ DataCollectionRuleAssociationProxyOnlyResourceInner body,
+ Context context);
+
+ /**
+ * Deletes an association.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param associationName The name of the association. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri, String associationName);
+
+ /**
+ * Deletes an association.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param associationName The name of the association. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceUri, String associationName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DataCollectionRulesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DataCollectionRulesClient.java
new file mode 100644
index 000000000000..70c9dfedd234
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DataCollectionRulesClient.java
@@ -0,0 +1,175 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.DataCollectionRuleResourceInner;
+import com.azure.resourcemanager.monitor.generated.models.ResourceForUpdate;
+
+/** An instance of this class provides access to all the operations defined in DataCollectionRulesClient. */
+public interface DataCollectionRulesClient {
+ /**
+ * Lists all data collection rules in the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all data collection rules in the specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists all data collection rules in the specified subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all data collection rules in the specified subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a pageable list of resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Returns the specified data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataCollectionRuleResourceInner getByResourceGroup(String resourceGroupName, String dataCollectionRuleName);
+
+ /**
+ * Returns the specified data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String dataCollectionRuleName, Context context);
+
+ /**
+ * Creates or updates a data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataCollectionRuleResourceInner create(String resourceGroupName, String dataCollectionRuleName);
+
+ /**
+ * Creates or updates a data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @param body The payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName, String dataCollectionRuleName, DataCollectionRuleResourceInner body, Context context);
+
+ /**
+ * Updates part of a data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataCollectionRuleResourceInner update(String resourceGroupName, String dataCollectionRuleName);
+
+ /**
+ * Updates part of a data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @param body The payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return definition of ARM tracked top level resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String dataCollectionRuleName, ResourceForUpdate body, Context context);
+
+ /**
+ * Deletes a data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String dataCollectionRuleName);
+
+ /**
+ * Deletes a data collection rule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param dataCollectionRuleName The name of the data collection rule. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String dataCollectionRuleName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DiagnosticSettingsCategoriesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DiagnosticSettingsCategoriesClient.java
new file mode 100644
index 000000000000..f9694b67ecb1
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DiagnosticSettingsCategoriesClient.java
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.DiagnosticSettingsCategoryResourceCollectionInner;
+import com.azure.resourcemanager.monitor.generated.fluent.models.DiagnosticSettingsCategoryResourceInner;
+
+/** An instance of this class provides access to all the operations defined in DiagnosticSettingsCategoriesClient. */
+public interface DiagnosticSettingsCategoriesClient {
+ /**
+ * Gets the diagnostic settings category for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param name The name of the diagnostic setting.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostic settings category for the specified resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticSettingsCategoryResourceInner get(String resourceUri, String name);
+
+ /**
+ * Gets the diagnostic settings category for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param name The name of the diagnostic setting.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostic settings category for the specified resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, String name, Context context);
+
+ /**
+ * Lists the diagnostic settings categories for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of diagnostic setting category resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticSettingsCategoryResourceCollectionInner list(String resourceUri);
+
+ /**
+ * Lists the diagnostic settings categories for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of diagnostic setting category resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(String resourceUri, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DiagnosticSettingsOperationsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DiagnosticSettingsOperationsClient.java
new file mode 100644
index 000000000000..9cadb7734dda
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/DiagnosticSettingsOperationsClient.java
@@ -0,0 +1,124 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.DiagnosticSettingsResourceCollectionInner;
+import com.azure.resourcemanager.monitor.generated.fluent.models.DiagnosticSettingsResourceInner;
+
+/** An instance of this class provides access to all the operations defined in DiagnosticSettingsOperationsClient. */
+public interface DiagnosticSettingsOperationsClient {
+ /**
+ * Gets the active diagnostic settings for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param name The name of the diagnostic setting.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the active diagnostic settings for the specified resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticSettingsResourceInner get(String resourceUri, String name);
+
+ /**
+ * Gets the active diagnostic settings for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param name The name of the diagnostic setting.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the active diagnostic settings for the specified resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, String name, Context context);
+
+ /**
+ * Creates or updates diagnostic settings for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param name The name of the diagnostic setting.
+ * @param parameters Parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostic setting resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticSettingsResourceInner createOrUpdate(
+ String resourceUri, String name, DiagnosticSettingsResourceInner parameters);
+
+ /**
+ * Creates or updates diagnostic settings for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param name The name of the diagnostic setting.
+ * @param parameters Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the diagnostic setting resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceUri, String name, DiagnosticSettingsResourceInner parameters, Context context);
+
+ /**
+ * Deletes existing diagnostic settings for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param name The name of the diagnostic setting.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri, String name);
+
+ /**
+ * Deletes existing diagnostic settings for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param name The name of the diagnostic setting.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceUri, String name, Context context);
+
+ /**
+ * Gets the active diagnostic settings list for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the active diagnostic settings list for the specified resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticSettingsResourceCollectionInner list(String resourceUri);
+
+ /**
+ * Gets the active diagnostic settings list for the specified resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the active diagnostic settings list for the specified resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(String resourceUri, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/EventCategoriesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/EventCategoriesClient.java
new file mode 100644
index 000000000000..ebcd49d33938
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/EventCategoriesClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.LocalizableStringInner;
+
+/** An instance of this class provides access to all the operations defined in EventCategoriesClient. */
+public interface EventCategoriesClient {
+ /**
+ * Get the list of available event categories supported in the Activity Logs Service.<br>The current list
+ * includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of available event categories supported in the Activity Logs Service.<br>The current list
+ * includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get the list of available event categories supported in the Activity Logs Service.<br>The current list
+ * includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of available event categories supported in the Activity Logs Service.<br>The current list
+ * includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/LogProfilesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/LogProfilesClient.java
new file mode 100644
index 000000000000..58c1201479ef
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/LogProfilesClient.java
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.LogProfileResourceInner;
+import com.azure.resourcemanager.monitor.generated.models.LogProfileResourcePatch;
+
+/** An instance of this class provides access to all the operations defined in LogProfilesClient. */
+public interface LogProfilesClient {
+ /**
+ * Deletes the log profile.
+ *
+ * @param logProfileName The name of the log profile.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String logProfileName);
+
+ /**
+ * Deletes the log profile.
+ *
+ * @param logProfileName The name of the log profile.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String logProfileName, Context context);
+
+ /**
+ * Gets the log profile.
+ *
+ * @param logProfileName The name of the log profile.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the log profile.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogProfileResourceInner get(String logProfileName);
+
+ /**
+ * Gets the log profile.
+ *
+ * @param logProfileName The name of the log profile.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the log profile.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String logProfileName, Context context);
+
+ /**
+ * Create or update a log profile in Azure Monitoring REST API.
+ *
+ * @param logProfileName The name of the log profile.
+ * @param parameters Parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the log profile resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogProfileResourceInner createOrUpdate(String logProfileName, LogProfileResourceInner parameters);
+
+ /**
+ * Create or update a log profile in Azure Monitoring REST API.
+ *
+ * @param logProfileName The name of the log profile.
+ * @param parameters Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the log profile resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String logProfileName, LogProfileResourceInner parameters, Context context);
+
+ /**
+ * Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.
+ *
+ * @param logProfileName The name of the log profile.
+ * @param logProfilesResource Parameters supplied to the operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the log profile resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogProfileResourceInner update(String logProfileName, LogProfileResourcePatch logProfilesResource);
+
+ /**
+ * Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.
+ *
+ * @param logProfileName The name of the log profile.
+ * @param logProfilesResource Parameters supplied to the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the log profile resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String logProfileName, LogProfileResourcePatch logProfilesResource, Context context);
+
+ /**
+ * List the log profiles.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of log profiles.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the log profiles.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of log profiles.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricAlertsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricAlertsClient.java
new file mode 100644
index 000000000000..beee3e8e63c0
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricAlertsClient.java
@@ -0,0 +1,178 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.MetricAlertResourceInner;
+import com.azure.resourcemanager.monitor.generated.models.MetricAlertResourcePatch;
+
+/** An instance of this class provides access to all the operations defined in MetricAlertsClient. */
+public interface MetricAlertsClient {
+ /**
+ * Retrieve alert rule definitions in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Retrieve alert rule definitions in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Retrieve alert rule definitions in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Retrieve alert rule definitions in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Retrieve an alert rule definition.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the metric alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MetricAlertResourceInner getByResourceGroup(String resourceGroupName, String ruleName);
+
+ /**
+ * Retrieve an alert rule definition.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the metric alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String ruleName, Context context);
+
+ /**
+ * Create or update an metric alert definition.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the metric alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MetricAlertResourceInner createOrUpdate(
+ String resourceGroupName, String ruleName, MetricAlertResourceInner parameters);
+
+ /**
+ * Create or update an metric alert definition.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the metric alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String ruleName, MetricAlertResourceInner parameters, Context context);
+
+ /**
+ * Update an metric alert definition.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the metric alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MetricAlertResourceInner update(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters);
+
+ /**
+ * Update an metric alert definition.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the metric alert resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters, Context context);
+
+ /**
+ * Delete an alert rule definition.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String ruleName);
+
+ /**
+ * Delete an alert rule definition.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String ruleName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricAlertsStatusClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricAlertsStatusClient.java
new file mode 100644
index 000000000000..08c071de032b
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricAlertsStatusClient.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.MetricAlertStatusCollectionInner;
+
+/** An instance of this class provides access to all the operations defined in MetricAlertsStatusClient. */
+public interface MetricAlertsStatusClient {
+ /**
+ * Retrieve an alert rule status.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MetricAlertStatusCollectionInner list(String resourceGroupName, String ruleName);
+
+ /**
+ * Retrieve an alert rule status.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(
+ String resourceGroupName, String ruleName, Context context);
+
+ /**
+ * Retrieve an alert rule status.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param statusName The name of the status.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MetricAlertStatusCollectionInner listByName(String resourceGroupName, String ruleName, String statusName);
+
+ /**
+ * Retrieve an alert rule status.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param statusName The name of the status.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of alert rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listByNameWithResponse(
+ String resourceGroupName, String ruleName, String statusName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricDefinitionsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricDefinitionsClient.java
new file mode 100644
index 000000000000..4bc69d8b1b8c
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricDefinitionsClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.MetricDefinitionInner;
+
+/** An instance of this class provides access to all the operations defined in MetricDefinitionsClient. */
+public interface MetricDefinitionsClient {
+ /**
+ * Lists the metric definitions for the resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents collection of metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * Lists the metric definitions for the resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param metricnamespace Metric namespace to query metric definitions for.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents collection of metric definitions.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, String metricnamespace, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricNamespacesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricNamespacesClient.java
new file mode 100644
index 000000000000..6110d1d9bc35
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricNamespacesClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.MetricNamespaceInner;
+
+/** An instance of this class provides access to all the operations defined in MetricNamespacesClient. */
+public interface MetricNamespacesClient {
+ /**
+ * Lists the metric namespaces for the resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents collection of metric namespaces.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * Lists the metric namespaces for the resource.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param startTime The ISO 8601 conform Date start time from which to query for metric namespaces.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents collection of metric namespaces.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, String startTime, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricsClient.java
new file mode 100644
index 000000000000..58bcd14c6568
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MetricsClient.java
@@ -0,0 +1,74 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.ResponseInner;
+import com.azure.resourcemanager.monitor.generated.models.ResultType;
+import java.time.Duration;
+
+/** An instance of this class provides access to all the operations defined in MetricsClient. */
+public interface MetricsClient {
+ /**
+ * **Lists the metric values for a resource**.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a metrics query.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResponseInner list(String resourceUri);
+
+ /**
+ * **Lists the metric values for a resource**.
+ *
+ * @param resourceUri The identifier of the resource.
+ * @param timespan The timespan of the query. It is a string with the following format
+ * 'startDateTime_ISO/endDateTime_ISO'.
+ * @param interval The interval (i.e. timegrain) of the query.
+ * @param metricnames The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself
+ * has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'**.
+ * @param aggregation The list of aggregation types (comma separated) to retrieve.
+ * @param top The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.
+ * @param orderby The aggregation to use for sorting results and the direction of the sort. Only one order can be
+ * specified. Examples: sum asc.
+ * @param filter The **$filter** is used to reduce the set of metric data returned. Example: Metric contains
+ * metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 **$filter=A eq 'a1' and B eq
+ * 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A eq 'a1' and B eq 'b1' and C eq '*' or B =
+ * 'b2'** This is invalid because the logical or operator cannot separate two different metadata names. - Return
+ * all time series where A = a1, B = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return
+ * all time series where A = a1 **$filter=A eq 'a1' and B eq '*' and C eq '*'**. Special case: When dimension
+ * name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** Instead of using
+ * $filter= "dim (test) 1 eq '*' " use **$filter= "dim %2528test%2529 1 eq '*' "** When dimension name is **dim
+ * (test) 3** and dimension value is **dim3 (test) val** Instead of using $filter= "dim (test) 3 eq 'dim3 (test)
+ * val' " use **$filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**.
+ * @param resultType Reduces the set of data collected. The syntax allowed depends on the operation. See the
+ * operation's description for details.
+ * @param metricnamespace Metric namespace to query metric definitions for.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response to a metrics query.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(
+ String resourceUri,
+ String timespan,
+ Duration interval,
+ String metricnames,
+ String aggregation,
+ Integer top,
+ String orderby,
+ String filter,
+ ResultType resultType,
+ String metricnamespace,
+ Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MonitorClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MonitorClient.java
new file mode 100644
index 000000000000..b805c3869586
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/MonitorClient.java
@@ -0,0 +1,235 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for MonitorClient class. */
+public interface MonitorClient {
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the AutoscaleSettingsClient object to access its operations.
+ *
+ * @return the AutoscaleSettingsClient object.
+ */
+ AutoscaleSettingsClient getAutoscaleSettings();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the AlertRuleIncidentsClient object to access its operations.
+ *
+ * @return the AlertRuleIncidentsClient object.
+ */
+ AlertRuleIncidentsClient getAlertRuleIncidents();
+
+ /**
+ * Gets the AlertRulesClient object to access its operations.
+ *
+ * @return the AlertRulesClient object.
+ */
+ AlertRulesClient getAlertRules();
+
+ /**
+ * Gets the LogProfilesClient object to access its operations.
+ *
+ * @return the LogProfilesClient object.
+ */
+ LogProfilesClient getLogProfiles();
+
+ /**
+ * Gets the DiagnosticSettingsOperationsClient object to access its operations.
+ *
+ * @return the DiagnosticSettingsOperationsClient object.
+ */
+ DiagnosticSettingsOperationsClient getDiagnosticSettingsOperations();
+
+ /**
+ * Gets the DiagnosticSettingsCategoriesClient object to access its operations.
+ *
+ * @return the DiagnosticSettingsCategoriesClient object.
+ */
+ DiagnosticSettingsCategoriesClient getDiagnosticSettingsCategories();
+
+ /**
+ * Gets the ActionGroupsClient object to access its operations.
+ *
+ * @return the ActionGroupsClient object.
+ */
+ ActionGroupsClient getActionGroups();
+
+ /**
+ * Gets the ActivityLogsClient object to access its operations.
+ *
+ * @return the ActivityLogsClient object.
+ */
+ ActivityLogsClient getActivityLogs();
+
+ /**
+ * Gets the EventCategoriesClient object to access its operations.
+ *
+ * @return the EventCategoriesClient object.
+ */
+ EventCategoriesClient getEventCategories();
+
+ /**
+ * Gets the TenantActivityLogsClient object to access its operations.
+ *
+ * @return the TenantActivityLogsClient object.
+ */
+ TenantActivityLogsClient getTenantActivityLogs();
+
+ /**
+ * Gets the MetricDefinitionsClient object to access its operations.
+ *
+ * @return the MetricDefinitionsClient object.
+ */
+ MetricDefinitionsClient getMetricDefinitions();
+
+ /**
+ * Gets the MetricsClient object to access its operations.
+ *
+ * @return the MetricsClient object.
+ */
+ MetricsClient getMetrics();
+
+ /**
+ * Gets the BaselinesClient object to access its operations.
+ *
+ * @return the BaselinesClient object.
+ */
+ BaselinesClient getBaselines();
+
+ /**
+ * Gets the MetricAlertsClient object to access its operations.
+ *
+ * @return the MetricAlertsClient object.
+ */
+ MetricAlertsClient getMetricAlerts();
+
+ /**
+ * Gets the MetricAlertsStatusClient object to access its operations.
+ *
+ * @return the MetricAlertsStatusClient object.
+ */
+ MetricAlertsStatusClient getMetricAlertsStatus();
+
+ /**
+ * Gets the ScheduledQueryRulesClient object to access its operations.
+ *
+ * @return the ScheduledQueryRulesClient object.
+ */
+ ScheduledQueryRulesClient getScheduledQueryRules();
+
+ /**
+ * Gets the MetricNamespacesClient object to access its operations.
+ *
+ * @return the MetricNamespacesClient object.
+ */
+ MetricNamespacesClient getMetricNamespaces();
+
+ /**
+ * Gets the VMInsightsClient object to access its operations.
+ *
+ * @return the VMInsightsClient object.
+ */
+ VMInsightsClient getVMInsights();
+
+ /**
+ * Gets the PrivateLinkScopesClient object to access its operations.
+ *
+ * @return the PrivateLinkScopesClient object.
+ */
+ PrivateLinkScopesClient getPrivateLinkScopes();
+
+ /**
+ * Gets the PrivateLinkScopeOperationStatusClient object to access its operations.
+ *
+ * @return the PrivateLinkScopeOperationStatusClient object.
+ */
+ PrivateLinkScopeOperationStatusClient getPrivateLinkScopeOperationStatus();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinkScopedResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkScopedResourcesClient object.
+ */
+ PrivateLinkScopedResourcesClient getPrivateLinkScopedResources();
+
+ /**
+ * Gets the ActivityLogAlertsClient object to access its operations.
+ *
+ * @return the ActivityLogAlertsClient object.
+ */
+ ActivityLogAlertsClient getActivityLogAlerts();
+
+ /**
+ * Gets the DataCollectionEndpointsClient object to access its operations.
+ *
+ * @return the DataCollectionEndpointsClient object.
+ */
+ DataCollectionEndpointsClient getDataCollectionEndpoints();
+
+ /**
+ * Gets the DataCollectionRuleAssociationsClient object to access its operations.
+ *
+ * @return the DataCollectionRuleAssociationsClient object.
+ */
+ DataCollectionRuleAssociationsClient getDataCollectionRuleAssociations();
+
+ /**
+ * Gets the DataCollectionRulesClient object to access its operations.
+ *
+ * @return the DataCollectionRulesClient object.
+ */
+ DataCollectionRulesClient getDataCollectionRules();
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/OperationsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/OperationsClient.java
new file mode 100644
index 000000000000..78238edefdc4
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.OperationListResultInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available operations from Microsoft.Insights provider.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Microsoft.Insights operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationListResultInner list();
+
+ /**
+ * Lists all of the available operations from Microsoft.Insights provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Microsoft.Insights operations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateEndpointConnectionsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 000000000000..80ebca626e28
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.monitor.generated.fluent.models.PrivateEndpointConnectionInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * Gets a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String scopeName, String privateEndpointConnectionName);
+
+ /**
+ * Gets a private endpoint connection.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String scopeName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param parameters A private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String scopeName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner parameters);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param parameters A private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String scopeName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner parameters,
+ Context context);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param parameters A private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String scopeName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner parameters);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param parameters A private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private endpoint connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner createOrUpdate(
+ String resourceGroupName,
+ String scopeName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner parameters,
+ Context context);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String scopeName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String scopeName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String scopeName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String scopeName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Gets all private endpoint connections on a private link scope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all private endpoint connections on a private link scope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByPrivateLinkScope(String resourceGroupName, String scopeName);
+
+ /**
+ * Gets all private endpoint connections on a private link scope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all private endpoint connections on a private link scope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByPrivateLinkScope(
+ String resourceGroupName, String scopeName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkResourcesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkResourcesClient.java
new file mode 100644
index 000000000000..629320a65ae2
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkResourcesClient.java
@@ -0,0 +1,73 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.PrivateLinkResourceInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+public interface PrivateLinkResourcesClient {
+ /**
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByPrivateLinkScope(String resourceGroupName, String scopeName);
+
+ /**
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByPrivateLinkScope(
+ String resourceGroupName, String scopeName, Context context);
+
+ /**
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param groupName The name of the private link resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourceInner get(String resourceGroupName, String scopeName, String groupName);
+
+ /**
+ * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param groupName The name of the private link resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String scopeName, String groupName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkScopeOperationStatusClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkScopeOperationStatusClient.java
new file mode 100644
index 000000000000..85abdfd1cc52
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkScopeOperationStatusClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.OperationStatusInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkScopeOperationStatusClient. */
+public interface PrivateLinkScopeOperationStatusClient {
+ /**
+ * Get the status of an azure asynchronous operation associated with a private link scope operation.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param asyncOperationId The operation Id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an azure asynchronous operation associated with a private link scope operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusInner getByResourceGroup(String resourceGroupName, String asyncOperationId);
+
+ /**
+ * Get the status of an azure asynchronous operation associated with a private link scope operation.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param asyncOperationId The operation Id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an azure asynchronous operation associated with a private link scope operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String asyncOperationId, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkScopedResourcesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkScopedResourcesClient.java
new file mode 100644
index 000000000000..6a41bc4c3dc9
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkScopedResourcesClient.java
@@ -0,0 +1,198 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.monitor.generated.fluent.models.ScopedResourceInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkScopedResourcesClient. */
+public interface PrivateLinkScopedResourcesClient {
+ /**
+ * Gets a scoped resource in a private link scope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a scoped resource in a private link scope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopedResourceInner get(String resourceGroupName, String scopeName, String name);
+
+ /**
+ * Gets a scoped resource in a private link scope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a scoped resource in a private link scope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String scopeName, String name, Context context);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @param parameters A private link scoped resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private link scoped resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ScopedResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String scopeName, String name, ScopedResourceInner parameters);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @param parameters A private link scoped resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private link scoped resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ScopedResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String scopeName, String name, ScopedResourceInner parameters, Context context);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @param parameters A private link scoped resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private link scoped resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopedResourceInner createOrUpdate(
+ String resourceGroupName, String scopeName, String name, ScopedResourceInner parameters);
+
+ /**
+ * Approve or reject a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @param parameters A private link scoped resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a private link scoped resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScopedResourceInner createOrUpdate(
+ String resourceGroupName, String scopeName, String name, ScopedResourceInner parameters, Context context);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String scopeName, String name);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String scopeName, String name, Context context);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String scopeName, String name);
+
+ /**
+ * Deletes a private endpoint connection with a given name.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param name The name of the scoped resource object.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String scopeName, String name, Context context);
+
+ /**
+ * Gets all private endpoint connections on a private link scope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all private endpoint connections on a private link scope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByPrivateLinkScope(String resourceGroupName, String scopeName);
+
+ /**
+ * Gets all private endpoint connections on a private link scope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all private endpoint connections on a private link scope.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByPrivateLinkScope(
+ String resourceGroupName, String scopeName, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkScopesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkScopesClient.java
new file mode 100644
index 000000000000..34cd6dfe5081
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/PrivateLinkScopesClient.java
@@ -0,0 +1,216 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.monitor.generated.fluent.models.AzureMonitorPrivateLinkScopeInner;
+import com.azure.resourcemanager.monitor.generated.models.TagsResource;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkScopesClient. */
+public interface PrivateLinkScopesClient {
+ /**
+ * Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all Azure Monitor PrivateLinkScopes within a subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets a list of all Azure Monitor PrivateLinkScopes within a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of all Azure Monitor PrivateLinkScopes within a subscription.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Gets a list of Azure Monitor PrivateLinkScopes within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Azure Monitor PrivateLinkScopes within a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Gets a list of Azure Monitor PrivateLinkScopes within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of Azure Monitor PrivateLinkScopes within a resource group.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Deletes a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String scopeName);
+
+ /**
+ * Deletes a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the completion.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String scopeName, Context context);
+
+ /**
+ * Deletes a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String scopeName);
+
+ /**
+ * Deletes a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String scopeName, Context context);
+
+ /**
+ * Returns a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Monitor PrivateLinkScope definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AzureMonitorPrivateLinkScopeInner getByResourceGroup(String resourceGroupName, String scopeName);
+
+ /**
+ * Returns a Azure Monitor PrivateLinkScope.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Monitor PrivateLinkScope definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String scopeName, Context context);
+
+ /**
+ * Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for
+ * InstrumentationKey nor AppId in the Put operation.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param azureMonitorPrivateLinkScopePayload Properties that need to be specified to create or update a Azure
+ * Monitor PrivateLinkScope.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Monitor PrivateLinkScope definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AzureMonitorPrivateLinkScopeInner createOrUpdate(
+ String resourceGroupName,
+ String scopeName,
+ AzureMonitorPrivateLinkScopeInner azureMonitorPrivateLinkScopePayload);
+
+ /**
+ * Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for
+ * InstrumentationKey nor AppId in the Put operation.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param azureMonitorPrivateLinkScopePayload Properties that need to be specified to create or update a Azure
+ * Monitor PrivateLinkScope.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Monitor PrivateLinkScope definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String scopeName,
+ AzureMonitorPrivateLinkScopeInner azureMonitorPrivateLinkScopePayload,
+ Context context);
+
+ /**
+ * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Monitor PrivateLinkScope definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AzureMonitorPrivateLinkScopeInner updateTags(
+ String resourceGroupName, String scopeName, TagsResource privateLinkScopeTags);
+
+ /**
+ * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
+ * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Azure Monitor PrivateLinkScope definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateTagsWithResponse(
+ String resourceGroupName, String scopeName, TagsResource privateLinkScopeTags, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ScheduledQueryRulesClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ScheduledQueryRulesClient.java
new file mode 100644
index 000000000000..3cb624cc0655
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/ScheduledQueryRulesClient.java
@@ -0,0 +1,183 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.LogSearchRuleResourceInner;
+import com.azure.resourcemanager.monitor.generated.models.LogSearchRuleResourcePatch;
+
+/** An instance of this class provides access to all the operations defined in ScheduledQueryRulesClient. */
+public interface ScheduledQueryRulesClient {
+ /**
+ * Creates or updates an log search rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to create or update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Log Search Rule resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogSearchRuleResourceInner createOrUpdate(
+ String resourceGroupName, String ruleName, LogSearchRuleResourceInner parameters);
+
+ /**
+ * Creates or updates an log search rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to create or update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Log Search Rule resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String ruleName, LogSearchRuleResourceInner parameters, Context context);
+
+ /**
+ * Gets an Log Search rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Log Search rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogSearchRuleResourceInner getByResourceGroup(String resourceGroupName, String ruleName);
+
+ /**
+ * Gets an Log Search rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Log Search rule.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String ruleName, Context context);
+
+ /**
+ * Update log search Rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Log Search Rule resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LogSearchRuleResourceInner update(String resourceGroupName, String ruleName, LogSearchRuleResourcePatch parameters);
+
+ /**
+ * Update log search Rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param parameters The parameters of the rule to update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Log Search Rule resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String ruleName, LogSearchRuleResourcePatch parameters, Context context);
+
+ /**
+ * Deletes a Log Search rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String ruleName);
+
+ /**
+ * Deletes a Log Search rule.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param ruleName The name of the rule.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String ruleName, Context context);
+
+ /**
+ * List the Log Search rules within a subscription group.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of Log Search rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the Log Search rules within a subscription group.
+ *
+ * @param filter The filter to apply on the operation. For more information please see
+ * https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of Log Search rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, Context context);
+
+ /**
+ * List the Log Search rules within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of Log Search rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List the Log Search rules within a resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param filter The filter to apply on the operation. For more information please see
+ * https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a collection of Log Search rule resources.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(
+ String resourceGroupName, String filter, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/TenantActivityLogsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/TenantActivityLogsClient.java
new file mode 100644
index 000000000000..2060c9fa747c
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/TenantActivityLogsClient.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.EventDataInner;
+
+/** An instance of this class provides access to all the operations defined in TenantActivityLogsClient. */
+public interface TenantActivityLogsClient {
+ /**
+ * Gets the Activity Logs for the Tenant.<br>Everything that is applicable to the API to get the Activity Logs
+ * for the subscription is applicable to this API (the parameters, $filter, etc.).<br>One thing to point out
+ * here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces
+ * the logs that were generated at the tenant level.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Activity Logs for the Tenant.<br>Everything that is applicable to the API to get the Activity
+ * Logs for the subscription is applicable to this API (the parameters, $filter, etc.).<br>One thing to
+ * point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but
+ * only surfaces the logs that were generated at the tenant level.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets the Activity Logs for the Tenant.<br>Everything that is applicable to the API to get the Activity Logs
+ * for the subscription is applicable to this API (the parameters, $filter, etc.).<br>One thing to point out
+ * here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces
+ * the logs that were generated at the tenant level.
+ *
+ * @param filter 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.
+ * @param select 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*.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the Activity Logs for the Tenant.<br>Everything that is applicable to the API to get the Activity
+ * Logs for the subscription is applicable to this API (the parameters, $filter, etc.).<br>One thing to
+ * point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but
+ * only surfaces the logs that were generated at the tenant level.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String filter, String select, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/VMInsightsClient.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/VMInsightsClient.java
new file mode 100644
index 000000000000..b70f7deb64c9
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/VMInsightsClient.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.monitor.generated.fluent.models.VMInsightsOnboardingStatusInner;
+
+/** An instance of this class provides access to all the operations defined in VMInsightsClient. */
+public interface VMInsightsClient {
+ /**
+ * Retrieves the VM Insights onboarding status for the specified resource or resource scope.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource, or scope, whose status
+ * to retrieve.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return vM Insights onboarding status for a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VMInsightsOnboardingStatusInner getOnboardingStatus(String resourceUri);
+
+ /**
+ * Retrieves the VM Insights onboarding status for the specified resource or resource scope.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource, or scope, whose status
+ * to retrieve.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return vM Insights onboarding status for a resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getOnboardingStatusWithResponse(String resourceUri, Context context);
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActionGroup.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActionGroup.java
new file mode 100644
index 000000000000..88a12a815dee
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActionGroup.java
@@ -0,0 +1,391 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.monitor.generated.models.ArmRoleReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AutomationRunbookReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AzureAppPushReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AzureFunctionReceiver;
+import com.azure.resourcemanager.monitor.generated.models.EmailReceiver;
+import com.azure.resourcemanager.monitor.generated.models.ItsmReceiver;
+import com.azure.resourcemanager.monitor.generated.models.LogicAppReceiver;
+import com.azure.resourcemanager.monitor.generated.models.SmsReceiver;
+import com.azure.resourcemanager.monitor.generated.models.VoiceReceiver;
+import com.azure.resourcemanager.monitor.generated.models.WebhookReceiver;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** An Azure action group. */
+@Fluent
+public final class ActionGroup {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ActionGroup.class);
+
+ /*
+ * The short name of the action group. This will be used in SMS messages.
+ */
+ @JsonProperty(value = "groupShortName", required = true)
+ private String groupShortName;
+
+ /*
+ * Indicates whether this action group is enabled. If an action group is
+ * not enabled, then none of its receivers will receive communications.
+ */
+ @JsonProperty(value = "enabled", required = true)
+ private boolean enabled;
+
+ /*
+ * The list of email receivers that are part of this action group.
+ */
+ @JsonProperty(value = "emailReceivers")
+ private List emailReceivers;
+
+ /*
+ * The list of SMS receivers that are part of this action group.
+ */
+ @JsonProperty(value = "smsReceivers")
+ private List smsReceivers;
+
+ /*
+ * The list of webhook receivers that are part of this action group.
+ */
+ @JsonProperty(value = "webhookReceivers")
+ private List webhookReceivers;
+
+ /*
+ * The list of ITSM receivers that are part of this action group.
+ */
+ @JsonProperty(value = "itsmReceivers")
+ private List itsmReceivers;
+
+ /*
+ * The list of AzureAppPush receivers that are part of this action group.
+ */
+ @JsonProperty(value = "azureAppPushReceivers")
+ private List azureAppPushReceivers;
+
+ /*
+ * The list of AutomationRunbook receivers that are part of this action
+ * group.
+ */
+ @JsonProperty(value = "automationRunbookReceivers")
+ private List automationRunbookReceivers;
+
+ /*
+ * The list of voice receivers that are part of this action group.
+ */
+ @JsonProperty(value = "voiceReceivers")
+ private List voiceReceivers;
+
+ /*
+ * The list of logic app receivers that are part of this action group.
+ */
+ @JsonProperty(value = "logicAppReceivers")
+ private List logicAppReceivers;
+
+ /*
+ * The list of azure function receivers that are part of this action group.
+ */
+ @JsonProperty(value = "azureFunctionReceivers")
+ private List azureFunctionReceivers;
+
+ /*
+ * The list of ARM role receivers that are part of this action group. Roles
+ * are Azure RBAC roles and only built-in roles are supported.
+ */
+ @JsonProperty(value = "armRoleReceivers")
+ private List armRoleReceivers;
+
+ /**
+ * Get the groupShortName property: The short name of the action group. This will be used in SMS messages.
+ *
+ * @return the groupShortName value.
+ */
+ public String groupShortName() {
+ return this.groupShortName;
+ }
+
+ /**
+ * Set the groupShortName property: The short name of the action group. This will be used in SMS messages.
+ *
+ * @param groupShortName the groupShortName value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withGroupShortName(String groupShortName) {
+ this.groupShortName = groupShortName;
+ return this;
+ }
+
+ /**
+ * Get the enabled property: Indicates whether this action group is enabled. If an action group is not enabled, then
+ * none of its receivers will receive communications.
+ *
+ * @return the enabled value.
+ */
+ public boolean enabled() {
+ return this.enabled;
+ }
+
+ /**
+ * Set the enabled property: Indicates whether this action group is enabled. If an action group is not enabled, then
+ * none of its receivers will receive communications.
+ *
+ * @param enabled the enabled value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withEnabled(boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Get the emailReceivers property: The list of email receivers that are part of this action group.
+ *
+ * @return the emailReceivers value.
+ */
+ public List emailReceivers() {
+ return this.emailReceivers;
+ }
+
+ /**
+ * Set the emailReceivers property: The list of email receivers that are part of this action group.
+ *
+ * @param emailReceivers the emailReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withEmailReceivers(List emailReceivers) {
+ this.emailReceivers = emailReceivers;
+ return this;
+ }
+
+ /**
+ * Get the smsReceivers property: The list of SMS receivers that are part of this action group.
+ *
+ * @return the smsReceivers value.
+ */
+ public List smsReceivers() {
+ return this.smsReceivers;
+ }
+
+ /**
+ * Set the smsReceivers property: The list of SMS receivers that are part of this action group.
+ *
+ * @param smsReceivers the smsReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withSmsReceivers(List smsReceivers) {
+ this.smsReceivers = smsReceivers;
+ return this;
+ }
+
+ /**
+ * Get the webhookReceivers property: The list of webhook receivers that are part of this action group.
+ *
+ * @return the webhookReceivers value.
+ */
+ public List webhookReceivers() {
+ return this.webhookReceivers;
+ }
+
+ /**
+ * Set the webhookReceivers property: The list of webhook receivers that are part of this action group.
+ *
+ * @param webhookReceivers the webhookReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withWebhookReceivers(List webhookReceivers) {
+ this.webhookReceivers = webhookReceivers;
+ return this;
+ }
+
+ /**
+ * Get the itsmReceivers property: The list of ITSM receivers that are part of this action group.
+ *
+ * @return the itsmReceivers value.
+ */
+ public List itsmReceivers() {
+ return this.itsmReceivers;
+ }
+
+ /**
+ * Set the itsmReceivers property: The list of ITSM receivers that are part of this action group.
+ *
+ * @param itsmReceivers the itsmReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withItsmReceivers(List itsmReceivers) {
+ this.itsmReceivers = itsmReceivers;
+ return this;
+ }
+
+ /**
+ * Get the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.
+ *
+ * @return the azureAppPushReceivers value.
+ */
+ public List azureAppPushReceivers() {
+ return this.azureAppPushReceivers;
+ }
+
+ /**
+ * Set the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.
+ *
+ * @param azureAppPushReceivers the azureAppPushReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withAzureAppPushReceivers(List azureAppPushReceivers) {
+ this.azureAppPushReceivers = azureAppPushReceivers;
+ return this;
+ }
+
+ /**
+ * Get the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action
+ * group.
+ *
+ * @return the automationRunbookReceivers value.
+ */
+ public List automationRunbookReceivers() {
+ return this.automationRunbookReceivers;
+ }
+
+ /**
+ * Set the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action
+ * group.
+ *
+ * @param automationRunbookReceivers the automationRunbookReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withAutomationRunbookReceivers(List automationRunbookReceivers) {
+ this.automationRunbookReceivers = automationRunbookReceivers;
+ return this;
+ }
+
+ /**
+ * Get the voiceReceivers property: The list of voice receivers that are part of this action group.
+ *
+ * @return the voiceReceivers value.
+ */
+ public List voiceReceivers() {
+ return this.voiceReceivers;
+ }
+
+ /**
+ * Set the voiceReceivers property: The list of voice receivers that are part of this action group.
+ *
+ * @param voiceReceivers the voiceReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withVoiceReceivers(List voiceReceivers) {
+ this.voiceReceivers = voiceReceivers;
+ return this;
+ }
+
+ /**
+ * Get the logicAppReceivers property: The list of logic app receivers that are part of this action group.
+ *
+ * @return the logicAppReceivers value.
+ */
+ public List logicAppReceivers() {
+ return this.logicAppReceivers;
+ }
+
+ /**
+ * Set the logicAppReceivers property: The list of logic app receivers that are part of this action group.
+ *
+ * @param logicAppReceivers the logicAppReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withLogicAppReceivers(List logicAppReceivers) {
+ this.logicAppReceivers = logicAppReceivers;
+ return this;
+ }
+
+ /**
+ * Get the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.
+ *
+ * @return the azureFunctionReceivers value.
+ */
+ public List azureFunctionReceivers() {
+ return this.azureFunctionReceivers;
+ }
+
+ /**
+ * Set the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.
+ *
+ * @param azureFunctionReceivers the azureFunctionReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withAzureFunctionReceivers(List azureFunctionReceivers) {
+ this.azureFunctionReceivers = azureFunctionReceivers;
+ return this;
+ }
+
+ /**
+ * Get the armRoleReceivers property: The list of ARM role receivers that are part of this action group. Roles are
+ * Azure RBAC roles and only built-in roles are supported.
+ *
+ * @return the armRoleReceivers value.
+ */
+ public List armRoleReceivers() {
+ return this.armRoleReceivers;
+ }
+
+ /**
+ * Set the armRoleReceivers property: The list of ARM role receivers that are part of this action group. Roles are
+ * Azure RBAC roles and only built-in roles are supported.
+ *
+ * @param armRoleReceivers the armRoleReceivers value to set.
+ * @return the ActionGroup object itself.
+ */
+ public ActionGroup withArmRoleReceivers(List armRoleReceivers) {
+ this.armRoleReceivers = armRoleReceivers;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (groupShortName() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property groupShortName in model ActionGroup"));
+ }
+ if (emailReceivers() != null) {
+ emailReceivers().forEach(e -> e.validate());
+ }
+ if (smsReceivers() != null) {
+ smsReceivers().forEach(e -> e.validate());
+ }
+ if (webhookReceivers() != null) {
+ webhookReceivers().forEach(e -> e.validate());
+ }
+ if (itsmReceivers() != null) {
+ itsmReceivers().forEach(e -> e.validate());
+ }
+ if (azureAppPushReceivers() != null) {
+ azureAppPushReceivers().forEach(e -> e.validate());
+ }
+ if (automationRunbookReceivers() != null) {
+ automationRunbookReceivers().forEach(e -> e.validate());
+ }
+ if (voiceReceivers() != null) {
+ voiceReceivers().forEach(e -> e.validate());
+ }
+ if (logicAppReceivers() != null) {
+ logicAppReceivers().forEach(e -> e.validate());
+ }
+ if (azureFunctionReceivers() != null) {
+ azureFunctionReceivers().forEach(e -> e.validate());
+ }
+ if (armRoleReceivers() != null) {
+ armRoleReceivers().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActionGroupPatch.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActionGroupPatch.java
new file mode 100644
index 000000000000..af4a2865e010
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActionGroupPatch.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** An Azure action group for patch operations. */
+@Fluent
+public final class ActionGroupPatch {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ActionGroupPatch.class);
+
+ /*
+ * Indicates whether this action group is enabled. If an action group is
+ * not enabled, then none of its actions will be activated.
+ */
+ @JsonProperty(value = "enabled")
+ private Boolean enabled;
+
+ /**
+ * Get the enabled property: Indicates whether this action group is enabled. If an action group is not enabled, then
+ * none of its actions will be activated.
+ *
+ * @return the enabled value.
+ */
+ public Boolean enabled() {
+ return this.enabled;
+ }
+
+ /**
+ * Set the enabled property: Indicates whether this action group is enabled. If an action group is not enabled, then
+ * none of its actions will be activated.
+ *
+ * @param enabled the enabled value to set.
+ * @return the ActionGroupPatch object itself.
+ */
+ public ActionGroupPatch withEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActionGroupResourceInner.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActionGroupResourceInner.java
new file mode 100644
index 000000000000..730cc8569bc2
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActionGroupResourceInner.java
@@ -0,0 +1,354 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.monitor.generated.models.ArmRoleReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AutomationRunbookReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AzureAppPushReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AzureFunctionReceiver;
+import com.azure.resourcemanager.monitor.generated.models.AzureResource;
+import com.azure.resourcemanager.monitor.generated.models.EmailReceiver;
+import com.azure.resourcemanager.monitor.generated.models.ItsmReceiver;
+import com.azure.resourcemanager.monitor.generated.models.LogicAppReceiver;
+import com.azure.resourcemanager.monitor.generated.models.SmsReceiver;
+import com.azure.resourcemanager.monitor.generated.models.VoiceReceiver;
+import com.azure.resourcemanager.monitor.generated.models.WebhookReceiver;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** An action group resource. */
+@Fluent
+public final class ActionGroupResourceInner extends AzureResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ActionGroupResourceInner.class);
+
+ /*
+ * The action groups properties of the resource.
+ */
+ @JsonProperty(value = "properties")
+ private ActionGroup innerProperties;
+
+ /**
+ * Get the innerProperties property: The action groups properties of the resource.
+ *
+ * @return the innerProperties value.
+ */
+ private ActionGroup innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ActionGroupResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ActionGroupResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the groupShortName property: The short name of the action group. This will be used in SMS messages.
+ *
+ * @return the groupShortName value.
+ */
+ public String groupShortName() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupShortName();
+ }
+
+ /**
+ * Set the groupShortName property: The short name of the action group. This will be used in SMS messages.
+ *
+ * @param groupShortName the groupShortName value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withGroupShortName(String groupShortName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withGroupShortName(groupShortName);
+ return this;
+ }
+
+ /**
+ * Get the enabled property: Indicates whether this action group is enabled. If an action group is not enabled, then
+ * none of its receivers will receive communications.
+ *
+ * @return the enabled value.
+ */
+ public Boolean enabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().enabled();
+ }
+
+ /**
+ * Set the enabled property: Indicates whether this action group is enabled. If an action group is not enabled, then
+ * none of its receivers will receive communications.
+ *
+ * @param enabled the enabled value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withEnabled(Boolean enabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withEnabled(enabled);
+ return this;
+ }
+
+ /**
+ * Get the emailReceivers property: The list of email receivers that are part of this action group.
+ *
+ * @return the emailReceivers value.
+ */
+ public List emailReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().emailReceivers();
+ }
+
+ /**
+ * Set the emailReceivers property: The list of email receivers that are part of this action group.
+ *
+ * @param emailReceivers the emailReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withEmailReceivers(List emailReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withEmailReceivers(emailReceivers);
+ return this;
+ }
+
+ /**
+ * Get the smsReceivers property: The list of SMS receivers that are part of this action group.
+ *
+ * @return the smsReceivers value.
+ */
+ public List smsReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().smsReceivers();
+ }
+
+ /**
+ * Set the smsReceivers property: The list of SMS receivers that are part of this action group.
+ *
+ * @param smsReceivers the smsReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withSmsReceivers(List smsReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withSmsReceivers(smsReceivers);
+ return this;
+ }
+
+ /**
+ * Get the webhookReceivers property: The list of webhook receivers that are part of this action group.
+ *
+ * @return the webhookReceivers value.
+ */
+ public List webhookReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().webhookReceivers();
+ }
+
+ /**
+ * Set the webhookReceivers property: The list of webhook receivers that are part of this action group.
+ *
+ * @param webhookReceivers the webhookReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withWebhookReceivers(List webhookReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withWebhookReceivers(webhookReceivers);
+ return this;
+ }
+
+ /**
+ * Get the itsmReceivers property: The list of ITSM receivers that are part of this action group.
+ *
+ * @return the itsmReceivers value.
+ */
+ public List itsmReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().itsmReceivers();
+ }
+
+ /**
+ * Set the itsmReceivers property: The list of ITSM receivers that are part of this action group.
+ *
+ * @param itsmReceivers the itsmReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withItsmReceivers(List itsmReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withItsmReceivers(itsmReceivers);
+ return this;
+ }
+
+ /**
+ * Get the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.
+ *
+ * @return the azureAppPushReceivers value.
+ */
+ public List azureAppPushReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().azureAppPushReceivers();
+ }
+
+ /**
+ * Set the azureAppPushReceivers property: The list of AzureAppPush receivers that are part of this action group.
+ *
+ * @param azureAppPushReceivers the azureAppPushReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withAzureAppPushReceivers(List azureAppPushReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withAzureAppPushReceivers(azureAppPushReceivers);
+ return this;
+ }
+
+ /**
+ * Get the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action
+ * group.
+ *
+ * @return the automationRunbookReceivers value.
+ */
+ public List automationRunbookReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().automationRunbookReceivers();
+ }
+
+ /**
+ * Set the automationRunbookReceivers property: The list of AutomationRunbook receivers that are part of this action
+ * group.
+ *
+ * @param automationRunbookReceivers the automationRunbookReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withAutomationRunbookReceivers(
+ List automationRunbookReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withAutomationRunbookReceivers(automationRunbookReceivers);
+ return this;
+ }
+
+ /**
+ * Get the voiceReceivers property: The list of voice receivers that are part of this action group.
+ *
+ * @return the voiceReceivers value.
+ */
+ public List voiceReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().voiceReceivers();
+ }
+
+ /**
+ * Set the voiceReceivers property: The list of voice receivers that are part of this action group.
+ *
+ * @param voiceReceivers the voiceReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withVoiceReceivers(List voiceReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withVoiceReceivers(voiceReceivers);
+ return this;
+ }
+
+ /**
+ * Get the logicAppReceivers property: The list of logic app receivers that are part of this action group.
+ *
+ * @return the logicAppReceivers value.
+ */
+ public List logicAppReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().logicAppReceivers();
+ }
+
+ /**
+ * Set the logicAppReceivers property: The list of logic app receivers that are part of this action group.
+ *
+ * @param logicAppReceivers the logicAppReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withLogicAppReceivers(List logicAppReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withLogicAppReceivers(logicAppReceivers);
+ return this;
+ }
+
+ /**
+ * Get the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.
+ *
+ * @return the azureFunctionReceivers value.
+ */
+ public List azureFunctionReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().azureFunctionReceivers();
+ }
+
+ /**
+ * Set the azureFunctionReceivers property: The list of azure function receivers that are part of this action group.
+ *
+ * @param azureFunctionReceivers the azureFunctionReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withAzureFunctionReceivers(List azureFunctionReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withAzureFunctionReceivers(azureFunctionReceivers);
+ return this;
+ }
+
+ /**
+ * Get the armRoleReceivers property: The list of ARM role receivers that are part of this action group. Roles are
+ * Azure RBAC roles and only built-in roles are supported.
+ *
+ * @return the armRoleReceivers value.
+ */
+ public List armRoleReceivers() {
+ return this.innerProperties() == null ? null : this.innerProperties().armRoleReceivers();
+ }
+
+ /**
+ * Set the armRoleReceivers property: The list of ARM role receivers that are part of this action group. Roles are
+ * Azure RBAC roles and only built-in roles are supported.
+ *
+ * @param armRoleReceivers the armRoleReceivers value to set.
+ * @return the ActionGroupResourceInner object itself.
+ */
+ public ActionGroupResourceInner withArmRoleReceivers(List armRoleReceivers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActionGroup();
+ }
+ this.innerProperties().withArmRoleReceivers(armRoleReceivers);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActivityLogAlert.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActivityLogAlert.java
new file mode 100644
index 000000000000..b236ff3ff7c2
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActivityLogAlert.java
@@ -0,0 +1,183 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertActionList;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertAllOfCondition;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** An Azure activity log alert. */
+@Fluent
+public final class ActivityLogAlert {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ActivityLogAlert.class);
+
+ /*
+ * A list of resourceIds that will be used as prefixes. The alert will only
+ * apply to activityLogs with resourceIds that fall under one of these
+ * prefixes. This list must include at least one item.
+ */
+ @JsonProperty(value = "scopes", required = true)
+ private List scopes;
+
+ /*
+ * Indicates whether this activity log alert is enabled. If an activity log
+ * alert is not enabled, then none of its actions will be activated.
+ */
+ @JsonProperty(value = "enabled")
+ private Boolean enabled;
+
+ /*
+ * The condition that will cause this alert to activate.
+ */
+ @JsonProperty(value = "condition", required = true)
+ private ActivityLogAlertAllOfCondition condition;
+
+ /*
+ * The actions that will activate when the condition is met.
+ */
+ @JsonProperty(value = "actions", required = true)
+ private ActivityLogAlertActionList actions;
+
+ /*
+ * A description of this activity log alert.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /**
+ * Get the scopes property: A list of resourceIds that will be used as prefixes. The alert will only apply to
+ * activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
+ *
+ * @return the scopes value.
+ */
+ public List scopes() {
+ return this.scopes;
+ }
+
+ /**
+ * Set the scopes property: A list of resourceIds that will be used as prefixes. The alert will only apply to
+ * activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
+ *
+ * @param scopes the scopes value to set.
+ * @return the ActivityLogAlert object itself.
+ */
+ public ActivityLogAlert withScopes(List scopes) {
+ this.scopes = scopes;
+ return this;
+ }
+
+ /**
+ * Get the enabled property: Indicates whether this activity log alert is enabled. If an activity log alert is not
+ * enabled, then none of its actions will be activated.
+ *
+ * @return the enabled value.
+ */
+ public Boolean enabled() {
+ return this.enabled;
+ }
+
+ /**
+ * Set the enabled property: Indicates whether this activity log alert is enabled. If an activity log alert is not
+ * enabled, then none of its actions will be activated.
+ *
+ * @param enabled the enabled value to set.
+ * @return the ActivityLogAlert object itself.
+ */
+ public ActivityLogAlert withEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Get the condition property: The condition that will cause this alert to activate.
+ *
+ * @return the condition value.
+ */
+ public ActivityLogAlertAllOfCondition condition() {
+ return this.condition;
+ }
+
+ /**
+ * Set the condition property: The condition that will cause this alert to activate.
+ *
+ * @param condition the condition value to set.
+ * @return the ActivityLogAlert object itself.
+ */
+ public ActivityLogAlert withCondition(ActivityLogAlertAllOfCondition condition) {
+ this.condition = condition;
+ return this;
+ }
+
+ /**
+ * Get the actions property: The actions that will activate when the condition is met.
+ *
+ * @return the actions value.
+ */
+ public ActivityLogAlertActionList actions() {
+ return this.actions;
+ }
+
+ /**
+ * Set the actions property: The actions that will activate when the condition is met.
+ *
+ * @param actions the actions value to set.
+ * @return the ActivityLogAlert object itself.
+ */
+ public ActivityLogAlert withActions(ActivityLogAlertActionList actions) {
+ this.actions = actions;
+ return this;
+ }
+
+ /**
+ * Get the description property: A description of this activity log alert.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: A description of this activity log alert.
+ *
+ * @param description the description value to set.
+ * @return the ActivityLogAlert object itself.
+ */
+ public ActivityLogAlert withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (scopes() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property scopes in model ActivityLogAlert"));
+ }
+ if (condition() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property condition in model ActivityLogAlert"));
+ } else {
+ condition().validate();
+ }
+ if (actions() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property actions in model ActivityLogAlert"));
+ } else {
+ actions().validate();
+ }
+ }
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActivityLogAlertPatch.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActivityLogAlertPatch.java
new file mode 100644
index 000000000000..4aa85ecb0de0
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActivityLogAlertPatch.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** An Azure activity log alert for patch operations. */
+@Fluent
+public final class ActivityLogAlertPatch {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ActivityLogAlertPatch.class);
+
+ /*
+ * Indicates whether this activity log alert is enabled. If an activity log
+ * alert is not enabled, then none of its actions will be activated.
+ */
+ @JsonProperty(value = "enabled")
+ private Boolean enabled;
+
+ /**
+ * Get the enabled property: Indicates whether this activity log alert is enabled. If an activity log alert is not
+ * enabled, then none of its actions will be activated.
+ *
+ * @return the enabled value.
+ */
+ public Boolean enabled() {
+ return this.enabled;
+ }
+
+ /**
+ * Set the enabled property: Indicates whether this activity log alert is enabled. If an activity log alert is not
+ * enabled, then none of its actions will be activated.
+ *
+ * @param enabled the enabled value to set.
+ * @return the ActivityLogAlertPatch object itself.
+ */
+ public ActivityLogAlertPatch withEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActivityLogAlertResourceInner.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActivityLogAlertResourceInner.java
new file mode 100644
index 000000000000..0fa0cb5ba11e
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/ActivityLogAlertResourceInner.java
@@ -0,0 +1,180 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertActionList;
+import com.azure.resourcemanager.monitor.generated.models.ActivityLogAlertAllOfCondition;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** An activity log alert resource. */
+@Fluent
+public final class ActivityLogAlertResourceInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ActivityLogAlertResourceInner.class);
+
+ /*
+ * The activity log alert properties of the resource.
+ */
+ @JsonProperty(value = "properties")
+ private ActivityLogAlert innerProperties;
+
+ /**
+ * Get the innerProperties property: The activity log alert properties of the resource.
+ *
+ * @return the innerProperties value.
+ */
+ private ActivityLogAlert innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ActivityLogAlertResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ActivityLogAlertResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the scopes property: A list of resourceIds that will be used as prefixes. The alert will only apply to
+ * activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
+ *
+ * @return the scopes value.
+ */
+ public List scopes() {
+ return this.innerProperties() == null ? null : this.innerProperties().scopes();
+ }
+
+ /**
+ * Set the scopes property: A list of resourceIds that will be used as prefixes. The alert will only apply to
+ * activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
+ *
+ * @param scopes the scopes value to set.
+ * @return the ActivityLogAlertResourceInner object itself.
+ */
+ public ActivityLogAlertResourceInner withScopes(List scopes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActivityLogAlert();
+ }
+ this.innerProperties().withScopes(scopes);
+ return this;
+ }
+
+ /**
+ * Get the enabled property: Indicates whether this activity log alert is enabled. If an activity log alert is not
+ * enabled, then none of its actions will be activated.
+ *
+ * @return the enabled value.
+ */
+ public Boolean enabled() {
+ return this.innerProperties() == null ? null : this.innerProperties().enabled();
+ }
+
+ /**
+ * Set the enabled property: Indicates whether this activity log alert is enabled. If an activity log alert is not
+ * enabled, then none of its actions will be activated.
+ *
+ * @param enabled the enabled value to set.
+ * @return the ActivityLogAlertResourceInner object itself.
+ */
+ public ActivityLogAlertResourceInner withEnabled(Boolean enabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActivityLogAlert();
+ }
+ this.innerProperties().withEnabled(enabled);
+ return this;
+ }
+
+ /**
+ * Get the condition property: The condition that will cause this alert to activate.
+ *
+ * @return the condition value.
+ */
+ public ActivityLogAlertAllOfCondition condition() {
+ return this.innerProperties() == null ? null : this.innerProperties().condition();
+ }
+
+ /**
+ * Set the condition property: The condition that will cause this alert to activate.
+ *
+ * @param condition the condition value to set.
+ * @return the ActivityLogAlertResourceInner object itself.
+ */
+ public ActivityLogAlertResourceInner withCondition(ActivityLogAlertAllOfCondition condition) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActivityLogAlert();
+ }
+ this.innerProperties().withCondition(condition);
+ return this;
+ }
+
+ /**
+ * Get the actions property: The actions that will activate when the condition is met.
+ *
+ * @return the actions value.
+ */
+ public ActivityLogAlertActionList actions() {
+ return this.innerProperties() == null ? null : this.innerProperties().actions();
+ }
+
+ /**
+ * Set the actions property: The actions that will activate when the condition is met.
+ *
+ * @param actions the actions value to set.
+ * @return the ActivityLogAlertResourceInner object itself.
+ */
+ public ActivityLogAlertResourceInner withActions(ActivityLogAlertActionList actions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActivityLogAlert();
+ }
+ this.innerProperties().withActions(actions);
+ return this;
+ }
+
+ /**
+ * Get the description property: A description of this activity log alert.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.innerProperties() == null ? null : this.innerProperties().description();
+ }
+
+ /**
+ * Set the description property: A description of this activity log alert.
+ *
+ * @param description the description value to set.
+ * @return the ActivityLogAlertResourceInner object itself.
+ */
+ public ActivityLogAlertResourceInner withDescription(String description) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ActivityLogAlert();
+ }
+ this.innerProperties().withDescription(description);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/AlertRule.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/AlertRule.java
new file mode 100644
index 000000000000..ba59734f49cf
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/AlertRule.java
@@ -0,0 +1,249 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.monitor.generated.models.RuleAction;
+import com.azure.resourcemanager.monitor.generated.models.RuleCondition;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** An alert rule. */
+@Fluent
+public final class AlertRule {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AlertRule.class);
+
+ /*
+ * the name of the alert rule.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /*
+ * the description of the alert rule that will be included in the alert
+ * email.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * the provisioning state.
+ */
+ @JsonProperty(value = "provisioningState")
+ private String provisioningState;
+
+ /*
+ * the flag that indicates whether the alert rule is enabled.
+ */
+ @JsonProperty(value = "isEnabled", required = true)
+ private boolean isEnabled;
+
+ /*
+ * the condition that results in the alert rule being activated.
+ */
+ @JsonProperty(value = "condition", required = true)
+ private RuleCondition condition;
+
+ /*
+ * action that is performed when the alert rule becomes active, and when an
+ * alert condition is resolved.
+ */
+ @JsonProperty(value = "action")
+ private RuleAction action;
+
+ /*
+ * the array of actions that are performed when the alert rule becomes
+ * active, and when an alert condition is resolved.
+ */
+ @JsonProperty(value = "actions")
+ private List actions;
+
+ /*
+ * Last time the rule was updated in ISO8601 format.
+ */
+ @JsonProperty(value = "lastUpdatedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastUpdatedTime;
+
+ /**
+ * Get the name property: the name of the alert rule.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: the name of the alert rule.
+ *
+ * @param name the name value to set.
+ * @return the AlertRule object itself.
+ */
+ public AlertRule withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the description property: the description of the alert rule that will be included in the alert email.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: the description of the alert rule that will be included in the alert email.
+ *
+ * @param description the description value to set.
+ * @return the AlertRule object itself.
+ */
+ public AlertRule withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: the provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: the provisioning state.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the AlertRule object itself.
+ */
+ public AlertRule withProvisioningState(String provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Get the isEnabled property: the flag that indicates whether the alert rule is enabled.
+ *
+ * @return the isEnabled value.
+ */
+ public boolean isEnabled() {
+ return this.isEnabled;
+ }
+
+ /**
+ * Set the isEnabled property: the flag that indicates whether the alert rule is enabled.
+ *
+ * @param isEnabled the isEnabled value to set.
+ * @return the AlertRule object itself.
+ */
+ public AlertRule withIsEnabled(boolean isEnabled) {
+ this.isEnabled = isEnabled;
+ return this;
+ }
+
+ /**
+ * Get the condition property: the condition that results in the alert rule being activated.
+ *
+ * @return the condition value.
+ */
+ public RuleCondition condition() {
+ return this.condition;
+ }
+
+ /**
+ * Set the condition property: the condition that results in the alert rule being activated.
+ *
+ * @param condition the condition value to set.
+ * @return the AlertRule object itself.
+ */
+ public AlertRule withCondition(RuleCondition condition) {
+ this.condition = condition;
+ return this;
+ }
+
+ /**
+ * Get the action property: action that is performed when the alert rule becomes active, and when an alert condition
+ * is resolved.
+ *
+ * @return the action value.
+ */
+ public RuleAction action() {
+ return this.action;
+ }
+
+ /**
+ * Set the action property: action that is performed when the alert rule becomes active, and when an alert condition
+ * is resolved.
+ *
+ * @param action the action value to set.
+ * @return the AlertRule object itself.
+ */
+ public AlertRule withAction(RuleAction action) {
+ this.action = action;
+ return this;
+ }
+
+ /**
+ * Get the actions property: the array of actions that are performed when the alert rule becomes active, and when an
+ * alert condition is resolved.
+ *
+ * @return the actions value.
+ */
+ public List actions() {
+ return this.actions;
+ }
+
+ /**
+ * Set the actions property: the array of actions that are performed when the alert rule becomes active, and when an
+ * alert condition is resolved.
+ *
+ * @param actions the actions value to set.
+ * @return the AlertRule object itself.
+ */
+ public AlertRule withActions(List actions) {
+ this.actions = actions;
+ return this;
+ }
+
+ /**
+ * Get the lastUpdatedTime property: Last time the rule was updated in ISO8601 format.
+ *
+ * @return the lastUpdatedTime value.
+ */
+ public OffsetDateTime lastUpdatedTime() {
+ return this.lastUpdatedTime;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw logger
+ .logExceptionAsError(new IllegalArgumentException("Missing required property name in model AlertRule"));
+ }
+ if (condition() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property condition in model AlertRule"));
+ } else {
+ condition().validate();
+ }
+ if (action() != null) {
+ action().validate();
+ }
+ if (actions() != null) {
+ actions().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/AlertRuleResourceInner.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/AlertRuleResourceInner.java
new file mode 100644
index 000000000000..3115ac44fb36
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/AlertRuleResourceInner.java
@@ -0,0 +1,241 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.monitor.generated.models.RuleAction;
+import com.azure.resourcemanager.monitor.generated.models.RuleCondition;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** The alert rule resource. */
+@Fluent
+public final class AlertRuleResourceInner extends Resource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AlertRuleResourceInner.class);
+
+ /*
+ * The alert rule properties of the resource.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private AlertRule innerProperties = new AlertRule();
+
+ /**
+ * Get the innerProperties property: The alert rule properties of the resource.
+ *
+ * @return the innerProperties value.
+ */
+ private AlertRule innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AlertRuleResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AlertRuleResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the name property: the name of the alert rule.
+ *
+ * @return the name value.
+ */
+ public String namePropertiesName() {
+ return this.innerProperties() == null ? null : this.innerProperties().name();
+ }
+
+ /**
+ * Set the name property: the name of the alert rule.
+ *
+ * @param name the name value to set.
+ * @return the AlertRuleResourceInner object itself.
+ */
+ public AlertRuleResourceInner withNamePropertiesName(String name) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AlertRule();
+ }
+ this.innerProperties().withName(name);
+ return this;
+ }
+
+ /**
+ * Get the description property: the description of the alert rule that will be included in the alert email.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.innerProperties() == null ? null : this.innerProperties().description();
+ }
+
+ /**
+ * Set the description property: the description of the alert rule that will be included in the alert email.
+ *
+ * @param description the description value to set.
+ * @return the AlertRuleResourceInner object itself.
+ */
+ public AlertRuleResourceInner withDescription(String description) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AlertRule();
+ }
+ this.innerProperties().withDescription(description);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: the provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Set the provisioningState property: the provisioning state.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the AlertRuleResourceInner object itself.
+ */
+ public AlertRuleResourceInner withProvisioningState(String provisioningState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AlertRule();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
+ return this;
+ }
+
+ /**
+ * Get the isEnabled property: the flag that indicates whether the alert rule is enabled.
+ *
+ * @return the isEnabled value.
+ */
+ public boolean isEnabled() {
+ return this.innerProperties() == null ? false : this.innerProperties().isEnabled();
+ }
+
+ /**
+ * Set the isEnabled property: the flag that indicates whether the alert rule is enabled.
+ *
+ * @param isEnabled the isEnabled value to set.
+ * @return the AlertRuleResourceInner object itself.
+ */
+ public AlertRuleResourceInner withIsEnabled(boolean isEnabled) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AlertRule();
+ }
+ this.innerProperties().withIsEnabled(isEnabled);
+ return this;
+ }
+
+ /**
+ * Get the condition property: the condition that results in the alert rule being activated.
+ *
+ * @return the condition value.
+ */
+ public RuleCondition condition() {
+ return this.innerProperties() == null ? null : this.innerProperties().condition();
+ }
+
+ /**
+ * Set the condition property: the condition that results in the alert rule being activated.
+ *
+ * @param condition the condition value to set.
+ * @return the AlertRuleResourceInner object itself.
+ */
+ public AlertRuleResourceInner withCondition(RuleCondition condition) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AlertRule();
+ }
+ this.innerProperties().withCondition(condition);
+ return this;
+ }
+
+ /**
+ * Get the action property: action that is performed when the alert rule becomes active, and when an alert condition
+ * is resolved.
+ *
+ * @return the action value.
+ */
+ public RuleAction action() {
+ return this.innerProperties() == null ? null : this.innerProperties().action();
+ }
+
+ /**
+ * Set the action property: action that is performed when the alert rule becomes active, and when an alert condition
+ * is resolved.
+ *
+ * @param action the action value to set.
+ * @return the AlertRuleResourceInner object itself.
+ */
+ public AlertRuleResourceInner withAction(RuleAction action) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AlertRule();
+ }
+ this.innerProperties().withAction(action);
+ return this;
+ }
+
+ /**
+ * Get the actions property: the array of actions that are performed when the alert rule becomes active, and when an
+ * alert condition is resolved.
+ *
+ * @return the actions value.
+ */
+ public List actions() {
+ return this.innerProperties() == null ? null : this.innerProperties().actions();
+ }
+
+ /**
+ * Set the actions property: the array of actions that are performed when the alert rule becomes active, and when an
+ * alert condition is resolved.
+ *
+ * @param actions the actions value to set.
+ * @return the AlertRuleResourceInner object itself.
+ */
+ public AlertRuleResourceInner withActions(List actions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AlertRule();
+ }
+ this.innerProperties().withActions(actions);
+ return this;
+ }
+
+ /**
+ * Get the lastUpdatedTime property: Last time the rule was updated in ISO8601 format.
+ *
+ * @return the lastUpdatedTime value.
+ */
+ public OffsetDateTime lastUpdatedTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastUpdatedTime();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model AlertRuleResourceInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/AutoscaleSetting.java b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/AutoscaleSetting.java
new file mode 100644
index 000000000000..c1597d197d40
--- /dev/null
+++ b/sdk/monitor/azure-resourcemanager-monitor-generated/src/main/java/com/azure/resourcemanager/monitor/generated/fluent/models/AutoscaleSetting.java
@@ -0,0 +1,206 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.monitor.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.monitor.generated.models.AutoscaleNotification;
+import com.azure.resourcemanager.monitor.generated.models.AutoscaleProfile;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A setting that contains all of the configuration for the automatic scaling of a resource. */
+@Fluent
+public final class AutoscaleSetting {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AutoscaleSetting.class);
+
+ /*
+ * the collection of automatic scaling profiles that specify different
+ * scaling parameters for different time periods. A maximum of 20 profiles
+ * can be specified.
+ */
+ @JsonProperty(value = "profiles", required = true)
+ private List profiles;
+
+ /*
+ * the collection of notifications.
+ */
+ @JsonProperty(value = "notifications")
+ private List notifications;
+
+ /*
+ * the enabled flag. Specifies whether automatic scaling is enabled for the
+ * resource. The default value is 'true'.
+ */
+ @JsonProperty(value = "enabled")
+ private Boolean enabled;
+
+ /*
+ * the name of the autoscale setting.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * the resource identifier of the resource that the autoscale setting
+ * should be added to.
+ */
+ @JsonProperty(value = "targetResourceUri")
+ private String targetResourceUri;
+
+ /*
+ * the location of the resource that the autoscale setting should be added
+ * to.
+ */
+ @JsonProperty(value = "targetResourceLocation")
+ private String targetResourceLocation;
+
+ /**
+ * Get the profiles property: the collection of automatic scaling profiles that specify different scaling parameters
+ * for different time periods. A maximum of 20 profiles can be specified.
+ *
+ * @return the profiles value.
+ */
+ public List profiles() {
+ return this.profiles;
+ }
+
+ /**
+ * Set the profiles property: the collection of automatic scaling profiles that specify different scaling parameters
+ * for different time periods. A maximum of 20 profiles can be specified.
+ *
+ * @param profiles the profiles value to set.
+ * @return the AutoscaleSetting object itself.
+ */
+ public AutoscaleSetting withProfiles(List profiles) {
+ this.profiles = profiles;
+ return this;
+ }
+
+ /**
+ * Get the notifications property: the collection of notifications.
+ *
+ * @return the notifications value.
+ */
+ public List