From a677918ba027fad92719cf6a6febc31e64fbfd4d Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 21 Aug 2026 16:38:59 +0000 Subject: [PATCH] Configurations: 'specification/cloudhealth/resource-manager/Microsoft.CloudHealth/CloudHealth/tspconfig.yaml', API Version: 2026-09-01-preview, SDK Release Type: beta, and CommitSHA: '2699940980baf57f4a5eedd1c80d5767820425a5' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6731414 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 40 +- .../README.md | 4 +- .../SAMPLE.md | 98 ++-- .../azure-resourcemanager-cloudhealth/pom.xml | 2 +- .../CloudHealthManagementClientImpl.java | 2 +- .../cloudhealth/models/AggregationType.java | 63 +++ .../cloudhealth/models/AggregationUnit.java | 51 ++ .../models/DependenciesAggregationType.java | 56 -- .../models/DependenciesAggregationUnit.java | 51 -- .../models/DependenciesSignalGroupV2.java | 17 +- .../models/DiscoveryRuleProperties.java | 4 +- .../cloudhealth/models/EntityProperties.java | 43 ++ .../cloudhealth/models/LookBackWindow.java | 61 --- .../models/SignalAggregationGroup.java | 367 +++++++++++++ .../cloudhealth/models/ThresholdRuleV2.java | 32 -- ...-resourcemanager-cloudhealth_metadata.json | 2 +- ...ticationSettingsCreateOrUpdateSamples.java | 2 +- .../AuthenticationSettingsDeleteSamples.java | 2 +- .../AuthenticationSettingsGetSamples.java | 2 +- ...ationSettingsListByHealthModelSamples.java | 2 +- .../DiscoveryRulesCreateOrUpdateSamples.java | 2 +- .../DiscoveryRulesDeleteSamples.java | 2 +- .../generated/DiscoveryRulesGetSamples.java | 2 +- ...iscoveryRulesListByHealthModelSamples.java | 2 +- .../EntitiesAddDataAnnotationSamples.java | 2 +- .../EntitiesCreateOrUpdateSamples.java | 30 +- .../generated/EntitiesDeleteSamples.java | 2 +- .../EntitiesGetDataAnnotationsSamples.java | 2 +- .../generated/EntitiesGetHistorySamples.java | 2 +- .../generated/EntitiesGetSamples.java | 2 +- .../EntitiesGetSignalHistorySamples.java | 2 +- ...titiesGetSignalRecommendationsSamples.java | 2 +- .../EntitiesIngestHealthReportSamples.java | 2 +- .../EntitiesListByHealthModelSamples.java | 2 +- .../generated/HealthModelsCreateSamples.java | 2 +- .../generated/HealthModelsDeleteSamples.java | 2 +- ...HealthModelsGetByResourceGroupSamples.java | 2 +- ...ealthModelsListByResourceGroupSamples.java | 2 +- .../generated/HealthModelsListSamples.java | 2 +- .../generated/HealthModelsUpdateSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- .../RelationshipsCreateOrUpdateSamples.java | 2 +- .../generated/RelationshipsDeleteSamples.java | 2 +- .../generated/RelationshipsGetSamples.java | 2 +- ...RelationshipsListByHealthModelSamples.java | 2 +- ...ignalDefinitionsCreateOrUpdateSamples.java | 6 +- .../SignalDefinitionsDeleteSamples.java | 2 +- .../SignalDefinitionsGetSamples.java | 2 +- ...alDefinitionsListByHealthModelSamples.java | 2 +- .../AddDataAnnotationRequestTests.java | 14 +- .../generated/AlertConfigurationTests.java | 20 +- ...ionInsightsTopologySpecificationTests.java | 8 +- .../AuthenticationSettingInnerTests.java | 8 +- .../AuthenticationSettingListResultTests.java | 6 +- .../AuthenticationSettingPropertiesTests.java | 8 +- ...cationSettingsCreateOrUpdateMockTests.java | 10 +- ...ationSettingsGetWithResponseMockTests.java | 6 +- ...ionSettingsListByHealthModelMockTests.java | 6 +- .../AzureMonitorWorkspaceSignalsTests.java | 147 ++--- .../AzureResourceHealthSignalStatusTests.java | 4 +- .../AzureResourceHealthSignalTests.java | 2 +- .../generated/AzureResourceSignalTests.java | 103 ++-- .../generated/AzureResourceSignalsTests.java | 149 ++---- .../generated/DataAnnotationInnerTests.java | 6 +- .../DependenciesSignalGroupV2Tests.java | 37 +- .../generated/DiscoveryErrorTests.java | 2 +- .../generated/DiscoveryRuleInnerTests.java | 20 +- .../DiscoveryRuleListResultTests.java | 10 +- .../DiscoveryRulePropertiesTests.java | 26 +- ...DiscoveryRulesCreateOrUpdateMockTests.java | 22 +- ...iscoveryRulesGetWithResponseMockTests.java | 10 +- ...coveryRulesListByHealthModelMockTests.java | 10 +- ...ddDataAnnotationWithResponseMockTests.java | 13 +- .../EntitiesCreateOrUpdateMockTests.java | 146 ++--- ...tDataAnnotationsWithResponseMockTests.java | 20 +- ...titiesGetHistoryWithResponseMockTests.java | 22 +- ...GetSignalHistoryWithResponseMockTests.java | 28 +- ...lRecommendationsWithResponseMockTests.java | 59 +- .../EntitiesGetWithResponseMockTests.java | 78 +-- ...gestHealthReportWithResponseMockTests.java | 27 +- .../EntitiesListByHealthModelMockTests.java | 82 +-- .../generated/EntityAlertsTests.java | 32 +- .../generated/EntityCoordinatesTests.java | 12 +- .../generated/EntityHistoryRequestTests.java | 26 +- .../EntityHistoryResponseInnerTests.java | 12 +- .../generated/EntityInnerTests.java | 502 ++++++++--------- .../generated/EntityListResultTests.java | 81 +-- .../generated/EntityPropertiesTests.java | 100 ++-- .../generated/EvaluationRuleTests.java | 41 +- .../generated/ExternalSignalGroupTests.java | 2 +- .../generated/ExternalSignalTests.java | 45 +- .../GetDataAnnotationsRequestTests.java | 26 +- .../GetDataAnnotationsResponseInnerTests.java | 10 +- ...gnalRecommendationsResponseInnerTests.java | 58 +- .../HealthModelsCreateMockTests.java | 20 +- ...tByResourceGroupWithResponseMockTests.java | 10 +- ...lthModelsListByResourceGroupMockTests.java | 8 +- .../generated/HealthModelsListMockTests.java | 8 +- .../HealthReportEvaluationRuleTests.java | 39 +- .../generated/HealthReportRequestTests.java | 65 +-- .../generated/HealthStateTransitionTests.java | 10 +- .../generated/IconDefinitionTests.java | 12 +- ...sQuerySignalDefinitionPropertiesTests.java | 77 ++- .../generated/LogAnalyticsSignalTests.java | 89 ++-- .../generated/LogAnalyticsSignalsTests.java | 144 ++--- ...yAuthenticationSettingPropertiesTests.java | 14 +- .../generated/OperationsListMockTests.java | 2 +- ...etricsSignalDefinitionPropertiesTests.java | 73 ++- .../PrometheusMetricsSignalTests.java | 91 ++-- .../generated/RelationshipInnerTests.java | 26 +- .../RelationshipListResultTests.java | 12 +- .../RelationshipPropertiesTests.java | 26 +- .../RelationshipsCreateOrUpdateMockTests.java | 22 +- ...RelationshipsGetWithResponseMockTests.java | 12 +- ...lationshipsListByHealthModelMockTests.java | 12 +- .../ResourceGraphQuerySpecificationTests.java | 8 +- ...MetricSignalDefinitionPropertiesTests.java | 109 ++-- .../SignalAggregationGroupTests.java | 50 ++ .../generated/SignalConfigurationTests.java | 31 +- .../generated/SignalDefinitionInnerTests.java | 35 +- .../SignalDefinitionListResultTests.java | 27 +- .../SignalDefinitionPropertiesTests.java | 27 +- ...nalDefinitionsCreateOrUpdateMockTests.java | 51 +- ...alDefinitionsGetWithResponseMockTests.java | 29 +- ...DefinitionsListByHealthModelMockTests.java | 27 +- .../generated/SignalGroupsTests.java | 503 ++++++++---------- .../SignalHistoryDataPointTests.java | 10 +- .../generated/SignalHistoryRequestTests.java | 32 +- .../SignalHistoryResponseInnerTests.java | 16 +- .../SignalInstancePropertiesTests.java | 12 +- .../generated/SignalStatusTests.java | 4 +- .../generated/ThresholdRuleV2Tests.java | 26 +- .../tsp-location.yaml | 4 +- 133 files changed, 2541 insertions(+), 2279 deletions(-) create mode 100644 sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationType.java create mode 100644 sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationUnit.java delete mode 100644 sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationType.java delete mode 100644 sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationUnit.java delete mode 100644 sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/LookBackWindow.java create mode 100644 sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalAggregationGroup.java create mode 100644 sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalAggregationGroupTests.java diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/CHANGELOG.md b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/CHANGELOG.md index dd2d7b89c3f5..c2db3cac8db4 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/CHANGELOG.md +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/CHANGELOG.md @@ -1,14 +1,46 @@ # Release History -## 1.0.0-beta.4 (Unreleased) +## 1.0.0-beta.4 (2026-08-21) -### Features Added +- Azure Resource Manager CloudHealth client library for Java. This package contains Microsoft Azure SDK for CloudHealth Management SDK. Package api-version 2026-09-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.DependenciesAggregationType` was removed + +#### `models.LookBackWindow` was removed + +#### `models.DependenciesAggregationUnit` was removed + +#### `models.ThresholdRuleV2` was modified + +* `lookBackWindow()` was removed +* `withLookBackWindow(models.LookBackWindow)` was removed + +#### `models.DependenciesSignalGroupV2` was modified + +* `withAggregationType(models.DependenciesAggregationType)` was removed +* `models.DependenciesAggregationUnit unit()` -> `models.AggregationUnit unit()` +* `models.DependenciesAggregationType aggregationType()` -> `models.AggregationType aggregationType()` +* `withUnit(models.DependenciesAggregationUnit)` was removed + +### Features Added + +* `models.AggregationUnit` was added + +* `models.AggregationType` was added + +* `models.SignalAggregationGroup` was added + +#### `models.EntityProperties` was modified + +* `signalAggregationGroups()` was added +* `withSignalAggregationGroups(java.util.List)` was added + +#### `models.DependenciesSignalGroupV2` was modified -### Other Changes +* `withUnit(models.AggregationUnit)` was added +* `withAggregationType(models.AggregationType)` was added ## 1.0.0-beta.3 (2026-07-13) diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/README.md b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/README.md index 1924c470c97a..a174475234c9 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/README.md +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/README.md @@ -2,7 +2,7 @@ Azure Resource Manager CloudHealth client library for Java. -This package contains Microsoft Azure SDK for CloudHealth Management SDK. Package api-version 2026-05-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for CloudHealth Management SDK. Package api-version 2026-09-01-preview. 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 @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-cloudhealth - 1.0.0-beta.3 + 1.0.0-beta.4 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/SAMPLE.md b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/SAMPLE.md index e97251c271de..2f732bf29d60 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/SAMPLE.md +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/SAMPLE.md @@ -64,7 +64,7 @@ import com.azure.resourcemanager.cloudhealth.models.ManagedIdentityAuthenticatio */ public final class AuthenticationSettingsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/AuthenticationSettings_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/AuthenticationSettings_CreateOrUpdate.json */ /** * Sample code: AuthenticationSettings_CreateOrUpdate. @@ -92,7 +92,7 @@ public final class AuthenticationSettingsCreateOrUpdateSamples { */ public final class AuthenticationSettingsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/AuthenticationSettings_Delete.json + * x-ms-original-file: 2026-09-01-preview/AuthenticationSettings_Delete.json */ /** * Sample code: AuthenticationSettings_Delete. @@ -114,7 +114,7 @@ public final class AuthenticationSettingsDeleteSamples { */ public final class AuthenticationSettingsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/AuthenticationSettings_Get.json + * x-ms-original-file: 2026-09-01-preview/AuthenticationSettings_Get.json */ /** * Sample code: AuthenticationSettings_Get. @@ -136,7 +136,7 @@ public final class AuthenticationSettingsGetSamples { */ public final class AuthenticationSettingsListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/AuthenticationSettings_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/AuthenticationSettings_ListByHealthModel.json */ /** * Sample code: AuthenticationSettings_ListByHealthModel. @@ -165,7 +165,7 @@ import com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilitySt */ public final class DiscoveryRulesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/DiscoveryRules_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/DiscoveryRules_CreateOrUpdate.json */ /** * Sample code: DiscoveryRules_CreateOrUpdate. @@ -196,7 +196,7 @@ public final class DiscoveryRulesCreateOrUpdateSamples { */ public final class DiscoveryRulesDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/DiscoveryRules_Delete.json + * x-ms-original-file: 2026-09-01-preview/DiscoveryRules_Delete.json */ /** * Sample code: DiscoveryRules_Delete. @@ -218,7 +218,7 @@ public final class DiscoveryRulesDeleteSamples { */ public final class DiscoveryRulesGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/DiscoveryRules_Get.json + * x-ms-original-file: 2026-09-01-preview/DiscoveryRules_Get.json */ /** * Sample code: DiscoveryRules_Get. @@ -241,7 +241,7 @@ public final class DiscoveryRulesGetSamples { */ public final class DiscoveryRulesListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/DiscoveryRules_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/DiscoveryRules_ListByHealthModel.json */ /** * Sample code: DiscoveryRules_ListByHealthModel. @@ -268,7 +268,7 @@ import java.util.Map; */ public final class EntitiesAddDataAnnotationSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_AddDataAnnotation.json + * x-ms-original-file: 2026-09-01-preview/Entities_AddDataAnnotation.json */ /** * Sample code: Entities_AddDataAnnotation. @@ -302,14 +302,14 @@ public final class EntitiesAddDataAnnotationSamples { ### Entities_CreateOrUpdate ```java +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.AlertConfiguration; import com.azure.resourcemanager.cloudhealth.models.AlertSeverity; import com.azure.resourcemanager.cloudhealth.models.AzureMonitorWorkspaceSignals; import com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignals; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; import com.azure.resourcemanager.cloudhealth.models.DependenciesSignalGroupV2; import com.azure.resourcemanager.cloudhealth.models.EntityAlerts; import com.azure.resourcemanager.cloudhealth.models.EntityCoordinates; @@ -323,6 +323,7 @@ import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior; +import com.azure.resourcemanager.cloudhealth.models.SignalAggregationGroup; import com.azure.resourcemanager.cloudhealth.models.SignalGroups; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; @@ -335,7 +336,7 @@ import java.util.Map; */ public final class EntitiesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/Entities_CreateOrUpdate.json */ /** * Sample code: Entities_CreateOrUpdate. @@ -429,12 +430,23 @@ public final class EntitiesCreateOrUpdateSamples { .withThreshold(70.0D)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) .withThreshold(90.0D)))))) - .withDependencies( - new DependenciesSignalGroupV2().withAggregationType(DependenciesAggregationType.MIN_HEALTHY) - .withDegradedThreshold(100.0D) - .withUnhealthyThreshold(50.0D) - .withUnit(DependenciesAggregationUnit.PERCENTAGE) - .withIgnoreUnknown(true))) + .withDependencies(new DependenciesSignalGroupV2().withAggregationType(AggregationType.MIN_HEALTHY) + .withDegradedThreshold(100.0D) + .withUnhealthyThreshold(50.0D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(true))) + .withSignalAggregationGroups(Arrays.asList( + new SignalAggregationGroup().withName("latency-and-errors") + .withDisplayName("Latency and errors") + .withAggregationType(AggregationType.WORST_OF) + .withMembers(Arrays.asList("error-rate", "p95-latency")), + new SignalAggregationGroup().withName("compute-utilization") + .withDisplayName("Compute utilization") + .withAggregationType(AggregationType.MIN_HEALTHY) + .withMembers(Arrays.asList("node-cpu", "pod-cpu")) + .withUnhealthyThreshold(50.0D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(true))) .withAlerts(new EntityAlerts().withUnhealthy(new AlertConfiguration().withSeverity(AlertSeverity.SEV1) .withDescription("Orders API is unhealthy.") .withActionGroupIds(Arrays.asList( @@ -468,7 +480,7 @@ public final class EntitiesCreateOrUpdateSamples { */ public final class EntitiesDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_Delete.json + * x-ms-original-file: 2026-09-01-preview/Entities_Delete.json */ /** * Sample code: Entities_Delete. @@ -490,7 +502,7 @@ public final class EntitiesDeleteSamples { */ public final class EntitiesGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_Get.json + * x-ms-original-file: 2026-09-01-preview/Entities_Get.json */ /** * Sample code: Entities_Get. @@ -515,7 +527,7 @@ import java.time.OffsetDateTime; */ public final class EntitiesGetDataAnnotationsSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_GetDataAnnotations.json + * x-ms-original-file: 2026-09-01-preview/Entities_GetDataAnnotations.json */ /** * Sample code: Entities_GetDataAnnotations. @@ -543,7 +555,7 @@ import java.time.OffsetDateTime; */ public final class EntitiesGetHistorySamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_GetHistory.json + * x-ms-original-file: 2026-09-01-preview/Entities_GetHistory.json */ /** * Sample code: Entities_GetHistory. @@ -572,7 +584,7 @@ import java.time.OffsetDateTime; */ public final class EntitiesGetSignalHistorySamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_GetSignalHistory.json + * x-ms-original-file: 2026-09-01-preview/Entities_GetSignalHistory.json */ /** * Sample code: Entities_GetSignalHistory. @@ -599,7 +611,7 @@ public final class EntitiesGetSignalHistorySamples { */ public final class EntitiesGetSignalRecommendationsSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_GetSignalRecommendations.json + * x-ms-original-file: 2026-09-01-preview/Entities_GetSignalRecommendations.json */ /** * Sample code: Entities_GetSignalRecommendations. @@ -629,7 +641,7 @@ import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; */ public final class EntitiesIngestHealthReportSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_IngestHealthReport.json + * x-ms-original-file: 2026-09-01-preview/Entities_IngestHealthReport.json */ /** * Sample code: Entities_IngestHealthReport. @@ -663,7 +675,7 @@ public final class EntitiesIngestHealthReportSamples { */ public final class EntitiesListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/Entities_ListByHealthModel.json */ /** * Sample code: Entities_ListByHealthModel. @@ -690,7 +702,7 @@ import java.util.Map; */ public final class HealthModelsCreateSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_Create.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_Create.json */ /** * Sample code: HealthModels_Create. @@ -730,7 +742,7 @@ public final class HealthModelsCreateSamples { */ public final class HealthModelsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_Delete.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_Delete.json */ /** * Sample code: HealthModels_Delete. @@ -751,7 +763,7 @@ public final class HealthModelsDeleteSamples { */ public final class HealthModelsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_Get.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_Get.json */ /** * Sample code: HealthModels_Get. @@ -773,7 +785,7 @@ public final class HealthModelsGetByResourceGroupSamples { */ public final class HealthModelsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_ListBySubscription.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_ListBySubscription.json */ /** * Sample code: HealthModels_ListBySubscription. @@ -795,7 +807,7 @@ public final class HealthModelsListSamples { */ public final class HealthModelsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_ListByResourceGroup.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_ListByResourceGroup.json */ /** * Sample code: HealthModels_ListByResourceGroup. @@ -821,7 +833,7 @@ import java.util.Map; */ public final class HealthModelsUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_Update.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_Update.json */ /** * Sample code: HealthModels_Update. @@ -857,7 +869,7 @@ public final class HealthModelsUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Operations_List.json + * x-ms-original-file: 2026-09-01-preview/Operations_List.json */ /** * Sample code: Operations_List. @@ -882,7 +894,7 @@ import java.util.Map; */ public final class RelationshipsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/Relationships_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/Relationships_CreateOrUpdate.json */ /** * Sample code: Relationships_CreateOrUpdate. @@ -922,7 +934,7 @@ public final class RelationshipsCreateOrUpdateSamples { */ public final class RelationshipsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/Relationships_Delete.json + * x-ms-original-file: 2026-09-01-preview/Relationships_Delete.json */ /** * Sample code: Relationships_Delete. @@ -945,7 +957,7 @@ public final class RelationshipsDeleteSamples { */ public final class RelationshipsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Relationships_Get.json + * x-ms-original-file: 2026-09-01-preview/Relationships_Get.json */ /** * Sample code: Relationships_Get. @@ -969,7 +981,7 @@ public final class RelationshipsGetSamples { */ public final class RelationshipsListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/Relationships_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/Relationships_ListByHealthModel.json */ /** * Sample code: Relationships_ListByHealthModel. @@ -989,7 +1001,6 @@ public final class RelationshipsListByHealthModelSamples { ```java import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.ResourceMetricSignalDefinitionProperties; @@ -1003,7 +1014,7 @@ import java.util.Map; */ public final class SignalDefinitionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/SignalDefinitions_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/SignalDefinitions_CreateOrUpdate.json */ /** * Sample code: SignalDefinitions_CreateOrUpdate. @@ -1023,8 +1034,7 @@ public final class SignalDefinitionsCreateOrUpdateSamples { .withDegradedRule( new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN).withThreshold(70.0D)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H))) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))) .withMetricNamespace("Microsoft.Sql/servers/databases") .withMetricName("cpu_percent") .withTimeGrain("PT5M") @@ -1054,7 +1064,7 @@ public final class SignalDefinitionsCreateOrUpdateSamples { */ public final class SignalDefinitionsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/SignalDefinitions_Delete.json + * x-ms-original-file: 2026-09-01-preview/SignalDefinitions_Delete.json */ /** * Sample code: SignalDefinitions_Delete. @@ -1076,7 +1086,7 @@ public final class SignalDefinitionsDeleteSamples { */ public final class SignalDefinitionsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/SignalDefinitions_Get.json + * x-ms-original-file: 2026-09-01-preview/SignalDefinitions_Get.json */ /** * Sample code: SignalDefinitions_Get. @@ -1099,7 +1109,7 @@ public final class SignalDefinitionsGetSamples { */ public final class SignalDefinitionsListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/SignalDefinitions_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/SignalDefinitions_ListByHealthModel.json */ /** * Sample code: SignalDefinitions_ListByHealthModel. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/pom.xml b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/pom.xml index 5716303a01ce..a34423000428 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/pom.xml +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for CloudHealth Management - This package contains Microsoft Azure SDK for CloudHealth Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2026-05-01-preview. + This package contains Microsoft Azure SDK for CloudHealth Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2026-09-01-preview. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/implementation/CloudHealthManagementClientImpl.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/implementation/CloudHealthManagementClientImpl.java index 6fe6a68601c2..622625bae87a 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/implementation/CloudHealthManagementClientImpl.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/implementation/CloudHealthManagementClientImpl.java @@ -247,7 +247,7 @@ public DiscoveryRulesClient getDiscoveryRules() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-05-01-preview"; + this.apiVersion = "2026-09-01-preview"; this.operations = new OperationsClientImpl(this); this.healthModels = new HealthModelsClientImpl(this); this.signalDefinitions = new SignalDefinitionsClientImpl(this); diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationType.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationType.java new file mode 100644 index 000000000000..271aaa36a292 --- /dev/null +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationType.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cloudhealth.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Aggregation strategy for combining a set of health states into one. + */ +public final class AggregationType extends ExpandableStringEnum { + /** + * Worst health state across members is propagated. Default behavior. + */ + public static final AggregationType WORST_OF = fromString("WorstOf"); + + /** + * Best (least severe) health state across the non-Unknown members is propagated. Unknown members are excluded from + * the selection; if every member is Unknown the group resolves to Unknown. The 'ignoreUnknown' flag has no + * observable effect for this strategy and is documented as such. + */ + public static final AggregationType BEST_OF = fromString("BestOf"); + + /** + * Healthy if the count/percentage of healthy members meets the threshold. + */ + public static final AggregationType MIN_HEALTHY = fromString("MinHealthy"); + + /** + * Healthy if the count/percentage of not-healthy members stays below the threshold. + */ + public static final AggregationType MAX_NOT_HEALTHY = fromString("MaxNotHealthy"); + + /** + * Creates a new instance of AggregationType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AggregationType() { + } + + /** + * Creates or finds a AggregationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AggregationType. + */ + public static AggregationType fromString(String name) { + return fromString(name, AggregationType.class); + } + + /** + * Gets known AggregationType values. + * + * @return known AggregationType values. + */ + public static Collection values() { + return values(AggregationType.class); + } +} diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationUnit.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationUnit.java new file mode 100644 index 000000000000..2394eefb3444 --- /dev/null +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationUnit.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cloudhealth.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Unit type for the thresholds used by threshold-bearing aggregation strategies. + */ +public final class AggregationUnit extends ExpandableStringEnum { + /** + * Threshold is an absolute count of members. + */ + public static final AggregationUnit ABSOLUTE = fromString("Absolute"); + + /** + * Threshold is a percentage of members (0-100). + */ + public static final AggregationUnit PERCENTAGE = fromString("Percentage"); + + /** + * Creates a new instance of AggregationUnit value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AggregationUnit() { + } + + /** + * Creates or finds a AggregationUnit from its string representation. + * + * @param name a name to look for. + * @return the corresponding AggregationUnit. + */ + public static AggregationUnit fromString(String name) { + return fromString(name, AggregationUnit.class); + } + + /** + * Gets known AggregationUnit values. + * + * @return known AggregationUnit values. + */ + public static Collection values() { + return values(AggregationUnit.class); + } +} diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationType.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationType.java deleted file mode 100644 index 3b76b775b69e..000000000000 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationType.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cloudhealth.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Aggregation type for child dependencies. - */ -public final class DependenciesAggregationType extends ExpandableStringEnum { - /** - * Default behavior: Worst child health state is propagated. - */ - public static final DependenciesAggregationType WORST_OF = fromString("WorstOf"); - - /** - * Healthy if the count/percentage of healthy children meets the threshold. - */ - public static final DependenciesAggregationType MIN_HEALTHY = fromString("MinHealthy"); - - /** - * Healthy if the count/percentage of not-healthy children stays below the threshold. - */ - public static final DependenciesAggregationType MAX_NOT_HEALTHY = fromString("MaxNotHealthy"); - - /** - * Creates a new instance of DependenciesAggregationType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DependenciesAggregationType() { - } - - /** - * Creates or finds a DependenciesAggregationType from its string representation. - * - * @param name a name to look for. - * @return the corresponding DependenciesAggregationType. - */ - public static DependenciesAggregationType fromString(String name) { - return fromString(name, DependenciesAggregationType.class); - } - - /** - * Gets known DependenciesAggregationType values. - * - * @return known DependenciesAggregationType values. - */ - public static Collection values() { - return values(DependenciesAggregationType.class); - } -} diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationUnit.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationUnit.java deleted file mode 100644 index 28a309b88143..000000000000 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationUnit.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cloudhealth.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Unit type for dependency aggregation thresholds. - */ -public final class DependenciesAggregationUnit extends ExpandableStringEnum { - /** - * Threshold is an absolute count of entities. - */ - public static final DependenciesAggregationUnit ABSOLUTE = fromString("Absolute"); - - /** - * Threshold is a percentage of entities (0-100). - */ - public static final DependenciesAggregationUnit PERCENTAGE = fromString("Percentage"); - - /** - * Creates a new instance of DependenciesAggregationUnit value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DependenciesAggregationUnit() { - } - - /** - * Creates or finds a DependenciesAggregationUnit from its string representation. - * - * @param name a name to look for. - * @return the corresponding DependenciesAggregationUnit. - */ - public static DependenciesAggregationUnit fromString(String name) { - return fromString(name, DependenciesAggregationUnit.class); - } - - /** - * Gets known DependenciesAggregationUnit values. - * - * @return known DependenciesAggregationUnit values. - */ - public static Collection values() { - return values(DependenciesAggregationUnit.class); - } -} diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesSignalGroupV2.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesSignalGroupV2.java index 676fc2bb677b..08cff8dc855e 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesSignalGroupV2.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesSignalGroupV2.java @@ -19,7 +19,7 @@ public final class DependenciesSignalGroupV2 implements JsonSerializable signalAggregationGroups; + /* * Discovered by which discovery rule. If set, the entity cannot be deleted manually. */ @@ -227,6 +236,34 @@ public EntityProperties withSignalGroups(SignalGroups signalGroups) { return this; } + /** + * Get the signalAggregationGroups property: Logical aggregation groups over the signals on this entity. Overlap is + * allowed: the same signal may appear in more than one group's members. Each group is evaluated independently + * according to its strategy, and a shared signal can contribute to multiple group states and related per-group + * telemetry. Group states contribute alongside any ungrouped signals and the dependency-aggregated child health to + * the entity's overall worst-of composite. + * + * @return the signalAggregationGroups value. + */ + public List signalAggregationGroups() { + return this.signalAggregationGroups; + } + + /** + * Set the signalAggregationGroups property: Logical aggregation groups over the signals on this entity. Overlap is + * allowed: the same signal may appear in more than one group's members. Each group is evaluated independently + * according to its strategy, and a shared signal can contribute to multiple group states and related per-group + * telemetry. Group states contribute alongside any ungrouped signals and the dependency-aggregated child health to + * the entity's overall worst-of composite. + * + * @param signalAggregationGroups the signalAggregationGroups value to set. + * @return the EntityProperties object itself. + */ + public EntityProperties withSignalAggregationGroups(List signalAggregationGroups) { + this.signalAggregationGroups = signalAggregationGroups; + return this; + } + /** * Get the discoveredBy property: Discovered by which discovery rule. If set, the entity cannot be deleted manually. * @@ -278,6 +315,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("impact", this.impact == null ? null : this.impact.toString()); jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("signalGroups", this.signalGroups); + jsonWriter.writeArrayField("signalAggregationGroups", this.signalAggregationGroups, + (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("alerts", this.alerts); return jsonWriter.writeEndObject(); } @@ -315,6 +354,10 @@ public static EntityProperties fromJson(JsonReader jsonReader) throws IOExceptio deserializedEntityProperties.tags = tags; } else if ("signalGroups".equals(fieldName)) { deserializedEntityProperties.signalGroups = SignalGroups.fromJson(reader); + } else if ("signalAggregationGroups".equals(fieldName)) { + List signalAggregationGroups + = reader.readArray(reader1 -> SignalAggregationGroup.fromJson(reader1)); + deserializedEntityProperties.signalAggregationGroups = signalAggregationGroups; } else if ("discoveredBy".equals(fieldName)) { deserializedEntityProperties.discoveredBy = reader.getString(); } else if ("healthState".equals(fieldName)) { diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/LookBackWindow.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/LookBackWindow.java deleted file mode 100644 index 630fa8d6e271..000000000000 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/LookBackWindow.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cloudhealth.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Allowed look-back window durations for dynamic threshold computation. - */ -public final class LookBackWindow extends ExpandableStringEnum { - /** - * Five minutes. - */ - public static final LookBackWindow PT5M = fromString("PT5M"); - - /** - * Fifteen minutes. - */ - public static final LookBackWindow PT15M = fromString("PT15M"); - - /** - * Thirty minutes. - */ - public static final LookBackWindow PT30M = fromString("PT30M"); - - /** - * One hour. - */ - public static final LookBackWindow PT1H = fromString("PT1H"); - - /** - * Creates a new instance of LookBackWindow value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public LookBackWindow() { - } - - /** - * Creates or finds a LookBackWindow from its string representation. - * - * @param name a name to look for. - * @return the corresponding LookBackWindow. - */ - public static LookBackWindow fromString(String name) { - return fromString(name, LookBackWindow.class); - } - - /** - * Gets known LookBackWindow values. - * - * @return known LookBackWindow values. - */ - public static Collection values() { - return values(LookBackWindow.class); - } -} diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalAggregationGroup.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalAggregationGroup.java new file mode 100644 index 000000000000..ac7456d3d757 --- /dev/null +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalAggregationGroup.java @@ -0,0 +1,367 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cloudhealth.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * A logical group of signals on an entity, evaluated under a configurable aggregation strategy. Groups are independent + * even when they share members. Each group's aggregated state is one of the inputs to the entity's composite health + * computation alongside any signals not declared in any group's members[]. + */ +@Fluent +public final class SignalAggregationGroup implements JsonSerializable { + /* + * Name of the aggregation group. Unique within the entity. + */ + private String name; + + /* + * Display name + */ + private String displayName; + + /* + * Aggregation strategy applied across the members of this group. + */ + private AggregationType aggregationType; + + /* + * Names of signals on this entity which are members of the group. Members are matched by name; references to + * signals that do not currently exist on the entity are accepted (typically for pre-declared external signals) and + * surfaced via 'unresolvedMembers'. A signal may be listed in multiple groups; no duplicates within this list. + */ + private List members; + + /* + * Degraded threshold for threshold-bearing strategies (MinHealthy, MaxNotHealthy). For MinHealthy: group is + * degraded when the healthy member count/percentage falls to or below this value. For MaxNotHealthy: group is + * degraded when the not-healthy member count/percentage reaches or exceeds this value. Optional — if not set, the + * group transitions directly between Healthy and Unhealthy. MUST NOT be set when aggregationType is WorstOf or + * BestOf. + */ + private Double degradedThreshold; + + /* + * Unhealthy threshold for threshold-bearing strategies. Required when aggregationType is MinHealthy or + * MaxNotHealthy; MUST NOT be set otherwise. + */ + private Double unhealthyThreshold; + + /* + * Unit type for the thresholds. Required when aggregationType is MinHealthy or MaxNotHealthy; MUST NOT be set + * otherwise. + */ + private AggregationUnit unit; + + /* + * If true (default), members reporting Unknown are excluded from the aggregation. For MinHealthy and MaxNotHealthy + * this flag affects the denominator/count and is meaningful. For WorstOf and BestOf the flag has no observable + * effect: under WorstOf, Unknown=0 is the lowest severity and can never beat any non-Unknown member in a Max() so + * filtering it changes nothing observable; under BestOf, Unknown is unconditionally excluded by the strategy itself + * irrespective of the flag. The flag is retained on the contract for vocabulary symmetry across all four + * strategies. + */ + private Boolean ignoreUnknown; + + /* + * Computed aggregated health state of the group as of the last entity evaluation. Unknown if no resolvable members + * or all members filtered out. + */ + private HealthState aggregatedHealthState; + + /* + * Members listed in 'members' that do not currently resolve to a signal on this entity at the time of the last + * entity evaluation. Treated as Unknown during aggregation. Empty/omitted when every member resolves. + */ + private List unresolvedMembers; + + /** + * Creates an instance of SignalAggregationGroup class. + */ + public SignalAggregationGroup() { + } + + /** + * Get the name property: Name of the aggregation group. Unique within the entity. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the aggregation group. Unique within the entity. + * + * @param name the name value to set. + * @return the SignalAggregationGroup object itself. + */ + public SignalAggregationGroup withName(String name) { + this.name = name; + return this; + } + + /** + * Get the displayName property: Display name. + * + * @return the displayName value. + */ + public String displayName() { + return this.displayName; + } + + /** + * Set the displayName property: Display name. + * + * @param displayName the displayName value to set. + * @return the SignalAggregationGroup object itself. + */ + public SignalAggregationGroup withDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the aggregationType property: Aggregation strategy applied across the members of this group. + * + * @return the aggregationType value. + */ + public AggregationType aggregationType() { + return this.aggregationType; + } + + /** + * Set the aggregationType property: Aggregation strategy applied across the members of this group. + * + * @param aggregationType the aggregationType value to set. + * @return the SignalAggregationGroup object itself. + */ + public SignalAggregationGroup withAggregationType(AggregationType aggregationType) { + this.aggregationType = aggregationType; + return this; + } + + /** + * Get the members property: Names of signals on this entity which are members of the group. Members are matched by + * name; references to signals that do not currently exist on the entity are accepted (typically for pre-declared + * external signals) and surfaced via 'unresolvedMembers'. A signal may be listed in multiple groups; no duplicates + * within this list. + * + * @return the members value. + */ + public List members() { + return this.members; + } + + /** + * Set the members property: Names of signals on this entity which are members of the group. Members are matched by + * name; references to signals that do not currently exist on the entity are accepted (typically for pre-declared + * external signals) and surfaced via 'unresolvedMembers'. A signal may be listed in multiple groups; no duplicates + * within this list. + * + * @param members the members value to set. + * @return the SignalAggregationGroup object itself. + */ + public SignalAggregationGroup withMembers(List members) { + this.members = members; + return this; + } + + /** + * Get the degradedThreshold property: Degraded threshold for threshold-bearing strategies (MinHealthy, + * MaxNotHealthy). For MinHealthy: group is degraded when the healthy member count/percentage falls to or below this + * value. For MaxNotHealthy: group is degraded when the not-healthy member count/percentage reaches or exceeds this + * value. Optional — if not set, the group transitions directly between Healthy and Unhealthy. MUST NOT be set when + * aggregationType is WorstOf or BestOf. + * + * @return the degradedThreshold value. + */ + public Double degradedThreshold() { + return this.degradedThreshold; + } + + /** + * Set the degradedThreshold property: Degraded threshold for threshold-bearing strategies (MinHealthy, + * MaxNotHealthy). For MinHealthy: group is degraded when the healthy member count/percentage falls to or below this + * value. For MaxNotHealthy: group is degraded when the not-healthy member count/percentage reaches or exceeds this + * value. Optional — if not set, the group transitions directly between Healthy and Unhealthy. MUST NOT be set when + * aggregationType is WorstOf or BestOf. + * + * @param degradedThreshold the degradedThreshold value to set. + * @return the SignalAggregationGroup object itself. + */ + public SignalAggregationGroup withDegradedThreshold(Double degradedThreshold) { + this.degradedThreshold = degradedThreshold; + return this; + } + + /** + * Get the unhealthyThreshold property: Unhealthy threshold for threshold-bearing strategies. Required when + * aggregationType is MinHealthy or MaxNotHealthy; MUST NOT be set otherwise. + * + * @return the unhealthyThreshold value. + */ + public Double unhealthyThreshold() { + return this.unhealthyThreshold; + } + + /** + * Set the unhealthyThreshold property: Unhealthy threshold for threshold-bearing strategies. Required when + * aggregationType is MinHealthy or MaxNotHealthy; MUST NOT be set otherwise. + * + * @param unhealthyThreshold the unhealthyThreshold value to set. + * @return the SignalAggregationGroup object itself. + */ + public SignalAggregationGroup withUnhealthyThreshold(Double unhealthyThreshold) { + this.unhealthyThreshold = unhealthyThreshold; + return this; + } + + /** + * Get the unit property: Unit type for the thresholds. Required when aggregationType is MinHealthy or + * MaxNotHealthy; MUST NOT be set otherwise. + * + * @return the unit value. + */ + public AggregationUnit unit() { + return this.unit; + } + + /** + * Set the unit property: Unit type for the thresholds. Required when aggregationType is MinHealthy or + * MaxNotHealthy; MUST NOT be set otherwise. + * + * @param unit the unit value to set. + * @return the SignalAggregationGroup object itself. + */ + public SignalAggregationGroup withUnit(AggregationUnit unit) { + this.unit = unit; + return this; + } + + /** + * Get the ignoreUnknown property: If true (default), members reporting Unknown are excluded from the aggregation. + * For MinHealthy and MaxNotHealthy this flag affects the denominator/count and is meaningful. For WorstOf and + * BestOf the flag has no observable effect: under WorstOf, Unknown=0 is the lowest severity and can never beat any + * non-Unknown member in a Max() so filtering it changes nothing observable; under BestOf, Unknown is + * unconditionally excluded by the strategy itself irrespective of the flag. The flag is retained on the contract + * for vocabulary symmetry across all four strategies. + * + * @return the ignoreUnknown value. + */ + public Boolean ignoreUnknown() { + return this.ignoreUnknown; + } + + /** + * Set the ignoreUnknown property: If true (default), members reporting Unknown are excluded from the aggregation. + * For MinHealthy and MaxNotHealthy this flag affects the denominator/count and is meaningful. For WorstOf and + * BestOf the flag has no observable effect: under WorstOf, Unknown=0 is the lowest severity and can never beat any + * non-Unknown member in a Max() so filtering it changes nothing observable; under BestOf, Unknown is + * unconditionally excluded by the strategy itself irrespective of the flag. The flag is retained on the contract + * for vocabulary symmetry across all four strategies. + * + * @param ignoreUnknown the ignoreUnknown value to set. + * @return the SignalAggregationGroup object itself. + */ + public SignalAggregationGroup withIgnoreUnknown(Boolean ignoreUnknown) { + this.ignoreUnknown = ignoreUnknown; + return this; + } + + /** + * Get the aggregatedHealthState property: Computed aggregated health state of the group as of the last entity + * evaluation. Unknown if no resolvable members or all members filtered out. + * + * @return the aggregatedHealthState value. + */ + public HealthState aggregatedHealthState() { + return this.aggregatedHealthState; + } + + /** + * Get the unresolvedMembers property: Members listed in 'members' that do not currently resolve to a signal on this + * entity at the time of the last entity evaluation. Treated as Unknown during aggregation. Empty/omitted when every + * member resolves. + * + * @return the unresolvedMembers value. + */ + public List unresolvedMembers() { + return this.unresolvedMembers; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeArrayField("members", this.members, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("displayName", this.displayName); + jsonWriter.writeStringField("aggregationType", + this.aggregationType == null ? null : this.aggregationType.toString()); + jsonWriter.writeNumberField("degradedThreshold", this.degradedThreshold); + jsonWriter.writeNumberField("unhealthyThreshold", this.unhealthyThreshold); + jsonWriter.writeStringField("unit", this.unit == null ? null : this.unit.toString()); + jsonWriter.writeBooleanField("ignoreUnknown", this.ignoreUnknown); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SignalAggregationGroup from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SignalAggregationGroup if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the SignalAggregationGroup. + */ + public static SignalAggregationGroup fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SignalAggregationGroup deserializedSignalAggregationGroup = new SignalAggregationGroup(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedSignalAggregationGroup.name = reader.getString(); + } else if ("members".equals(fieldName)) { + List members = reader.readArray(reader1 -> reader1.getString()); + deserializedSignalAggregationGroup.members = members; + } else if ("displayName".equals(fieldName)) { + deserializedSignalAggregationGroup.displayName = reader.getString(); + } else if ("aggregationType".equals(fieldName)) { + deserializedSignalAggregationGroup.aggregationType = AggregationType.fromString(reader.getString()); + } else if ("degradedThreshold".equals(fieldName)) { + deserializedSignalAggregationGroup.degradedThreshold = reader.getNullable(JsonReader::getDouble); + } else if ("unhealthyThreshold".equals(fieldName)) { + deserializedSignalAggregationGroup.unhealthyThreshold = reader.getNullable(JsonReader::getDouble); + } else if ("unit".equals(fieldName)) { + deserializedSignalAggregationGroup.unit = AggregationUnit.fromString(reader.getString()); + } else if ("ignoreUnknown".equals(fieldName)) { + deserializedSignalAggregationGroup.ignoreUnknown = reader.getNullable(JsonReader::getBoolean); + } else if ("aggregatedHealthState".equals(fieldName)) { + deserializedSignalAggregationGroup.aggregatedHealthState + = HealthState.fromString(reader.getString()); + } else if ("unresolvedMembers".equals(fieldName)) { + List unresolvedMembers = reader.readArray(reader1 -> reader1.getString()); + deserializedSignalAggregationGroup.unresolvedMembers = unresolvedMembers; + } else { + reader.skipChildren(); + } + } + + return deserializedSignalAggregationGroup; + }); + } +} diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/ThresholdRuleV2.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/ThresholdRuleV2.java index 1eb77e6e08ac..f1e35675bf50 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/ThresholdRuleV2.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/java/com/azure/resourcemanager/cloudhealth/models/ThresholdRuleV2.java @@ -31,12 +31,6 @@ public final class ThresholdRuleV2 implements JsonSerializable */ private DynamicThresholdSensitivity sensitivity; - /* - * ISO 8601 duration for the historical look-back window used by dynamic threshold computation. Only applicable when - * operator is Dynamic. - */ - private LookBackWindow lookBackWindow; - /** * Creates an instance of ThresholdRuleV2 class. */ @@ -105,28 +99,6 @@ public ThresholdRuleV2 withSensitivity(DynamicThresholdSensitivity sensitivity) return this; } - /** - * Get the lookBackWindow property: ISO 8601 duration for the historical look-back window used by dynamic threshold - * computation. Only applicable when operator is Dynamic. - * - * @return the lookBackWindow value. - */ - public LookBackWindow lookBackWindow() { - return this.lookBackWindow; - } - - /** - * Set the lookBackWindow property: ISO 8601 duration for the historical look-back window used by dynamic threshold - * computation. Only applicable when operator is Dynamic. - * - * @param lookBackWindow the lookBackWindow value to set. - * @return the ThresholdRuleV2 object itself. - */ - public ThresholdRuleV2 withLookBackWindow(LookBackWindow lookBackWindow) { - this.lookBackWindow = lookBackWindow; - return this; - } - /** * {@inheritDoc} */ @@ -136,8 +108,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("operator", this.operator == null ? null : this.operator.toString()); jsonWriter.writeNumberField("threshold", this.threshold); jsonWriter.writeStringField("sensitivity", this.sensitivity == null ? null : this.sensitivity.toString()); - jsonWriter.writeStringField("lookBackWindow", - this.lookBackWindow == null ? null : this.lookBackWindow.toString()); return jsonWriter.writeEndObject(); } @@ -164,8 +134,6 @@ public static ThresholdRuleV2 fromJson(JsonReader jsonReader) throws IOException } else if ("sensitivity".equals(fieldName)) { deserializedThresholdRuleV2.sensitivity = DynamicThresholdSensitivity.fromString(reader.getString()); - } else if ("lookBackWindow".equals(fieldName)) { - deserializedThresholdRuleV2.lookBackWindow = LookBackWindow.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/resources/META-INF/azure-resourcemanager-cloudhealth_metadata.json b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/resources/META-INF/azure-resourcemanager-cloudhealth_metadata.json index 9f9525d6af21..a48fcde9a9ec 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/resources/META-INF/azure-resourcemanager-cloudhealth_metadata.json +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/main/resources/META-INF/azure-resourcemanager-cloudhealth_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.CloudHealth":"2026-05-01-preview"},"crossLanguagePackageId":"Microsoft.CloudHealth","crossLanguageVersion":"4de26ae5b426","crossLanguageDefinitions":{"com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient":"Microsoft.CloudHealth.AuthenticationSettings","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.beginCreateOrUpdate":"Microsoft.CloudHealth.AuthenticationSettings.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.beginDelete":"Microsoft.CloudHealth.AuthenticationSettings.delete","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.createOrUpdate":"Microsoft.CloudHealth.AuthenticationSettings.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.delete":"Microsoft.CloudHealth.AuthenticationSettings.delete","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.get":"Microsoft.CloudHealth.AuthenticationSettings.get","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.getWithResponse":"Microsoft.CloudHealth.AuthenticationSettings.get","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.listByHealthModel":"Microsoft.CloudHealth.AuthenticationSettings.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.CloudHealthManagementClient":"Microsoft.CloudHealth","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient":"Microsoft.CloudHealth.DiscoveryRules","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.beginCreateOrUpdate":"Microsoft.CloudHealth.DiscoveryRules.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.beginDelete":"Microsoft.CloudHealth.DiscoveryRules.delete","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.createOrUpdate":"Microsoft.CloudHealth.DiscoveryRules.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.delete":"Microsoft.CloudHealth.DiscoveryRules.delete","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.get":"Microsoft.CloudHealth.DiscoveryRules.get","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.getWithResponse":"Microsoft.CloudHealth.DiscoveryRules.get","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.listByHealthModel":"Microsoft.CloudHealth.DiscoveryRules.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient":"Microsoft.CloudHealth.Entities","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.addDataAnnotation":"Microsoft.CloudHealth.Entities.addDataAnnotation","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.addDataAnnotationWithResponse":"Microsoft.CloudHealth.Entities.addDataAnnotation","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.beginCreateOrUpdate":"Microsoft.CloudHealth.Entities.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.beginDelete":"Microsoft.CloudHealth.Entities.delete","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.createOrUpdate":"Microsoft.CloudHealth.Entities.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.delete":"Microsoft.CloudHealth.Entities.delete","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.get":"Microsoft.CloudHealth.Entities.get","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getDataAnnotations":"Microsoft.CloudHealth.Entities.getDataAnnotations","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getDataAnnotationsWithResponse":"Microsoft.CloudHealth.Entities.getDataAnnotations","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getHistory":"Microsoft.CloudHealth.Entities.getHistory","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getHistoryWithResponse":"Microsoft.CloudHealth.Entities.getHistory","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getSignalHistory":"Microsoft.CloudHealth.Entities.getSignalHistory","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getSignalHistoryWithResponse":"Microsoft.CloudHealth.Entities.getSignalHistory","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getSignalRecommendations":"Microsoft.CloudHealth.Entities.getSignalRecommendations","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getSignalRecommendationsWithResponse":"Microsoft.CloudHealth.Entities.getSignalRecommendations","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getWithResponse":"Microsoft.CloudHealth.Entities.get","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.ingestHealthReport":"Microsoft.CloudHealth.Entities.ingestHealthReport","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.ingestHealthReportWithResponse":"Microsoft.CloudHealth.Entities.ingestHealthReport","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.listByHealthModel":"Microsoft.CloudHealth.Entities.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient":"Microsoft.CloudHealth.HealthModels","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.beginCreate":"Microsoft.CloudHealth.HealthModels.create","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.beginDelete":"Microsoft.CloudHealth.HealthModels.delete","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.beginUpdate":"Microsoft.CloudHealth.HealthModels.update","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.create":"Microsoft.CloudHealth.HealthModels.create","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.delete":"Microsoft.CloudHealth.HealthModels.delete","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.getByResourceGroup":"Microsoft.CloudHealth.HealthModels.get","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.getByResourceGroupWithResponse":"Microsoft.CloudHealth.HealthModels.get","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.list":"Microsoft.CloudHealth.HealthModels.listBySubscription","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.listByResourceGroup":"Microsoft.CloudHealth.HealthModels.listByResourceGroup","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.update":"Microsoft.CloudHealth.HealthModels.update","com.azure.resourcemanager.cloudhealth.fluent.OperationsClient":"Microsoft.CloudHealth.Operations","com.azure.resourcemanager.cloudhealth.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient":"Microsoft.CloudHealth.Relationships","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.beginCreateOrUpdate":"Microsoft.CloudHealth.Relationships.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.beginDelete":"Microsoft.CloudHealth.Relationships.delete","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.createOrUpdate":"Microsoft.CloudHealth.Relationships.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.delete":"Microsoft.CloudHealth.Relationships.delete","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.get":"Microsoft.CloudHealth.Relationships.get","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.getWithResponse":"Microsoft.CloudHealth.Relationships.get","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.listByHealthModel":"Microsoft.CloudHealth.Relationships.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient":"Microsoft.CloudHealth.SignalDefinitions","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.beginCreateOrUpdate":"Microsoft.CloudHealth.SignalDefinitions.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.beginDelete":"Microsoft.CloudHealth.SignalDefinitions.delete","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.createOrUpdate":"Microsoft.CloudHealth.SignalDefinitions.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.delete":"Microsoft.CloudHealth.SignalDefinitions.delete","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.get":"Microsoft.CloudHealth.SignalDefinitions.get","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.getWithResponse":"Microsoft.CloudHealth.SignalDefinitions.get","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.listByHealthModel":"Microsoft.CloudHealth.SignalDefinitions.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.models.AuthenticationSettingInner":"Microsoft.CloudHealth.AuthenticationSetting","com.azure.resourcemanager.cloudhealth.fluent.models.DataAnnotationInner":"Microsoft.CloudHealth.DataAnnotation","com.azure.resourcemanager.cloudhealth.fluent.models.DiscoveryRuleInner":"Microsoft.CloudHealth.DiscoveryRule","com.azure.resourcemanager.cloudhealth.fluent.models.EntityHistoryResponseInner":"Microsoft.CloudHealth.EntityHistoryResponse","com.azure.resourcemanager.cloudhealth.fluent.models.EntityInner":"Microsoft.CloudHealth.Entity","com.azure.resourcemanager.cloudhealth.fluent.models.GetDataAnnotationsResponseInner":"Microsoft.CloudHealth.GetDataAnnotationsResponse","com.azure.resourcemanager.cloudhealth.fluent.models.GetSignalRecommendationsResponseInner":"Microsoft.CloudHealth.GetSignalRecommendationsResponse","com.azure.resourcemanager.cloudhealth.fluent.models.HealthModelInner":"Microsoft.CloudHealth.HealthModel","com.azure.resourcemanager.cloudhealth.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.cloudhealth.fluent.models.RelationshipInner":"Microsoft.CloudHealth.Relationship","com.azure.resourcemanager.cloudhealth.fluent.models.SignalDefinitionInner":"Microsoft.CloudHealth.SignalDefinition","com.azure.resourcemanager.cloudhealth.fluent.models.SignalHistoryResponseInner":"Microsoft.CloudHealth.SignalHistoryResponse","com.azure.resourcemanager.cloudhealth.implementation.CloudHealthManagementClientBuilder":"Microsoft.CloudHealth","com.azure.resourcemanager.cloudhealth.implementation.models.AuthenticationSettingListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.DiscoveryRuleListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.EntityListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.HealthModelListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.cloudhealth.implementation.models.RelationshipListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.SignalDefinitionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.cloudhealth.models.AddDataAnnotationRequest":"Microsoft.CloudHealth.AddDataAnnotationRequest","com.azure.resourcemanager.cloudhealth.models.AlertConfiguration":"Microsoft.CloudHealth.AlertConfiguration","com.azure.resourcemanager.cloudhealth.models.AlertSeverity":"Microsoft.CloudHealth.AlertSeverity","com.azure.resourcemanager.cloudhealth.models.ApplicationInsightsTopologySpecification":"Microsoft.CloudHealth.ApplicationInsightsTopologySpecification","com.azure.resourcemanager.cloudhealth.models.AuthenticationKind":"Microsoft.CloudHealth.AuthenticationKind","com.azure.resourcemanager.cloudhealth.models.AuthenticationSettingProperties":"Microsoft.CloudHealth.AuthenticationSettingProperties","com.azure.resourcemanager.cloudhealth.models.AzureMonitorWorkspaceSignals":"Microsoft.CloudHealth.AzureMonitorWorkspaceSignals","com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignal":"Microsoft.CloudHealth.AzureResourceHealthSignal","com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignalStatus":"Microsoft.CloudHealth.AzureResourceHealthSignalStatus","com.azure.resourcemanager.cloudhealth.models.AzureResourceSignal":"Microsoft.CloudHealth.AzureResourceSignal","com.azure.resourcemanager.cloudhealth.models.AzureResourceSignals":"Microsoft.CloudHealth.AzureResourceSignals","com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType":"Microsoft.CloudHealth.DependenciesAggregationType","com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit":"Microsoft.CloudHealth.DependenciesAggregationUnit","com.azure.resourcemanager.cloudhealth.models.DependenciesSignalGroupV2":"Microsoft.CloudHealth.DependenciesSignalGroupV2","com.azure.resourcemanager.cloudhealth.models.DiscoveryError":"Microsoft.CloudHealth.DiscoveryError","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleKind":"Microsoft.CloudHealth.DiscoveryRuleKind","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleProperties":"Microsoft.CloudHealth.DiscoveryRuleProperties","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleRecommendedSignalsBehavior":"Microsoft.CloudHealth.DiscoveryRuleRecommendedSignalsBehavior","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleRelationshipDiscoveryBehavior":"Microsoft.CloudHealth.DiscoveryRuleRelationshipDiscoveryBehavior","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleSpecification":"Microsoft.CloudHealth.DiscoveryRuleSpecification","com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity":"Microsoft.CloudHealth.DynamicThresholdSensitivity","com.azure.resourcemanager.cloudhealth.models.EntityAlerts":"Microsoft.CloudHealth.EntityAlerts","com.azure.resourcemanager.cloudhealth.models.EntityCoordinates":"Microsoft.CloudHealth.EntityCoordinates","com.azure.resourcemanager.cloudhealth.models.EntityHistoryRequest":"Microsoft.CloudHealth.EntityHistoryRequest","com.azure.resourcemanager.cloudhealth.models.EntityImpact":"Microsoft.CloudHealth.EntityImpact","com.azure.resourcemanager.cloudhealth.models.EntityProperties":"Microsoft.CloudHealth.EntityProperties","com.azure.resourcemanager.cloudhealth.models.EvaluationRule":"Microsoft.CloudHealth.EvaluationRule","com.azure.resourcemanager.cloudhealth.models.ExternalSignal":"Microsoft.CloudHealth.ExternalSignal","com.azure.resourcemanager.cloudhealth.models.ExternalSignalGroup":"Microsoft.CloudHealth.ExternalSignalGroup","com.azure.resourcemanager.cloudhealth.models.GetDataAnnotationsRequest":"Microsoft.CloudHealth.GetDataAnnotationsRequest","com.azure.resourcemanager.cloudhealth.models.HealthModelProperties":"Microsoft.CloudHealth.HealthModelProperties","com.azure.resourcemanager.cloudhealth.models.HealthModelProvisioningState":"Microsoft.CloudHealth.HealthModelProvisioningState","com.azure.resourcemanager.cloudhealth.models.HealthModelUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.cloudhealth.models.HealthReportEvaluationRule":"Microsoft.CloudHealth.HealthReportEvaluationRule","com.azure.resourcemanager.cloudhealth.models.HealthReportRequest":"Microsoft.CloudHealth.HealthReportRequest","com.azure.resourcemanager.cloudhealth.models.HealthState":"Microsoft.CloudHealth.HealthState","com.azure.resourcemanager.cloudhealth.models.HealthStateTransition":"Microsoft.CloudHealth.HealthStateTransition","com.azure.resourcemanager.cloudhealth.models.IconDefinition":"Microsoft.CloudHealth.IconDefinition","com.azure.resourcemanager.cloudhealth.models.LogAnalyticsQuerySignalDefinitionProperties":"Microsoft.CloudHealth.LogAnalyticsQuerySignalDefinitionProperties","com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignal":"Microsoft.CloudHealth.LogAnalyticsSignal","com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignals":"Microsoft.CloudHealth.LogAnalyticsSignals","com.azure.resourcemanager.cloudhealth.models.LookBackWindow":"Microsoft.CloudHealth.LookBackWindow","com.azure.resourcemanager.cloudhealth.models.ManagedIdentityAuthenticationSettingProperties":"Microsoft.CloudHealth.ManagedIdentityAuthenticationSettingProperties","com.azure.resourcemanager.cloudhealth.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.cloudhealth.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.cloudhealth.models.MetricAggregationType":"Microsoft.CloudHealth.MetricAggregationType","com.azure.resourcemanager.cloudhealth.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.cloudhealth.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal":"Microsoft.CloudHealth.PrometheusMetricsSignal","com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignalDefinitionProperties":"Microsoft.CloudHealth.PrometheusMetricsSignalDefinitionProperties","com.azure.resourcemanager.cloudhealth.models.RefreshInterval":"Microsoft.CloudHealth.RefreshInterval","com.azure.resourcemanager.cloudhealth.models.RelationshipProperties":"Microsoft.CloudHealth.RelationshipProperties","com.azure.resourcemanager.cloudhealth.models.ResourceGraphQuerySpecification":"Microsoft.CloudHealth.ResourceGraphQuerySpecification","com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityState":"Microsoft.CloudHealth.ResourceHealthAvailabilityState","com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior":"Microsoft.CloudHealth.ResourceHealthAvailabilityStateSignalBehavior","com.azure.resourcemanager.cloudhealth.models.ResourceHealthCategory":"Microsoft.CloudHealth.ResourceHealthCategory","com.azure.resourcemanager.cloudhealth.models.ResourceHealthReasonChronicity":"Microsoft.CloudHealth.ResourceHealthReasonChronicity","com.azure.resourcemanager.cloudhealth.models.ResourceHealthReasonType":"Microsoft.CloudHealth.ResourceHealthReasonType","com.azure.resourcemanager.cloudhealth.models.ResourceMetricSignalDefinitionProperties":"Microsoft.CloudHealth.ResourceMetricSignalDefinitionProperties","com.azure.resourcemanager.cloudhealth.models.SignalConfiguration":"Microsoft.CloudHealth.SignalConfiguration","com.azure.resourcemanager.cloudhealth.models.SignalDefinitionProperties":"Microsoft.CloudHealth.SignalDefinitionProperties","com.azure.resourcemanager.cloudhealth.models.SignalGroups":"Microsoft.CloudHealth.SignalGroups","com.azure.resourcemanager.cloudhealth.models.SignalHistoryDataPoint":"Microsoft.CloudHealth.SignalHistoryDataPoint","com.azure.resourcemanager.cloudhealth.models.SignalHistoryRequest":"Microsoft.CloudHealth.SignalHistoryRequest","com.azure.resourcemanager.cloudhealth.models.SignalInstanceProperties":"Microsoft.CloudHealth.SignalInstanceProperties","com.azure.resourcemanager.cloudhealth.models.SignalKind":"Microsoft.CloudHealth.SignalKind","com.azure.resourcemanager.cloudhealth.models.SignalOperator":"Microsoft.CloudHealth.SignalOperator","com.azure.resourcemanager.cloudhealth.models.SignalStatus":"Microsoft.CloudHealth.SignalStatus","com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2":"Microsoft.CloudHealth.ThresholdRuleV2","com.azure.resourcemanager.cloudhealth.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity"},"generatedFiles":["src/main/java/com/azure/resourcemanager/cloudhealth/CloudHealthManager.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/AuthenticationSettingsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/CloudHealthManagementClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/DiscoveryRulesClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/EntitiesClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/HealthModelsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/RelationshipsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/SignalDefinitionsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/AuthenticationSettingInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/DataAnnotationInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/DiscoveryRuleInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/EntityHistoryResponseInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/EntityInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/GetDataAnnotationsResponseInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/GetSignalRecommendationsResponseInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/HealthModelInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/RelationshipInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/SignalDefinitionInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/SignalHistoryResponseInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/package-info.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/AuthenticationSettingImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/AuthenticationSettingsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/AuthenticationSettingsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/CloudHealthManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/CloudHealthManagementClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/DataAnnotationImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/DiscoveryRuleImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/DiscoveryRulesClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/DiscoveryRulesImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/EntitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/EntitiesImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/EntityHistoryResponseImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/EntityImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/GetDataAnnotationsResponseImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/GetSignalRecommendationsResponseImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/HealthModelImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/HealthModelsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/HealthModelsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/RelationshipImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/RelationshipsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/RelationshipsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/SignalDefinitionImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/SignalDefinitionsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/SignalDefinitionsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/SignalHistoryResponseImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/AuthenticationSettingListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/DiscoveryRuleListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/EntityListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/HealthModelListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/RelationshipListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/SignalDefinitionListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/package-info.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ActionType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AddDataAnnotationRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AlertConfiguration.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AlertSeverity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ApplicationInsightsTopologySpecification.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AuthenticationKind.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AuthenticationSetting.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AuthenticationSettingProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AuthenticationSettings.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureMonitorWorkspaceSignals.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureResourceHealthSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureResourceHealthSignalStatus.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureResourceSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureResourceSignals.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DataAnnotation.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesAggregationUnit.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesSignalGroupV2.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryError.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRule.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleKind.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleRecommendedSignalsBehavior.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleRelationshipDiscoveryBehavior.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleSpecification.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRules.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DynamicThresholdSensitivity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Entities.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Entity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityAlerts.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityCoordinates.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityHistoryRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityHistoryResponse.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityImpact.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EvaluationRule.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ExternalSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ExternalSignalGroup.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/GetDataAnnotationsRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/GetDataAnnotationsResponse.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/GetSignalRecommendationsResponse.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModel.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModelProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModelProvisioningState.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModelUpdate.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModels.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthReportEvaluationRule.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthReportRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthState.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthStateTransition.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/IconDefinition.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/LogAnalyticsQuerySignalDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/LogAnalyticsSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/LogAnalyticsSignals.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/LookBackWindow.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ManagedIdentityAuthenticationSettingProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/MetricAggregationType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Operation.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Operations.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Origin.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/PrometheusMetricsSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/PrometheusMetricsSignalDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/RefreshInterval.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Relationship.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/RelationshipProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Relationships.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceGraphQuerySpecification.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthAvailabilityState.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthAvailabilityStateSignalBehavior.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthCategory.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthReasonChronicity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthReasonType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceMetricSignalDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalConfiguration.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalDefinition.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalDefinitions.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalGroups.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalHistoryDataPoint.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalHistoryRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalHistoryResponse.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalInstanceProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalKind.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalOperator.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalStatus.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ThresholdRuleV2.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/package-info.java","src/main/java/com/azure/resourcemanager/cloudhealth/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.CloudHealth":"2026-09-01-preview"},"crossLanguagePackageId":"Microsoft.CloudHealth","crossLanguageVersion":"940b1668864e","crossLanguageDefinitions":{"com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient":"Microsoft.CloudHealth.AuthenticationSettings","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.beginCreateOrUpdate":"Microsoft.CloudHealth.AuthenticationSettings.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.beginDelete":"Microsoft.CloudHealth.AuthenticationSettings.delete","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.createOrUpdate":"Microsoft.CloudHealth.AuthenticationSettings.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.delete":"Microsoft.CloudHealth.AuthenticationSettings.delete","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.get":"Microsoft.CloudHealth.AuthenticationSettings.get","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.getWithResponse":"Microsoft.CloudHealth.AuthenticationSettings.get","com.azure.resourcemanager.cloudhealth.fluent.AuthenticationSettingsClient.listByHealthModel":"Microsoft.CloudHealth.AuthenticationSettings.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.CloudHealthManagementClient":"Microsoft.CloudHealth","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient":"Microsoft.CloudHealth.DiscoveryRules","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.beginCreateOrUpdate":"Microsoft.CloudHealth.DiscoveryRules.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.beginDelete":"Microsoft.CloudHealth.DiscoveryRules.delete","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.createOrUpdate":"Microsoft.CloudHealth.DiscoveryRules.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.delete":"Microsoft.CloudHealth.DiscoveryRules.delete","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.get":"Microsoft.CloudHealth.DiscoveryRules.get","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.getWithResponse":"Microsoft.CloudHealth.DiscoveryRules.get","com.azure.resourcemanager.cloudhealth.fluent.DiscoveryRulesClient.listByHealthModel":"Microsoft.CloudHealth.DiscoveryRules.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient":"Microsoft.CloudHealth.Entities","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.addDataAnnotation":"Microsoft.CloudHealth.Entities.addDataAnnotation","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.addDataAnnotationWithResponse":"Microsoft.CloudHealth.Entities.addDataAnnotation","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.beginCreateOrUpdate":"Microsoft.CloudHealth.Entities.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.beginDelete":"Microsoft.CloudHealth.Entities.delete","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.createOrUpdate":"Microsoft.CloudHealth.Entities.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.delete":"Microsoft.CloudHealth.Entities.delete","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.get":"Microsoft.CloudHealth.Entities.get","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getDataAnnotations":"Microsoft.CloudHealth.Entities.getDataAnnotations","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getDataAnnotationsWithResponse":"Microsoft.CloudHealth.Entities.getDataAnnotations","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getHistory":"Microsoft.CloudHealth.Entities.getHistory","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getHistoryWithResponse":"Microsoft.CloudHealth.Entities.getHistory","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getSignalHistory":"Microsoft.CloudHealth.Entities.getSignalHistory","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getSignalHistoryWithResponse":"Microsoft.CloudHealth.Entities.getSignalHistory","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getSignalRecommendations":"Microsoft.CloudHealth.Entities.getSignalRecommendations","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getSignalRecommendationsWithResponse":"Microsoft.CloudHealth.Entities.getSignalRecommendations","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.getWithResponse":"Microsoft.CloudHealth.Entities.get","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.ingestHealthReport":"Microsoft.CloudHealth.Entities.ingestHealthReport","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.ingestHealthReportWithResponse":"Microsoft.CloudHealth.Entities.ingestHealthReport","com.azure.resourcemanager.cloudhealth.fluent.EntitiesClient.listByHealthModel":"Microsoft.CloudHealth.Entities.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient":"Microsoft.CloudHealth.HealthModels","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.beginCreate":"Microsoft.CloudHealth.HealthModels.create","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.beginDelete":"Microsoft.CloudHealth.HealthModels.delete","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.beginUpdate":"Microsoft.CloudHealth.HealthModels.update","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.create":"Microsoft.CloudHealth.HealthModels.create","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.delete":"Microsoft.CloudHealth.HealthModels.delete","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.getByResourceGroup":"Microsoft.CloudHealth.HealthModels.get","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.getByResourceGroupWithResponse":"Microsoft.CloudHealth.HealthModels.get","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.list":"Microsoft.CloudHealth.HealthModels.listBySubscription","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.listByResourceGroup":"Microsoft.CloudHealth.HealthModels.listByResourceGroup","com.azure.resourcemanager.cloudhealth.fluent.HealthModelsClient.update":"Microsoft.CloudHealth.HealthModels.update","com.azure.resourcemanager.cloudhealth.fluent.OperationsClient":"Microsoft.CloudHealth.Operations","com.azure.resourcemanager.cloudhealth.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient":"Microsoft.CloudHealth.Relationships","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.beginCreateOrUpdate":"Microsoft.CloudHealth.Relationships.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.beginDelete":"Microsoft.CloudHealth.Relationships.delete","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.createOrUpdate":"Microsoft.CloudHealth.Relationships.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.delete":"Microsoft.CloudHealth.Relationships.delete","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.get":"Microsoft.CloudHealth.Relationships.get","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.getWithResponse":"Microsoft.CloudHealth.Relationships.get","com.azure.resourcemanager.cloudhealth.fluent.RelationshipsClient.listByHealthModel":"Microsoft.CloudHealth.Relationships.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient":"Microsoft.CloudHealth.SignalDefinitions","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.beginCreateOrUpdate":"Microsoft.CloudHealth.SignalDefinitions.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.beginDelete":"Microsoft.CloudHealth.SignalDefinitions.delete","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.createOrUpdate":"Microsoft.CloudHealth.SignalDefinitions.createOrUpdate","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.delete":"Microsoft.CloudHealth.SignalDefinitions.delete","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.get":"Microsoft.CloudHealth.SignalDefinitions.get","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.getWithResponse":"Microsoft.CloudHealth.SignalDefinitions.get","com.azure.resourcemanager.cloudhealth.fluent.SignalDefinitionsClient.listByHealthModel":"Microsoft.CloudHealth.SignalDefinitions.listByHealthModel","com.azure.resourcemanager.cloudhealth.fluent.models.AuthenticationSettingInner":"Microsoft.CloudHealth.AuthenticationSetting","com.azure.resourcemanager.cloudhealth.fluent.models.DataAnnotationInner":"Microsoft.CloudHealth.DataAnnotation","com.azure.resourcemanager.cloudhealth.fluent.models.DiscoveryRuleInner":"Microsoft.CloudHealth.DiscoveryRule","com.azure.resourcemanager.cloudhealth.fluent.models.EntityHistoryResponseInner":"Microsoft.CloudHealth.EntityHistoryResponse","com.azure.resourcemanager.cloudhealth.fluent.models.EntityInner":"Microsoft.CloudHealth.Entity","com.azure.resourcemanager.cloudhealth.fluent.models.GetDataAnnotationsResponseInner":"Microsoft.CloudHealth.GetDataAnnotationsResponse","com.azure.resourcemanager.cloudhealth.fluent.models.GetSignalRecommendationsResponseInner":"Microsoft.CloudHealth.GetSignalRecommendationsResponse","com.azure.resourcemanager.cloudhealth.fluent.models.HealthModelInner":"Microsoft.CloudHealth.HealthModel","com.azure.resourcemanager.cloudhealth.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.cloudhealth.fluent.models.RelationshipInner":"Microsoft.CloudHealth.Relationship","com.azure.resourcemanager.cloudhealth.fluent.models.SignalDefinitionInner":"Microsoft.CloudHealth.SignalDefinition","com.azure.resourcemanager.cloudhealth.fluent.models.SignalHistoryResponseInner":"Microsoft.CloudHealth.SignalHistoryResponse","com.azure.resourcemanager.cloudhealth.implementation.CloudHealthManagementClientBuilder":"Microsoft.CloudHealth","com.azure.resourcemanager.cloudhealth.implementation.models.AuthenticationSettingListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.DiscoveryRuleListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.EntityListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.HealthModelListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.cloudhealth.implementation.models.RelationshipListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.implementation.models.SignalDefinitionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.cloudhealth.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.cloudhealth.models.AddDataAnnotationRequest":"Microsoft.CloudHealth.AddDataAnnotationRequest","com.azure.resourcemanager.cloudhealth.models.AggregationType":"Microsoft.CloudHealth.AggregationType","com.azure.resourcemanager.cloudhealth.models.AggregationUnit":"Microsoft.CloudHealth.AggregationUnit","com.azure.resourcemanager.cloudhealth.models.AlertConfiguration":"Microsoft.CloudHealth.AlertConfiguration","com.azure.resourcemanager.cloudhealth.models.AlertSeverity":"Microsoft.CloudHealth.AlertSeverity","com.azure.resourcemanager.cloudhealth.models.ApplicationInsightsTopologySpecification":"Microsoft.CloudHealth.ApplicationInsightsTopologySpecification","com.azure.resourcemanager.cloudhealth.models.AuthenticationKind":"Microsoft.CloudHealth.AuthenticationKind","com.azure.resourcemanager.cloudhealth.models.AuthenticationSettingProperties":"Microsoft.CloudHealth.AuthenticationSettingProperties","com.azure.resourcemanager.cloudhealth.models.AzureMonitorWorkspaceSignals":"Microsoft.CloudHealth.AzureMonitorWorkspaceSignals","com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignal":"Microsoft.CloudHealth.AzureResourceHealthSignal","com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignalStatus":"Microsoft.CloudHealth.AzureResourceHealthSignalStatus","com.azure.resourcemanager.cloudhealth.models.AzureResourceSignal":"Microsoft.CloudHealth.AzureResourceSignal","com.azure.resourcemanager.cloudhealth.models.AzureResourceSignals":"Microsoft.CloudHealth.AzureResourceSignals","com.azure.resourcemanager.cloudhealth.models.DependenciesSignalGroupV2":"Microsoft.CloudHealth.DependenciesSignalGroupV2","com.azure.resourcemanager.cloudhealth.models.DiscoveryError":"Microsoft.CloudHealth.DiscoveryError","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleKind":"Microsoft.CloudHealth.DiscoveryRuleKind","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleProperties":"Microsoft.CloudHealth.DiscoveryRuleProperties","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleRecommendedSignalsBehavior":"Microsoft.CloudHealth.DiscoveryRuleRecommendedSignalsBehavior","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleRelationshipDiscoveryBehavior":"Microsoft.CloudHealth.DiscoveryRuleRelationshipDiscoveryBehavior","com.azure.resourcemanager.cloudhealth.models.DiscoveryRuleSpecification":"Microsoft.CloudHealth.DiscoveryRuleSpecification","com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity":"Microsoft.CloudHealth.DynamicThresholdSensitivity","com.azure.resourcemanager.cloudhealth.models.EntityAlerts":"Microsoft.CloudHealth.EntityAlerts","com.azure.resourcemanager.cloudhealth.models.EntityCoordinates":"Microsoft.CloudHealth.EntityCoordinates","com.azure.resourcemanager.cloudhealth.models.EntityHistoryRequest":"Microsoft.CloudHealth.EntityHistoryRequest","com.azure.resourcemanager.cloudhealth.models.EntityImpact":"Microsoft.CloudHealth.EntityImpact","com.azure.resourcemanager.cloudhealth.models.EntityProperties":"Microsoft.CloudHealth.EntityProperties","com.azure.resourcemanager.cloudhealth.models.EvaluationRule":"Microsoft.CloudHealth.EvaluationRule","com.azure.resourcemanager.cloudhealth.models.ExternalSignal":"Microsoft.CloudHealth.ExternalSignal","com.azure.resourcemanager.cloudhealth.models.ExternalSignalGroup":"Microsoft.CloudHealth.ExternalSignalGroup","com.azure.resourcemanager.cloudhealth.models.GetDataAnnotationsRequest":"Microsoft.CloudHealth.GetDataAnnotationsRequest","com.azure.resourcemanager.cloudhealth.models.HealthModelProperties":"Microsoft.CloudHealth.HealthModelProperties","com.azure.resourcemanager.cloudhealth.models.HealthModelProvisioningState":"Microsoft.CloudHealth.HealthModelProvisioningState","com.azure.resourcemanager.cloudhealth.models.HealthModelUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.cloudhealth.models.HealthReportEvaluationRule":"Microsoft.CloudHealth.HealthReportEvaluationRule","com.azure.resourcemanager.cloudhealth.models.HealthReportRequest":"Microsoft.CloudHealth.HealthReportRequest","com.azure.resourcemanager.cloudhealth.models.HealthState":"Microsoft.CloudHealth.HealthState","com.azure.resourcemanager.cloudhealth.models.HealthStateTransition":"Microsoft.CloudHealth.HealthStateTransition","com.azure.resourcemanager.cloudhealth.models.IconDefinition":"Microsoft.CloudHealth.IconDefinition","com.azure.resourcemanager.cloudhealth.models.LogAnalyticsQuerySignalDefinitionProperties":"Microsoft.CloudHealth.LogAnalyticsQuerySignalDefinitionProperties","com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignal":"Microsoft.CloudHealth.LogAnalyticsSignal","com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignals":"Microsoft.CloudHealth.LogAnalyticsSignals","com.azure.resourcemanager.cloudhealth.models.ManagedIdentityAuthenticationSettingProperties":"Microsoft.CloudHealth.ManagedIdentityAuthenticationSettingProperties","com.azure.resourcemanager.cloudhealth.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.cloudhealth.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.cloudhealth.models.MetricAggregationType":"Microsoft.CloudHealth.MetricAggregationType","com.azure.resourcemanager.cloudhealth.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.cloudhealth.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal":"Microsoft.CloudHealth.PrometheusMetricsSignal","com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignalDefinitionProperties":"Microsoft.CloudHealth.PrometheusMetricsSignalDefinitionProperties","com.azure.resourcemanager.cloudhealth.models.RefreshInterval":"Microsoft.CloudHealth.RefreshInterval","com.azure.resourcemanager.cloudhealth.models.RelationshipProperties":"Microsoft.CloudHealth.RelationshipProperties","com.azure.resourcemanager.cloudhealth.models.ResourceGraphQuerySpecification":"Microsoft.CloudHealth.ResourceGraphQuerySpecification","com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityState":"Microsoft.CloudHealth.ResourceHealthAvailabilityState","com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior":"Microsoft.CloudHealth.ResourceHealthAvailabilityStateSignalBehavior","com.azure.resourcemanager.cloudhealth.models.ResourceHealthCategory":"Microsoft.CloudHealth.ResourceHealthCategory","com.azure.resourcemanager.cloudhealth.models.ResourceHealthReasonChronicity":"Microsoft.CloudHealth.ResourceHealthReasonChronicity","com.azure.resourcemanager.cloudhealth.models.ResourceHealthReasonType":"Microsoft.CloudHealth.ResourceHealthReasonType","com.azure.resourcemanager.cloudhealth.models.ResourceMetricSignalDefinitionProperties":"Microsoft.CloudHealth.ResourceMetricSignalDefinitionProperties","com.azure.resourcemanager.cloudhealth.models.SignalAggregationGroup":"Microsoft.CloudHealth.SignalAggregationGroup","com.azure.resourcemanager.cloudhealth.models.SignalConfiguration":"Microsoft.CloudHealth.SignalConfiguration","com.azure.resourcemanager.cloudhealth.models.SignalDefinitionProperties":"Microsoft.CloudHealth.SignalDefinitionProperties","com.azure.resourcemanager.cloudhealth.models.SignalGroups":"Microsoft.CloudHealth.SignalGroups","com.azure.resourcemanager.cloudhealth.models.SignalHistoryDataPoint":"Microsoft.CloudHealth.SignalHistoryDataPoint","com.azure.resourcemanager.cloudhealth.models.SignalHistoryRequest":"Microsoft.CloudHealth.SignalHistoryRequest","com.azure.resourcemanager.cloudhealth.models.SignalInstanceProperties":"Microsoft.CloudHealth.SignalInstanceProperties","com.azure.resourcemanager.cloudhealth.models.SignalKind":"Microsoft.CloudHealth.SignalKind","com.azure.resourcemanager.cloudhealth.models.SignalOperator":"Microsoft.CloudHealth.SignalOperator","com.azure.resourcemanager.cloudhealth.models.SignalStatus":"Microsoft.CloudHealth.SignalStatus","com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2":"Microsoft.CloudHealth.ThresholdRuleV2","com.azure.resourcemanager.cloudhealth.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity"},"generatedFiles":["src/main/java/com/azure/resourcemanager/cloudhealth/CloudHealthManager.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/AuthenticationSettingsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/CloudHealthManagementClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/DiscoveryRulesClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/EntitiesClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/HealthModelsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/RelationshipsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/SignalDefinitionsClient.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/AuthenticationSettingInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/DataAnnotationInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/DiscoveryRuleInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/EntityHistoryResponseInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/EntityInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/GetDataAnnotationsResponseInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/GetSignalRecommendationsResponseInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/HealthModelInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/RelationshipInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/SignalDefinitionInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/SignalHistoryResponseInner.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/cloudhealth/fluent/package-info.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/AuthenticationSettingImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/AuthenticationSettingsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/AuthenticationSettingsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/CloudHealthManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/CloudHealthManagementClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/DataAnnotationImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/DiscoveryRuleImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/DiscoveryRulesClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/DiscoveryRulesImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/EntitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/EntitiesImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/EntityHistoryResponseImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/EntityImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/GetDataAnnotationsResponseImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/GetSignalRecommendationsResponseImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/HealthModelImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/HealthModelsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/HealthModelsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/RelationshipImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/RelationshipsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/RelationshipsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/SignalDefinitionImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/SignalDefinitionsClientImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/SignalDefinitionsImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/SignalHistoryResponseImpl.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/AuthenticationSettingListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/DiscoveryRuleListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/EntityListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/HealthModelListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/RelationshipListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/models/SignalDefinitionListResult.java","src/main/java/com/azure/resourcemanager/cloudhealth/implementation/package-info.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ActionType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AddDataAnnotationRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AggregationUnit.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AlertConfiguration.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AlertSeverity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ApplicationInsightsTopologySpecification.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AuthenticationKind.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AuthenticationSetting.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AuthenticationSettingProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AuthenticationSettings.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureMonitorWorkspaceSignals.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureResourceHealthSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureResourceHealthSignalStatus.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureResourceSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/AzureResourceSignals.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DataAnnotation.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DependenciesSignalGroupV2.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryError.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRule.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleKind.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleRecommendedSignalsBehavior.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleRelationshipDiscoveryBehavior.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRuleSpecification.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DiscoveryRules.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/DynamicThresholdSensitivity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Entities.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Entity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityAlerts.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityCoordinates.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityHistoryRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityHistoryResponse.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityImpact.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EntityProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/EvaluationRule.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ExternalSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ExternalSignalGroup.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/GetDataAnnotationsRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/GetDataAnnotationsResponse.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/GetSignalRecommendationsResponse.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModel.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModelProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModelProvisioningState.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModelUpdate.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthModels.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthReportEvaluationRule.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthReportRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthState.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/HealthStateTransition.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/IconDefinition.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/LogAnalyticsQuerySignalDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/LogAnalyticsSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/LogAnalyticsSignals.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ManagedIdentityAuthenticationSettingProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/MetricAggregationType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Operation.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Operations.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Origin.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/PrometheusMetricsSignal.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/PrometheusMetricsSignalDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/RefreshInterval.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Relationship.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/RelationshipProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/Relationships.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceGraphQuerySpecification.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthAvailabilityState.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthAvailabilityStateSignalBehavior.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthCategory.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthReasonChronicity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceHealthReasonType.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ResourceMetricSignalDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalAggregationGroup.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalConfiguration.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalDefinition.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalDefinitionProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalDefinitions.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalGroups.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalHistoryDataPoint.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalHistoryRequest.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalHistoryResponse.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalInstanceProperties.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalKind.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalOperator.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/SignalStatus.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/ThresholdRuleV2.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/cloudhealth/models/package-info.java","src/main/java/com/azure/resourcemanager/cloudhealth/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsCreateOrUpdateSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsCreateOrUpdateSamples.java index 78a8f4317c95..2c1c0c55138c 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsCreateOrUpdateSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class AuthenticationSettingsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/AuthenticationSettings_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/AuthenticationSettings_CreateOrUpdate.json */ /** * Sample code: AuthenticationSettings_CreateOrUpdate. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsDeleteSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsDeleteSamples.java index eb2bf8d1575b..9d41fa6e949f 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsDeleteSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AuthenticationSettingsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/AuthenticationSettings_Delete.json + * x-ms-original-file: 2026-09-01-preview/AuthenticationSettings_Delete.json */ /** * Sample code: AuthenticationSettings_Delete. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsGetSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsGetSamples.java index f1e6151eaa24..c0edaa38fa17 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsGetSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AuthenticationSettingsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/AuthenticationSettings_Get.json + * x-ms-original-file: 2026-09-01-preview/AuthenticationSettings_Get.json */ /** * Sample code: AuthenticationSettings_Get. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsListByHealthModelSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsListByHealthModelSamples.java index e8cc8502fbe9..83d55e460a3b 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsListByHealthModelSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsListByHealthModelSamples.java @@ -9,7 +9,7 @@ */ public final class AuthenticationSettingsListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/AuthenticationSettings_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/AuthenticationSettings_ListByHealthModel.json */ /** * Sample code: AuthenticationSettings_ListByHealthModel. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesCreateOrUpdateSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesCreateOrUpdateSamples.java index db5673486927..225822dc52b5 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesCreateOrUpdateSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class DiscoveryRulesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/DiscoveryRules_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/DiscoveryRules_CreateOrUpdate.json */ /** * Sample code: DiscoveryRules_CreateOrUpdate. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesDeleteSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesDeleteSamples.java index a010f9a63138..43debcd4596c 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesDeleteSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class DiscoveryRulesDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/DiscoveryRules_Delete.json + * x-ms-original-file: 2026-09-01-preview/DiscoveryRules_Delete.json */ /** * Sample code: DiscoveryRules_Delete. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesGetSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesGetSamples.java index a70c26366a2b..d49716c823ba 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesGetSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesGetSamples.java @@ -9,7 +9,7 @@ */ public final class DiscoveryRulesGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/DiscoveryRules_Get.json + * x-ms-original-file: 2026-09-01-preview/DiscoveryRules_Get.json */ /** * Sample code: DiscoveryRules_Get. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesListByHealthModelSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesListByHealthModelSamples.java index 241cdc709881..7b3c7b9bc5bb 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesListByHealthModelSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesListByHealthModelSamples.java @@ -9,7 +9,7 @@ */ public final class DiscoveryRulesListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/DiscoveryRules_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/DiscoveryRules_ListByHealthModel.json */ /** * Sample code: DiscoveryRules_ListByHealthModel. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesAddDataAnnotationSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesAddDataAnnotationSamples.java index e116ae34ae9f..c055919400a6 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesAddDataAnnotationSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesAddDataAnnotationSamples.java @@ -13,7 +13,7 @@ */ public final class EntitiesAddDataAnnotationSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_AddDataAnnotation.json + * x-ms-original-file: 2026-09-01-preview/Entities_AddDataAnnotation.json */ /** * Sample code: Entities_AddDataAnnotation. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesCreateOrUpdateSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesCreateOrUpdateSamples.java index df460e16c42d..843cb281d9cb 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesCreateOrUpdateSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesCreateOrUpdateSamples.java @@ -4,14 +4,14 @@ package com.azure.resourcemanager.cloudhealth.generated; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.AlertConfiguration; import com.azure.resourcemanager.cloudhealth.models.AlertSeverity; import com.azure.resourcemanager.cloudhealth.models.AzureMonitorWorkspaceSignals; import com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignals; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; import com.azure.resourcemanager.cloudhealth.models.DependenciesSignalGroupV2; import com.azure.resourcemanager.cloudhealth.models.EntityAlerts; import com.azure.resourcemanager.cloudhealth.models.EntityCoordinates; @@ -25,6 +25,7 @@ import com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior; +import com.azure.resourcemanager.cloudhealth.models.SignalAggregationGroup; import com.azure.resourcemanager.cloudhealth.models.SignalGroups; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; @@ -37,7 +38,7 @@ */ public final class EntitiesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/Entities_CreateOrUpdate.json */ /** * Sample code: Entities_CreateOrUpdate. @@ -131,12 +132,23 @@ public static void entitiesCreateOrUpdate(com.azure.resourcemanager.cloudhealth. .withThreshold(70.0D)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) .withThreshold(90.0D)))))) - .withDependencies( - new DependenciesSignalGroupV2().withAggregationType(DependenciesAggregationType.MIN_HEALTHY) - .withDegradedThreshold(100.0D) - .withUnhealthyThreshold(50.0D) - .withUnit(DependenciesAggregationUnit.PERCENTAGE) - .withIgnoreUnknown(true))) + .withDependencies(new DependenciesSignalGroupV2().withAggregationType(AggregationType.MIN_HEALTHY) + .withDegradedThreshold(100.0D) + .withUnhealthyThreshold(50.0D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(true))) + .withSignalAggregationGroups(Arrays.asList( + new SignalAggregationGroup().withName("latency-and-errors") + .withDisplayName("Latency and errors") + .withAggregationType(AggregationType.WORST_OF) + .withMembers(Arrays.asList("error-rate", "p95-latency")), + new SignalAggregationGroup().withName("compute-utilization") + .withDisplayName("Compute utilization") + .withAggregationType(AggregationType.MIN_HEALTHY) + .withMembers(Arrays.asList("node-cpu", "pod-cpu")) + .withUnhealthyThreshold(50.0D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(true))) .withAlerts(new EntityAlerts().withUnhealthy(new AlertConfiguration().withSeverity(AlertSeverity.SEV1) .withDescription("Orders API is unhealthy.") .withActionGroupIds(Arrays.asList( diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesDeleteSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesDeleteSamples.java index d513f2c2b6cd..c544ac625f15 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesDeleteSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class EntitiesDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_Delete.json + * x-ms-original-file: 2026-09-01-preview/Entities_Delete.json */ /** * Sample code: Entities_Delete. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetDataAnnotationsSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetDataAnnotationsSamples.java index 22ae97f37caa..5f046f171fe2 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetDataAnnotationsSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetDataAnnotationsSamples.java @@ -12,7 +12,7 @@ */ public final class EntitiesGetDataAnnotationsSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_GetDataAnnotations.json + * x-ms-original-file: 2026-09-01-preview/Entities_GetDataAnnotations.json */ /** * Sample code: Entities_GetDataAnnotations. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetHistorySamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetHistorySamples.java index 485ef5e7e035..38a4826ea6e3 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetHistorySamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetHistorySamples.java @@ -12,7 +12,7 @@ */ public final class EntitiesGetHistorySamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_GetHistory.json + * x-ms-original-file: 2026-09-01-preview/Entities_GetHistory.json */ /** * Sample code: Entities_GetHistory. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSamples.java index 03953391014f..41de0b1289be 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSamples.java @@ -9,7 +9,7 @@ */ public final class EntitiesGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_Get.json + * x-ms-original-file: 2026-09-01-preview/Entities_Get.json */ /** * Sample code: Entities_Get. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalHistorySamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalHistorySamples.java index 867d7356414f..764674455547 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalHistorySamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalHistorySamples.java @@ -12,7 +12,7 @@ */ public final class EntitiesGetSignalHistorySamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_GetSignalHistory.json + * x-ms-original-file: 2026-09-01-preview/Entities_GetSignalHistory.json */ /** * Sample code: Entities_GetSignalHistory. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalRecommendationsSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalRecommendationsSamples.java index ccf006e27b2f..7846baad7d9b 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalRecommendationsSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalRecommendationsSamples.java @@ -9,7 +9,7 @@ */ public final class EntitiesGetSignalRecommendationsSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_GetSignalRecommendations.json + * x-ms-original-file: 2026-09-01-preview/Entities_GetSignalRecommendations.json */ /** * Sample code: Entities_GetSignalRecommendations. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesIngestHealthReportSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesIngestHealthReportSamples.java index 436555bd360a..72f2cb605adf 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesIngestHealthReportSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesIngestHealthReportSamples.java @@ -15,7 +15,7 @@ */ public final class EntitiesIngestHealthReportSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_IngestHealthReport.json + * x-ms-original-file: 2026-09-01-preview/Entities_IngestHealthReport.json */ /** * Sample code: Entities_IngestHealthReport. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesListByHealthModelSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesListByHealthModelSamples.java index baf00f613a89..44906a80166a 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesListByHealthModelSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesListByHealthModelSamples.java @@ -9,7 +9,7 @@ */ public final class EntitiesListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/Entities_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/Entities_ListByHealthModel.json */ /** * Sample code: Entities_ListByHealthModel. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsCreateSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsCreateSamples.java index 5803fc9ac6a6..d7772de556f6 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsCreateSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsCreateSamples.java @@ -15,7 +15,7 @@ */ public final class HealthModelsCreateSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_Create.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_Create.json */ /** * Sample code: HealthModels_Create. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsDeleteSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsDeleteSamples.java index c5b33f9cf275..60df891c6825 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsDeleteSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class HealthModelsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_Delete.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_Delete.json */ /** * Sample code: HealthModels_Delete. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsGetByResourceGroupSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsGetByResourceGroupSamples.java index 7606624fccf9..b9b5d8a86f00 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsGetByResourceGroupSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class HealthModelsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_Get.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_Get.json */ /** * Sample code: HealthModels_Get. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListByResourceGroupSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListByResourceGroupSamples.java index b88a5cbcdc30..26341cd563cc 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListByResourceGroupSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class HealthModelsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_ListByResourceGroup.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_ListByResourceGroup.json */ /** * Sample code: HealthModels_ListByResourceGroup. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListSamples.java index 74843b7f9c17..c145fbd4ecc4 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListSamples.java @@ -9,7 +9,7 @@ */ public final class HealthModelsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_ListBySubscription.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_ListBySubscription.json */ /** * Sample code: HealthModels_ListBySubscription. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsUpdateSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsUpdateSamples.java index 209d15c79c1f..f924dd6d0369 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsUpdateSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class HealthModelsUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/HealthModels_Update.json + * x-ms-original-file: 2026-09-01-preview/HealthModels_Update.json */ /** * Sample code: HealthModels_Update. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/OperationsListSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/OperationsListSamples.java index 3460ed28c543..9eabc02d622d 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/OperationsListSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Operations_List.json + * x-ms-original-file: 2026-09-01-preview/Operations_List.json */ /** * Sample code: Operations_List. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsCreateOrUpdateSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsCreateOrUpdateSamples.java index c275ac25919f..62d011b21d3a 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsCreateOrUpdateSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class RelationshipsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/Relationships_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/Relationships_CreateOrUpdate.json */ /** * Sample code: Relationships_CreateOrUpdate. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsDeleteSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsDeleteSamples.java index b5b0ce0d0a46..3dc169b3fcf7 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsDeleteSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RelationshipsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/Relationships_Delete.json + * x-ms-original-file: 2026-09-01-preview/Relationships_Delete.json */ /** * Sample code: Relationships_Delete. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsGetSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsGetSamples.java index aa22e44ef604..30a6b020ff3d 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsGetSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RelationshipsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Relationships_Get.json + * x-ms-original-file: 2026-09-01-preview/Relationships_Get.json */ /** * Sample code: Relationships_Get. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsListByHealthModelSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsListByHealthModelSamples.java index 4f54d0550829..7e04c1038d83 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsListByHealthModelSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsListByHealthModelSamples.java @@ -9,7 +9,7 @@ */ public final class RelationshipsListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/Relationships_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/Relationships_ListByHealthModel.json */ /** * Sample code: Relationships_ListByHealthModel. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsCreateOrUpdateSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsCreateOrUpdateSamples.java index f9d680f474d9..83de1549cee5 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsCreateOrUpdateSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsCreateOrUpdateSamples.java @@ -6,7 +6,6 @@ import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.ResourceMetricSignalDefinitionProperties; @@ -20,7 +19,7 @@ */ public final class SignalDefinitionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/SignalDefinitions_CreateOrUpdate.json + * x-ms-original-file: 2026-09-01-preview/SignalDefinitions_CreateOrUpdate.json */ /** * Sample code: SignalDefinitions_CreateOrUpdate. @@ -40,8 +39,7 @@ public final class SignalDefinitionsCreateOrUpdateSamples { .withDegradedRule( new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN).withThreshold(70.0D)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H))) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))) .withMetricNamespace("Microsoft.Sql/servers/databases") .withMetricName("cpu_percent") .withTimeGrain("PT5M") diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsDeleteSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsDeleteSamples.java index 74cf523a4d90..53402218559e 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsDeleteSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SignalDefinitionsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/SignalDefinitions_Delete.json + * x-ms-original-file: 2026-09-01-preview/SignalDefinitions_Delete.json */ /** * Sample code: SignalDefinitions_Delete. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsGetSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsGetSamples.java index 9a61c4668ee1..5bd51c898019 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsGetSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class SignalDefinitionsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/SignalDefinitions_Get.json + * x-ms-original-file: 2026-09-01-preview/SignalDefinitions_Get.json */ /** * Sample code: SignalDefinitions_Get. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsListByHealthModelSamples.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsListByHealthModelSamples.java index 4138b7b81261..16969d6bdaae 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsListByHealthModelSamples.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/samples/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsListByHealthModelSamples.java @@ -9,7 +9,7 @@ */ public final class SignalDefinitionsListByHealthModelSamples { /* - * x-ms-original-file: 2026-05-01-preview/SignalDefinitions_ListByHealthModel.json + * x-ms-original-file: 2026-09-01-preview/SignalDefinitions_ListByHealthModel.json */ /** * Sample code: SignalDefinitions_ListByHealthModel. diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AddDataAnnotationRequestTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AddDataAnnotationRequestTests.java index 455c31de79d1..52a3aeefe8f1 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AddDataAnnotationRequestTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AddDataAnnotationRequestTests.java @@ -14,21 +14,21 @@ public final class AddDataAnnotationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AddDataAnnotationRequest model = BinaryData.fromString( - "{\"annotationDetails\":{\"sspuunnoxyhkx\":\"dfc\",\"dao\":\"qddrihpfhoqcaae\",\"xkzb\":\"djvlpj\",\"ncj\":\"msgeivsiykzk\"},\"description\":\"onbzoggculapzwy\"}") + "{\"annotationDetails\":{\"ulfgslqu\":\"e\",\"pjuohminyfl\":\"kwdlenrdsutujba\",\"w\":\"orwmduvwpklv\",\"epn\":\"ygdxpgpqchis\"},\"description\":\"jcrxgibbdaxcon\"}") .toObject(AddDataAnnotationRequest.class); - Assertions.assertEquals("dfc", model.annotationDetails().get("sspuunnoxyhkx")); - Assertions.assertEquals("onbzoggculapzwy", model.description()); + Assertions.assertEquals("e", model.annotationDetails().get("ulfgslqu")); + Assertions.assertEquals("jcrxgibbdaxcon", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AddDataAnnotationRequest model = new AddDataAnnotationRequest() .withAnnotationDetails( - mapOf("sspuunnoxyhkx", "dfc", "dao", "qddrihpfhoqcaae", "xkzb", "djvlpj", "ncj", "msgeivsiykzk")) - .withDescription("onbzoggculapzwy"); + mapOf("ulfgslqu", "e", "pjuohminyfl", "kwdlenrdsutujba", "w", "orwmduvwpklv", "epn", "ygdxpgpqchis")) + .withDescription("jcrxgibbdaxcon"); model = BinaryData.fromObject(model).toObject(AddDataAnnotationRequest.class); - Assertions.assertEquals("dfc", model.annotationDetails().get("sspuunnoxyhkx")); - Assertions.assertEquals("onbzoggculapzwy", model.description()); + Assertions.assertEquals("e", model.annotationDetails().get("ulfgslqu")); + Assertions.assertEquals("jcrxgibbdaxcon", model.description()); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AlertConfigurationTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AlertConfigurationTests.java index fac745df67e6..71f7169bdd83 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AlertConfigurationTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AlertConfigurationTests.java @@ -14,21 +14,21 @@ public final class AlertConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AlertConfiguration model = BinaryData.fromString( - "{\"severity\":\"Sev0\",\"description\":\"zejntps\",\"actionGroupIds\":[\"ioilqukrydxtq\",\"ieoxorggufhyaomt\"]}") + "{\"severity\":\"Sev1\",\"description\":\"sgogczhonnxk\",\"actionGroupIds\":[\"nyhmossxkkgthr\",\"gh\",\"jbdhqxvc\"]}") .toObject(AlertConfiguration.class); - Assertions.assertEquals(AlertSeverity.SEV0, model.severity()); - Assertions.assertEquals("zejntps", model.description()); - Assertions.assertEquals("ioilqukrydxtq", model.actionGroupIds().get(0)); + Assertions.assertEquals(AlertSeverity.SEV1, model.severity()); + Assertions.assertEquals("sgogczhonnxk", model.description()); + Assertions.assertEquals("nyhmossxkkgthr", model.actionGroupIds().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AlertConfiguration model = new AlertConfiguration().withSeverity(AlertSeverity.SEV0) - .withDescription("zejntps") - .withActionGroupIds(Arrays.asList("ioilqukrydxtq", "ieoxorggufhyaomt")); + AlertConfiguration model = new AlertConfiguration().withSeverity(AlertSeverity.SEV1) + .withDescription("sgogczhonnxk") + .withActionGroupIds(Arrays.asList("nyhmossxkkgthr", "gh", "jbdhqxvc")); model = BinaryData.fromObject(model).toObject(AlertConfiguration.class); - Assertions.assertEquals(AlertSeverity.SEV0, model.severity()); - Assertions.assertEquals("zejntps", model.description()); - Assertions.assertEquals("ioilqukrydxtq", model.actionGroupIds().get(0)); + Assertions.assertEquals(AlertSeverity.SEV1, model.severity()); + Assertions.assertEquals("sgogczhonnxk", model.description()); + Assertions.assertEquals("nyhmossxkkgthr", model.actionGroupIds().get(0)); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ApplicationInsightsTopologySpecificationTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ApplicationInsightsTopologySpecificationTests.java index ba4bfa2bb8f2..a44d80dc2c47 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ApplicationInsightsTopologySpecificationTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ApplicationInsightsTopologySpecificationTests.java @@ -12,16 +12,16 @@ public final class ApplicationInsightsTopologySpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationInsightsTopologySpecification model = BinaryData - .fromString("{\"kind\":\"ApplicationInsightsTopology\",\"applicationInsightsResourceId\":\"ttymsjny\"}") + .fromString("{\"kind\":\"ApplicationInsightsTopology\",\"applicationInsightsResourceId\":\"nzeyqxtjj\"}") .toObject(ApplicationInsightsTopologySpecification.class); - Assertions.assertEquals("ttymsjny", model.applicationInsightsResourceId()); + Assertions.assertEquals("nzeyqxtjj", model.applicationInsightsResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ApplicationInsightsTopologySpecification model - = new ApplicationInsightsTopologySpecification().withApplicationInsightsResourceId("ttymsjny"); + = new ApplicationInsightsTopologySpecification().withApplicationInsightsResourceId("nzeyqxtjj"); model = BinaryData.fromObject(model).toObject(ApplicationInsightsTopologySpecification.class); - Assertions.assertEquals("ttymsjny", model.applicationInsightsResourceId()); + Assertions.assertEquals("nzeyqxtjj", model.applicationInsightsResourceId()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingInnerTests.java index 359c521879ba..217f510f35c0 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingInnerTests.java @@ -13,16 +13,16 @@ public final class AuthenticationSettingInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AuthenticationSettingInner model = BinaryData.fromString( - "{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Creating\",\"displayName\":\"obpxjmflbvvn\"},\"id\":\"rkcciwwzjuqk\",\"name\":\"rsa\",\"type\":\"iwkuofos\"}") + "{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Failed\",\"displayName\":\"pxjmflbvvnchr\"},\"id\":\"ciwwzjuqkhr\",\"name\":\"ajiwkuo\",\"type\":\"oskg\"}") .toObject(AuthenticationSettingInner.class); - Assertions.assertEquals("obpxjmflbvvn", model.properties().displayName()); + Assertions.assertEquals("pxjmflbvvnchr", model.properties().displayName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AuthenticationSettingInner model = new AuthenticationSettingInner() - .withProperties(new AuthenticationSettingProperties().withDisplayName("obpxjmflbvvn")); + .withProperties(new AuthenticationSettingProperties().withDisplayName("pxjmflbvvnchr")); model = BinaryData.fromObject(model).toObject(AuthenticationSettingInner.class); - Assertions.assertEquals("obpxjmflbvvn", model.properties().displayName()); + Assertions.assertEquals("pxjmflbvvnchr", model.properties().displayName()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingListResultTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingListResultTests.java index 041785d6091e..1347e5ef9b87 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingListResultTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingListResultTests.java @@ -12,9 +12,9 @@ public final class AuthenticationSettingListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AuthenticationSettingListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Failed\",\"displayName\":\"npc\"},\"id\":\"ocohslkevleg\",\"name\":\"zfbuhf\",\"type\":\"vfaxkffeiith\"}],\"nextLink\":\"m\"}") + "{\"value\":[{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Failed\",\"displayName\":\"cohslkev\"},\"id\":\"ggzfbu\",\"name\":\"fmvfaxkffeiit\",\"type\":\"lvmezyvshxmzsbbz\"},{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Deleting\",\"displayName\":\"rxwburv\"},\"id\":\"xjnspy\",\"name\":\"ptkoenkoukn\",\"type\":\"udwtiukbl\"},{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Succeeded\",\"displayName\":\"ocipazyxoeg\"},\"id\":\"g\",\"name\":\"npiucgygevqznty\",\"type\":\"mrbpizcdrqj\"}],\"nextLink\":\"pyd\"}") .toObject(AuthenticationSettingListResult.class); - Assertions.assertEquals("npc", model.value().get(0).properties().displayName()); - Assertions.assertEquals("m", model.nextLink()); + Assertions.assertEquals("cohslkev", model.value().get(0).properties().displayName()); + Assertions.assertEquals("pyd", model.nextLink()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingPropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingPropertiesTests.java index 50ac89df65bf..bbe0427ba567 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingPropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingPropertiesTests.java @@ -12,15 +12,15 @@ public final class AuthenticationSettingPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AuthenticationSettingProperties model = BinaryData.fromString( - "{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Creating\",\"displayName\":\"auu\"}") + "{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Failed\",\"displayName\":\"uimjmvx\"}") .toObject(AuthenticationSettingProperties.class); - Assertions.assertEquals("auu", model.displayName()); + Assertions.assertEquals("uimjmvx", model.displayName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AuthenticationSettingProperties model = new AuthenticationSettingProperties().withDisplayName("auu"); + AuthenticationSettingProperties model = new AuthenticationSettingProperties().withDisplayName("uimjmvx"); model = BinaryData.fromObject(model).toObject(AuthenticationSettingProperties.class); - Assertions.assertEquals("auu", model.displayName()); + Assertions.assertEquals("uimjmvx", model.displayName()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsCreateOrUpdateMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsCreateOrUpdateMockTests.java index 572836a7b478..4f06a3a2a268 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsCreateOrUpdateMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsCreateOrUpdateMockTests.java @@ -22,7 +22,7 @@ public final class AuthenticationSettingsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Succeeded\",\"displayName\":\"cfhmlrqryxyn\"},\"id\":\"zrdpsovwxznptgoe\",\"name\":\"ybbabpfhvfsl\",\"type\":\"vntjlrigjk\"}"; + = "{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Succeeded\",\"displayName\":\"umvq\"},\"id\":\"lihrraiouaubr\",\"name\":\"tloqxfuojrn\",\"type\":\"iflrzpasccbiu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AuthenticationSetting response = manager.authenticationSettings() - .define("waz") - .withExistingHealthmodel("oguyaip", "dsdaultxijjumf") - .withProperties(new AuthenticationSettingProperties().withDisplayName("cjngzqdqxtbjwgny")) + .define("ijpstte") + .withExistingHealthmodel("xkjibnxmy", "uxswqrntvl") + .withProperties(new AuthenticationSettingProperties().withDisplayName("wcyyufmhruncu")) .create(); - Assertions.assertEquals("cfhmlrqryxyn", response.properties().displayName()); + Assertions.assertEquals("umvq", response.properties().displayName()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsGetWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsGetWithResponseMockTests.java index 20a31fe84fef..feeccbd63832 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsGetWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class AuthenticationSettingsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Failed\",\"displayName\":\"okayzejnhlbkp\"},\"id\":\"pcpil\",\"name\":\"hahzvechndbnwi\",\"type\":\"hol\"}"; + = "{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Failed\",\"displayName\":\"forobwjlv\"},\"id\":\"bfhfovvacqp\",\"name\":\"tuodxeszabbelaw\",\"type\":\"muaslzkw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AuthenticationSetting response = manager.authenticationSettings() - .getWithResponse("utmzlbiojlvfhrbb", "neqvcwwyyurmo", "hppr", com.azure.core.util.Context.NONE) + .getWithResponse("hmkdasvfl", "hbxcu", "chxgs", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("okayzejnhlbkp", response.properties().displayName()); + Assertions.assertEquals("forobwjlv", response.properties().displayName()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsListByHealthModelMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsListByHealthModelMockTests.java index 4387ed72cd1f..5b7b61eaba02 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsListByHealthModelMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AuthenticationSettingsListByHealthModelMockTests.java @@ -22,7 +22,7 @@ public final class AuthenticationSettingsListByHealthModelMockTests { @Test public void testListByHealthModel() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Succeeded\",\"displayName\":\"fxapjwogqqnobpu\"},\"id\":\"dabtqwp\",\"name\":\"yawbzasqbu\",\"type\":\"ljgkyex\"}]}"; + = "{\"value\":[{\"properties\":{\"authenticationKind\":\"AuthenticationSettingProperties\",\"provisioningState\":\"Creating\",\"displayName\":\"urut\"},\"id\":\"exxwlalniexzsrz\",\"name\":\"gepqtybbwwpg\",\"type\":\"akchzyvlixqnrk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,8 +32,8 @@ public void testListByHealthModel() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.authenticationSettings() - .listByHealthModel("wjwiuub", "efqsfapaqtferrqw", com.azure.core.util.Context.NONE); + .listByHealthModel("rwoycqucwyh", "hnomdrkywuh", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fxapjwogqqnobpu", response.iterator().next().properties().displayName()); + Assertions.assertEquals("urut", response.iterator().next().properties().displayName()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureMonitorWorkspaceSignalsTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureMonitorWorkspaceSignalsTests.java index 6b3987bd9e53..4827dfd7a778 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureMonitorWorkspaceSignalsTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureMonitorWorkspaceSignalsTests.java @@ -8,7 +8,6 @@ import com.azure.resourcemanager.cloudhealth.models.AzureMonitorWorkspaceSignals; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; @@ -20,129 +19,85 @@ public final class AzureMonitorWorkspaceSignalsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureMonitorWorkspaceSignals model = BinaryData.fromString( - "{\"authenticationSetting\":\"rh\",\"azureMonitorWorkspaceResourceId\":\"pna\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"ccbdre\",\"timeGrain\":\"hcexdrrvqa\",\"displayName\":\"kghtpwijnh\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"f\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":28.42403251532707,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":13.079270742950955,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT1H\"}},\"name\":\"pyostronzmyhgfi\",\"signalDefinitionName\":\"sxkm\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":74.0204058678209,\"reportedAt\":\"2021-11-05T06:26:25Z\",\"error\":\"afxtsgum\",\"additionalContext\":\"glikkxwslolb\"}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"vuzlm\",\"timeGrain\":\"elfk\",\"displayName\":\"plcrpwjxeznoig\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"w\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":66.38094060324588,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":50.0663512312123,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"sxtta\",\"signalDefinitionName\":\"zxnfaaz\",\"status\":{\"healthState\":\"Degraded\",\"value\":93.86733787888144,\"reportedAt\":\"2021-02-11T22:04:16Z\",\"error\":\"j\",\"additionalContext\":\"wuenvr\"}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"yo\",\"timeGrain\":\"ibreb\",\"displayName\":\"aysjkixqtnqttez\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"fiakpjpqqm\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":23.946302596011293,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":22.549791289135957,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"uyqncygupkvipmd\",\"signalDefinitionName\":\"wx\",\"status\":{\"healthState\":\"Degraded\",\"value\":38.699212575884246,\"reportedAt\":\"2021-01-30T15:07:19Z\",\"error\":\"otxhojujby\",\"additionalContext\":\"lmcuvhixb\"}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"yfwnylr\",\"timeGrain\":\"o\",\"displayName\":\"ttpkiwkkbnujrywv\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"fpncurdo\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":76.26392947625872,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":66.52449650961654,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT5M\"}},\"name\":\"nfdn\",\"signalDefinitionName\":\"jchrdgoihxumw\",\"status\":{\"healthState\":\"Unknown\",\"value\":7.97256397620939,\"reportedAt\":\"2021-05-20T02:25:29Z\",\"error\":\"dfdlwggyts\",\"additionalContext\":\"tov\"}}]}") + "{\"authenticationSetting\":\"inrvgoupmfi\",\"azureMonitorWorkspaceResourceId\":\"bfggjioolvr\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"tkkgllqwjy\",\"timeGrain\":\"jayvblmhv\",\"displayName\":\"uhbxvvy\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"pbyrqufegxu\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":66.30277474892185,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"Dynamic\",\"threshold\":3.987292954175503,\"sensitivity\":\"Low\"}},\"name\":\"gitvg\",\"signalDefinitionName\":\"hrixkwmy\",\"status\":{\"healthState\":\"Deleted\",\"value\":75.66990602017583,\"reportedAt\":\"2021-04-24T10:53:35Z\",\"error\":\"pna\",\"additionalContext\":\"exccbdreaxhcexd\"}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"vqahqkghtpwi\",\"timeGrain\":\"hyjsvfycx\",\"displayName\":\"fvoow\",\"refreshInterval\":\"PT5M\",\"dataUnit\":\"t\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":2.3739672154217684,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":15.525265144439715,\"sensitivity\":\"Low\"}},\"name\":\"hgfipnsxkmcw\",\"signalDefinitionName\":\"krrjrea\",\"status\":{\"healthState\":\"Degraded\",\"value\":17.39746168067334,\"reportedAt\":\"2021-05-28T06:32:59Z\",\"error\":\"lik\",\"additionalContext\":\"wslolbqp\"}}]}") .toObject(AzureMonitorWorkspaceSignals.class); - Assertions.assertEquals("rh", model.authenticationSetting()); - Assertions.assertEquals("pna", model.azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("pyostronzmyhgfi", model.signals().get(0).name()); - Assertions.assertEquals("sxkm", model.signals().get(0).signalDefinitionName()); - Assertions.assertEquals("ccbdre", model.signals().get(0).queryText()); - Assertions.assertEquals("hcexdrrvqa", model.signals().get(0).timeGrain()); - Assertions.assertEquals("kghtpwijnh", model.signals().get(0).displayName()); + Assertions.assertEquals("inrvgoupmfi", model.authenticationSetting()); + Assertions.assertEquals("bfggjioolvr", model.azureMonitorWorkspaceResourceId()); + Assertions.assertEquals("gitvg", model.signals().get(0).name()); + Assertions.assertEquals("hrixkwmy", model.signals().get(0).signalDefinitionName()); + Assertions.assertEquals("tkkgllqwjy", model.signals().get(0).queryText()); + Assertions.assertEquals("jayvblmhv", model.signals().get(0).timeGrain()); + Assertions.assertEquals("uhbxvvy", model.signals().get(0).displayName()); Assertions.assertEquals(RefreshInterval.PT1M, model.signals().get(0).refreshInterval()); - Assertions.assertEquals("f", model.signals().get(0).dataUnit()); + Assertions.assertEquals("pbyrqufegxu", model.signals().get(0).dataUnit()); Assertions.assertEquals(SignalOperator.EQUAL, model.signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(28.42403251532707D, + Assertions.assertEquals(66.30277474892185D, model.signals().get(0).evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.EQUAL, + Assertions.assertEquals(SignalOperator.DYNAMIC, model.signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(13.079270742950955D, + Assertions.assertEquals(3.987292954175503D, model.signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureMonitorWorkspaceSignals model = new AzureMonitorWorkspaceSignals().withAuthenticationSetting("rh") - .withAzureMonitorWorkspaceResourceId("pna") + AzureMonitorWorkspaceSignals model = new AzureMonitorWorkspaceSignals().withAuthenticationSetting("inrvgoupmfi") + .withAzureMonitorWorkspaceResourceId("bfggjioolvr") .withSignals(Arrays.asList( - new PrometheusMetricsSignal().withName("pyostronzmyhgfi") - .withSignalDefinitionName("sxkm") - .withQueryText("ccbdre") - .withTimeGrain("hcexdrrvqa") - .withDisplayName("kghtpwijnh") + new PrometheusMetricsSignal().withName("gitvg") + .withSignalDefinitionName("hrixkwmy") + .withQueryText("tkkgllqwjy") + .withTimeGrain("jayvblmhv") + .withDisplayName("uhbxvvy") .withRefreshInterval(RefreshInterval.PT1M) - .withDataUnit("f") + .withDataUnit("pbyrqufegxu") .withEvaluationRules(new EvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) - .withThreshold(28.42403251532707D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) - .withThreshold(13.079270742950955D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT1H))), - new PrometheusMetricsSignal().withName("sxtta") - .withSignalDefinitionName("zxnfaaz") - .withQueryText("vuzlm") - .withTimeGrain("elfk") - .withDisplayName("plcrpwjxeznoig") - .withRefreshInterval(RefreshInterval.PT10M) - .withDataUnit("w") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(66.38094060324588D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT15M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) - .withThreshold(50.0663512312123D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT30M))), - new PrometheusMetricsSignal().withName("uyqncygupkvipmd") - .withSignalDefinitionName("wx") - .withQueryText("yo") - .withTimeGrain("ibreb") - .withDisplayName("aysjkixqtnqttez") - .withRefreshInterval(RefreshInterval.PT10M) - .withDataUnit("fiakpjpqqm") + .withThreshold(66.30277474892185D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) + .withThreshold(3.987292954175503D) + .withSensitivity(DynamicThresholdSensitivity.LOW))), + new PrometheusMetricsSignal().withName("hgfipnsxkmcw") + .withSignalDefinitionName("krrjrea") + .withQueryText("vqahqkghtpwi") + .withTimeGrain("hyjsvfycx") + .withDisplayName("fvoow") + .withRefreshInterval(RefreshInterval.PT5M) + .withDataUnit("t") .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) - .withThreshold(23.946302596011293D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(22.549791289135957D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT30M))), - new PrometheusMetricsSignal().withName("nfdn") - .withSignalDefinitionName("jchrdgoihxumw") - .withQueryText("yfwnylr") - .withTimeGrain("o") - .withDisplayName("ttpkiwkkbnujrywv") - .withRefreshInterval(RefreshInterval.PT2H) - .withDataUnit("fpncurdo") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(76.26392947625872D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT5M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(66.52449650961654D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT5M))))); + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) + .withThreshold(2.3739672154217684D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) + .withThreshold(15.525265144439715D) + .withSensitivity(DynamicThresholdSensitivity.LOW))))); model = BinaryData.fromObject(model).toObject(AzureMonitorWorkspaceSignals.class); - Assertions.assertEquals("rh", model.authenticationSetting()); - Assertions.assertEquals("pna", model.azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("pyostronzmyhgfi", model.signals().get(0).name()); - Assertions.assertEquals("sxkm", model.signals().get(0).signalDefinitionName()); - Assertions.assertEquals("ccbdre", model.signals().get(0).queryText()); - Assertions.assertEquals("hcexdrrvqa", model.signals().get(0).timeGrain()); - Assertions.assertEquals("kghtpwijnh", model.signals().get(0).displayName()); + Assertions.assertEquals("inrvgoupmfi", model.authenticationSetting()); + Assertions.assertEquals("bfggjioolvr", model.azureMonitorWorkspaceResourceId()); + Assertions.assertEquals("gitvg", model.signals().get(0).name()); + Assertions.assertEquals("hrixkwmy", model.signals().get(0).signalDefinitionName()); + Assertions.assertEquals("tkkgllqwjy", model.signals().get(0).queryText()); + Assertions.assertEquals("jayvblmhv", model.signals().get(0).timeGrain()); + Assertions.assertEquals("uhbxvvy", model.signals().get(0).displayName()); Assertions.assertEquals(RefreshInterval.PT1M, model.signals().get(0).refreshInterval()); - Assertions.assertEquals("f", model.signals().get(0).dataUnit()); + Assertions.assertEquals("pbyrqufegxu", model.signals().get(0).dataUnit()); Assertions.assertEquals(SignalOperator.EQUAL, model.signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(28.42403251532707D, + Assertions.assertEquals(66.30277474892185D, model.signals().get(0).evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.EQUAL, + Assertions.assertEquals(SignalOperator.DYNAMIC, model.signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(13.079270742950955D, + Assertions.assertEquals(3.987292954175503D, model.signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceHealthSignalStatusTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceHealthSignalStatusTests.java index 7b271d07a2b0..ccd51031fc33 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceHealthSignalStatusTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceHealthSignalStatusTests.java @@ -12,8 +12,8 @@ public final class AzureResourceHealthSignalStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureResourceHealthSignalStatus model = BinaryData.fromString( - "{\"healthState\":\"Unknown\",\"value\":46.859483085827016,\"reportedAt\":\"2021-10-17T10:06:59Z\",\"error\":\"kyhkobopg\",\"additionalContext\":\"dkow\",\"availabilityState\":\"Available\",\"category\":\"Planned\",\"detailedStatus\":\"rfkbwccsnjvcdwxl\",\"summary\":\"ekftnkhtj\",\"reasonType\":\"Planned\",\"reasonChronicity\":\"Persistent\",\"availabilityReportedTime\":\"2021-09-11T08:24:22Z\"}") + "{\"healthState\":\"Unknown\",\"value\":22.000838494601293,\"reportedAt\":\"2021-09-04T02:46:50Z\",\"error\":\"xrjqcirgzpfrlazs\",\"additionalContext\":\"nwoiind\",\"availabilityState\":\"Available\",\"category\":\"Unplanned\",\"detailedStatus\":\"lwbtlhf\",\"summary\":\"jcdh\",\"reasonType\":\"Planned\",\"reasonChronicity\":\"Transient\",\"availabilityReportedTime\":\"2021-05-07T17:12:41Z\"}") .toObject(AzureResourceHealthSignalStatus.class); - Assertions.assertEquals("dkow", model.additionalContext()); + Assertions.assertEquals("nwoiind", model.additionalContext()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceHealthSignalTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceHealthSignalTests.java index fb2c1a3da4f4..94ecb0a8c441 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceHealthSignalTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceHealthSignalTests.java @@ -13,7 +13,7 @@ public final class AzureResourceHealthSignalTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureResourceHealthSignal model = BinaryData.fromString( - "{\"enabled\":\"Enabled\",\"signalName\":\"cnpwzcjaesgvvscc\",\"status\":{\"healthState\":\"Degraded\",\"value\":31.828757984570732,\"reportedAt\":\"2021-04-26T06:49:27Z\",\"error\":\"gzlvdnkfxu\",\"additionalContext\":\"mdwzrmuhapfcqdps\",\"availabilityState\":\"Degraded\",\"category\":\"Unplanned\",\"detailedStatus\":\"vuoy\",\"summary\":\"ccelve\",\"reasonType\":\"Unplanned\",\"reasonChronicity\":\"Transient\",\"availabilityReportedTime\":\"2021-01-24T01:48:53Z\"}}") + "{\"enabled\":\"Enabled\",\"signalName\":\"smwutwbdsrezpd\",\"status\":{\"healthState\":\"Unknown\",\"value\":91.36744539943747,\"reportedAt\":\"2021-03-08T01:01:24Z\",\"error\":\"d\",\"additionalContext\":\"t\",\"availabilityState\":\"Available\",\"category\":\"Unplanned\",\"detailedStatus\":\"cgpik\",\"summary\":\"imejzanl\",\"reasonType\":\"Unplanned\",\"reasonChronicity\":\"Persistent\",\"availabilityReportedTime\":\"2021-01-19T02:13:13Z\"}}") .toObject(AzureResourceHealthSignal.class); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, model.enabled()); } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceSignalTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceSignalTests.java index 705b8f1e581f..9aa62abcb437 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceSignalTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceSignalTests.java @@ -8,7 +8,6 @@ import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignal; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; @@ -19,69 +18,65 @@ public final class AzureResourceSignalTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureResourceSignal model = BinaryData.fromString( - "{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"dl\",\"metricName\":\"shfwpracstwity\",\"timeGrain\":\"evxccedcp\",\"aggregationType\":\"Count\",\"dimensionFilter\":\"odn\",\"displayName\":\"xltjcvnhltiu\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"avvwxqi\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Dynamic\",\"threshold\":2.051387936076099,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":87.18576099809903,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT5M\"}},\"name\":\"bvfvpdbod\",\"signalDefinitionName\":\"izsjqlhkrr\",\"status\":{\"healthState\":\"Unknown\",\"value\":4.204645341426527,\"reportedAt\":\"2021-04-30T03:11:08Z\",\"error\":\"kghv\",\"additionalContext\":\"dzwmkrefajpj\"}}") + "{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"iefozbhdmsml\",\"metricName\":\"qhoftrmaequiah\",\"timeGrain\":\"cslfaoqzpiyylha\",\"aggregationType\":\"Average\",\"dimensionFilter\":\"hc\",\"displayName\":\"ph\",\"refreshInterval\":\"PT1H\",\"dataUnit\":\"witqscywuggwoluh\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":92.50669296591074,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":24.701871909740227,\"sensitivity\":\"Medium\"}},\"name\":\"dwmsweypqwd\",\"signalDefinitionName\":\"gicccnxqhuex\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":84.31336767298674,\"reportedAt\":\"2021-09-25T18:06:15Z\",\"error\":\"ywemhzrn\",\"additionalContext\":\"dtclusiypb\"}}") .toObject(AzureResourceSignal.class); - Assertions.assertEquals("bvfvpdbod", model.name()); - Assertions.assertEquals("izsjqlhkrr", model.signalDefinitionName()); - Assertions.assertEquals("dl", model.metricNamespace()); - Assertions.assertEquals("shfwpracstwity", model.metricName()); - Assertions.assertEquals("evxccedcp", model.timeGrain()); - Assertions.assertEquals(MetricAggregationType.COUNT, model.aggregationType()); - Assertions.assertEquals("odn", model.dimensionFilter()); - Assertions.assertEquals("xltjcvnhltiu", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT10M, model.refreshInterval()); - Assertions.assertEquals("avvwxqi", model.dataUnit()); - Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(2.051387936076099D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(87.18576099809903D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals("dwmsweypqwd", model.name()); + Assertions.assertEquals("gicccnxqhuex", model.signalDefinitionName()); + Assertions.assertEquals("iefozbhdmsml", model.metricNamespace()); + Assertions.assertEquals("qhoftrmaequiah", model.metricName()); + Assertions.assertEquals("cslfaoqzpiyylha", model.timeGrain()); + Assertions.assertEquals(MetricAggregationType.AVERAGE, model.aggregationType()); + Assertions.assertEquals("hc", model.dimensionFilter()); + Assertions.assertEquals("ph", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT1H, model.refreshInterval()); + Assertions.assertEquals("witqscywuggwoluh", model.dataUnit()); + Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(92.50669296591074D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(24.701871909740227D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.evaluationRules().unhealthyRule().lookBackWindow()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureResourceSignal model = new AzureResourceSignal().withName("bvfvpdbod") - .withSignalDefinitionName("izsjqlhkrr") - .withMetricNamespace("dl") - .withMetricName("shfwpracstwity") - .withTimeGrain("evxccedcp") - .withAggregationType(MetricAggregationType.COUNT) - .withDimensionFilter("odn") - .withDisplayName("xltjcvnhltiu") - .withRefreshInterval(RefreshInterval.PT10M) - .withDataUnit("avvwxqi") + AzureResourceSignal model = new AzureResourceSignal().withName("dwmsweypqwd") + .withSignalDefinitionName("gicccnxqhuex") + .withMetricNamespace("iefozbhdmsml") + .withMetricName("qhoftrmaequiah") + .withTimeGrain("cslfaoqzpiyylha") + .withAggregationType(MetricAggregationType.AVERAGE) + .withDimensionFilter("hc") + .withDisplayName("ph") + .withRefreshInterval(RefreshInterval.PT1H) + .withDataUnit("witqscywuggwoluh") .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) - .withThreshold(2.051387936076099D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT1H)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(87.18576099809903D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT5M))); + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) + .withThreshold(92.50669296591074D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) + .withThreshold(24.701871909740227D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))); model = BinaryData.fromObject(model).toObject(AzureResourceSignal.class); - Assertions.assertEquals("bvfvpdbod", model.name()); - Assertions.assertEquals("izsjqlhkrr", model.signalDefinitionName()); - Assertions.assertEquals("dl", model.metricNamespace()); - Assertions.assertEquals("shfwpracstwity", model.metricName()); - Assertions.assertEquals("evxccedcp", model.timeGrain()); - Assertions.assertEquals(MetricAggregationType.COUNT, model.aggregationType()); - Assertions.assertEquals("odn", model.dimensionFilter()); - Assertions.assertEquals("xltjcvnhltiu", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT10M, model.refreshInterval()); - Assertions.assertEquals("avvwxqi", model.dataUnit()); - Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(2.051387936076099D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(87.18576099809903D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals("dwmsweypqwd", model.name()); + Assertions.assertEquals("gicccnxqhuex", model.signalDefinitionName()); + Assertions.assertEquals("iefozbhdmsml", model.metricNamespace()); + Assertions.assertEquals("qhoftrmaequiah", model.metricName()); + Assertions.assertEquals("cslfaoqzpiyylha", model.timeGrain()); + Assertions.assertEquals(MetricAggregationType.AVERAGE, model.aggregationType()); + Assertions.assertEquals("hc", model.dimensionFilter()); + Assertions.assertEquals("ph", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT1H, model.refreshInterval()); + Assertions.assertEquals("witqscywuggwoluh", model.dataUnit()); + Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(92.50669296591074D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(24.701871909740227D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.evaluationRules().unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceSignalsTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceSignalsTests.java index f76219bb761e..2a18abe4925f 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceSignalsTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/AzureResourceSignalsTests.java @@ -10,7 +10,6 @@ import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignals; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior; @@ -23,117 +22,87 @@ public final class AzureResourceSignalsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureResourceSignals model = BinaryData.fromString( - "{\"authenticationSetting\":\"exztvbtq\",\"azureResourceId\":\"sfraoyzko\",\"azureResourceKind\":\"tlmngu\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"aldsy\",\"metricName\":\"ximerqfobwyznk\",\"timeGrain\":\"kutwpf\",\"aggregationType\":\"Total\",\"dimensionFilter\":\"m\",\"displayName\":\"skdsnfdsdoakg\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"kkze\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":75.48527180052048,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":66.08187407186776,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"bejdcn\",\"signalDefinitionName\":\"qmoa\",\"status\":{\"healthState\":\"Unknown\",\"value\":60.40279131595702,\"reportedAt\":\"2021-08-21T00:33:47Z\",\"error\":\"dgrtwaenuuzkopbm\",\"additionalContext\":\"rfdwoyu\"}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"ziuiefozbhdm\",\"metricName\":\"l\",\"timeGrain\":\"qhoftrmaequiah\",\"aggregationType\":\"Maximum\",\"dimensionFilter\":\"lfaoqzpiyylhaln\",\"displayName\":\"hc\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"kaivwit\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":43.61813458088643,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":78.55812960925392,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT1H\"}},\"name\":\"hairsbrgzdwms\",\"signalDefinitionName\":\"ypqwdxggiccc\",\"status\":{\"healthState\":\"Deleted\",\"value\":21.955632140284465,\"reportedAt\":\"2021-09-04T17:42:42Z\",\"error\":\"tlstvlzywem\",\"additionalContext\":\"rncsdtclu\"}}],\"resourceHealth\":{\"enabled\":\"Disabled\",\"signalName\":\"sfgytguslfead\",\"status\":{\"healthState\":\"Deleted\",\"value\":74.60703656129903,\"reportedAt\":\"2021-01-09T07:06:25Z\",\"error\":\"h\",\"additionalContext\":\"sx\",\"availabilityState\":\"Unavailable\",\"category\":\"Planned\",\"detailedStatus\":\"lppvksrpq\",\"summary\":\"jzraehtwdwrf\",\"reasonType\":\"UserInitiated\",\"reasonChronicity\":\"Transient\",\"availabilityReportedTime\":\"2021-04-18T05:55:24Z\"}}}") + "{\"authenticationSetting\":\"ujitcjedftww\",\"azureResourceId\":\"ezkojvdcp\",\"azureResourceKind\":\"oqouicybxarzgszu\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"iqopidoamciod\",\"metricName\":\"haz\",\"timeGrain\":\"hnzbonl\",\"aggregationType\":\"Average\",\"dimensionFilter\":\"egokdwbwhkszzcmr\",\"displayName\":\"xztvbtqgsfraoyzk\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"lmnguxaw\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":97.70570168349758,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":20.69660596617512,\"sensitivity\":\"High\"}},\"name\":\"obwyznkb\",\"signalDefinitionName\":\"utwpfhp\",\"status\":{\"healthState\":\"Healthy\",\"value\":77.13808549685311,\"reportedAt\":\"2021-12-03T14:40:57Z\",\"error\":\"fdsd\",\"additionalContext\":\"kgtdlmkkze\"}}],\"resourceHealth\":{\"enabled\":\"Disabled\",\"signalName\":\"wpusdsttwvogv\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":89.35053284729781,\"reportedAt\":\"2021-10-02T17:25:44Z\",\"error\":\"m\",\"additionalContext\":\"kufgmj\",\"availabilityState\":\"Available\",\"category\":\"Unplanned\",\"detailedStatus\":\"rtwaenuuzko\",\"summary\":\"minrfdw\",\"reasonType\":\"UserInitiated\",\"reasonChronicity\":\"Transient\",\"availabilityReportedTime\":\"2021-07-13T07:26:05Z\"}}}") .toObject(AzureResourceSignals.class); - Assertions.assertEquals("exztvbtq", model.authenticationSetting()); - Assertions.assertEquals("sfraoyzko", model.azureResourceId()); - Assertions.assertEquals("tlmngu", model.azureResourceKind()); - Assertions.assertEquals("bejdcn", model.signals().get(0).name()); - Assertions.assertEquals("qmoa", model.signals().get(0).signalDefinitionName()); - Assertions.assertEquals("aldsy", model.signals().get(0).metricNamespace()); - Assertions.assertEquals("ximerqfobwyznk", model.signals().get(0).metricName()); - Assertions.assertEquals("kutwpf", model.signals().get(0).timeGrain()); - Assertions.assertEquals(MetricAggregationType.TOTAL, model.signals().get(0).aggregationType()); - Assertions.assertEquals("m", model.signals().get(0).dimensionFilter()); - Assertions.assertEquals("skdsnfdsdoakg", model.signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT10M, model.signals().get(0).refreshInterval()); - Assertions.assertEquals("kkze", model.signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, + Assertions.assertEquals("ujitcjedftww", model.authenticationSetting()); + Assertions.assertEquals("ezkojvdcp", model.azureResourceId()); + Assertions.assertEquals("oqouicybxarzgszu", model.azureResourceKind()); + Assertions.assertEquals("obwyznkb", model.signals().get(0).name()); + Assertions.assertEquals("utwpfhp", model.signals().get(0).signalDefinitionName()); + Assertions.assertEquals("iqopidoamciod", model.signals().get(0).metricNamespace()); + Assertions.assertEquals("haz", model.signals().get(0).metricName()); + Assertions.assertEquals("hnzbonl", model.signals().get(0).timeGrain()); + Assertions.assertEquals(MetricAggregationType.AVERAGE, model.signals().get(0).aggregationType()); + Assertions.assertEquals("egokdwbwhkszzcmr", model.signals().get(0).dimensionFilter()); + Assertions.assertEquals("xztvbtqgsfraoyzk", model.signals().get(0).displayName()); + Assertions.assertEquals(RefreshInterval.PT1M, model.signals().get(0).refreshInterval()); + Assertions.assertEquals("lmnguxaw", model.signals().get(0).dataUnit()); + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(75.48527180052048D, + Assertions.assertEquals(97.70570168349758D, model.signals().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - model.signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.EQUAL, + Assertions.assertEquals(SignalOperator.LESS_THAN, model.signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(66.08187407186776D, + Assertions.assertEquals(20.69660596617512D, model.signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - model.signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, model.resourceHealth().enabled()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureResourceSignals model = new AzureResourceSignals().withAuthenticationSetting("exztvbtq") - .withAzureResourceId("sfraoyzko") - .withAzureResourceKind("tlmngu") - .withSignals(Arrays.asList( - new AzureResourceSignal().withName("bejdcn") - .withSignalDefinitionName("qmoa") - .withMetricNamespace("aldsy") - .withMetricName("ximerqfobwyznk") - .withTimeGrain("kutwpf") - .withAggregationType(MetricAggregationType.TOTAL) - .withDimensionFilter("m") - .withDisplayName("skdsnfdsdoakg") - .withRefreshInterval(RefreshInterval.PT10M) - .withDataUnit("kkze") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(75.48527180052048D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT30M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) - .withThreshold(66.08187407186776D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT30M))), - new AzureResourceSignal().withName("hairsbrgzdwms") - .withSignalDefinitionName("ypqwdxggiccc") - .withMetricNamespace("ziuiefozbhdm") - .withMetricName("l") - .withTimeGrain("qhoftrmaequiah") - .withAggregationType(MetricAggregationType.MAXIMUM) - .withDimensionFilter("lfaoqzpiyylhaln") - .withDisplayName("hc") - .withRefreshInterval(RefreshInterval.PT1M) - .withDataUnit("kaivwit") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(43.61813458088643D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT15M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) - .withThreshold(78.55812960925392D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT1H))))) + AzureResourceSignals model = new AzureResourceSignals().withAuthenticationSetting("ujitcjedftww") + .withAzureResourceId("ezkojvdcp") + .withAzureResourceKind("oqouicybxarzgszu") + .withSignals(Arrays.asList(new AzureResourceSignal().withName("obwyznkb") + .withSignalDefinitionName("utwpfhp") + .withMetricNamespace("iqopidoamciod") + .withMetricName("haz") + .withTimeGrain("hnzbonl") + .withAggregationType(MetricAggregationType.AVERAGE) + .withDimensionFilter("egokdwbwhkszzcmr") + .withDisplayName("xztvbtqgsfraoyzk") + .withRefreshInterval(RefreshInterval.PT1M) + .withDataUnit("lmnguxaw") + .withEvaluationRules(new EvaluationRule() + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) + .withThreshold(97.70570168349758D) + .withSensitivity(DynamicThresholdSensitivity.HIGH)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) + .withThreshold(20.69660596617512D) + .withSensitivity(DynamicThresholdSensitivity.HIGH))))) .withResourceHealth( new AzureResourceHealthSignal().withEnabled(ResourceHealthAvailabilityStateSignalBehavior.DISABLED)); model = BinaryData.fromObject(model).toObject(AzureResourceSignals.class); - Assertions.assertEquals("exztvbtq", model.authenticationSetting()); - Assertions.assertEquals("sfraoyzko", model.azureResourceId()); - Assertions.assertEquals("tlmngu", model.azureResourceKind()); - Assertions.assertEquals("bejdcn", model.signals().get(0).name()); - Assertions.assertEquals("qmoa", model.signals().get(0).signalDefinitionName()); - Assertions.assertEquals("aldsy", model.signals().get(0).metricNamespace()); - Assertions.assertEquals("ximerqfobwyznk", model.signals().get(0).metricName()); - Assertions.assertEquals("kutwpf", model.signals().get(0).timeGrain()); - Assertions.assertEquals(MetricAggregationType.TOTAL, model.signals().get(0).aggregationType()); - Assertions.assertEquals("m", model.signals().get(0).dimensionFilter()); - Assertions.assertEquals("skdsnfdsdoakg", model.signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT10M, model.signals().get(0).refreshInterval()); - Assertions.assertEquals("kkze", model.signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, + Assertions.assertEquals("ujitcjedftww", model.authenticationSetting()); + Assertions.assertEquals("ezkojvdcp", model.azureResourceId()); + Assertions.assertEquals("oqouicybxarzgszu", model.azureResourceKind()); + Assertions.assertEquals("obwyznkb", model.signals().get(0).name()); + Assertions.assertEquals("utwpfhp", model.signals().get(0).signalDefinitionName()); + Assertions.assertEquals("iqopidoamciod", model.signals().get(0).metricNamespace()); + Assertions.assertEquals("haz", model.signals().get(0).metricName()); + Assertions.assertEquals("hnzbonl", model.signals().get(0).timeGrain()); + Assertions.assertEquals(MetricAggregationType.AVERAGE, model.signals().get(0).aggregationType()); + Assertions.assertEquals("egokdwbwhkszzcmr", model.signals().get(0).dimensionFilter()); + Assertions.assertEquals("xztvbtqgsfraoyzk", model.signals().get(0).displayName()); + Assertions.assertEquals(RefreshInterval.PT1M, model.signals().get(0).refreshInterval()); + Assertions.assertEquals("lmnguxaw", model.signals().get(0).dataUnit()); + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(75.48527180052048D, + Assertions.assertEquals(97.70570168349758D, model.signals().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - model.signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.EQUAL, + Assertions.assertEquals(SignalOperator.LESS_THAN, model.signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(66.08187407186776D, + Assertions.assertEquals(20.69660596617512D, model.signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - model.signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, model.resourceHealth().enabled()); } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DataAnnotationInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DataAnnotationInnerTests.java index e8e82383f505..89ec9b25634a 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DataAnnotationInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DataAnnotationInnerTests.java @@ -12,9 +12,9 @@ public final class DataAnnotationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataAnnotationInner model = BinaryData.fromString( - "{\"annotationId\":\"gogtqxepnylbf\",\"createdAt\":\"2021-07-07T20:12:10Z\",\"annotationDetails\":{\"vofqzhvfc\":\"yjt\"},\"description\":\"yfm\"}") + "{\"annotationId\":\"zauorsuk\",\"createdAt\":\"2021-02-20T07:01:30Z\",\"annotationDetails\":{\"epzl\":\"qplhlvnu\",\"vmnnrw\":\"phwzsoldweyuqdu\"},\"description\":\"i\"}") .toObject(DataAnnotationInner.class); - Assertions.assertEquals("yjt", model.annotationDetails().get("vofqzhvfc")); - Assertions.assertEquals("yfm", model.description()); + Assertions.assertEquals("qplhlvnu", model.annotationDetails().get("epzl")); + Assertions.assertEquals("i", model.description()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DependenciesSignalGroupV2Tests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DependenciesSignalGroupV2Tests.java index 4c89737d350e..01be3664a450 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DependenciesSignalGroupV2Tests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DependenciesSignalGroupV2Tests.java @@ -5,8 +5,8 @@ package com.azure.resourcemanager.cloudhealth.generated; import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.DependenciesSignalGroupV2; import org.junit.jupiter.api.Assertions; @@ -14,28 +14,27 @@ public final class DependenciesSignalGroupV2Tests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DependenciesSignalGroupV2 model = BinaryData.fromString( - "{\"aggregationType\":\"MaxNotHealthy\",\"degradedThreshold\":50.23650274229857,\"unhealthyThreshold\":72.57790891273328,\"unit\":\"Percentage\",\"ignoreUnknown\":true}") + "{\"aggregationType\":\"WorstOf\",\"degradedThreshold\":14.281569484560308,\"unhealthyThreshold\":42.57483368871174,\"unit\":\"Absolute\",\"ignoreUnknown\":false}") .toObject(DependenciesSignalGroupV2.class); - Assertions.assertEquals(DependenciesAggregationType.MAX_NOT_HEALTHY, model.aggregationType()); - Assertions.assertEquals(50.23650274229857D, model.degradedThreshold()); - Assertions.assertEquals(72.57790891273328D, model.unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.PERCENTAGE, model.unit()); - Assertions.assertTrue(model.ignoreUnknown()); + Assertions.assertEquals(AggregationType.WORST_OF, model.aggregationType()); + Assertions.assertEquals(14.281569484560308D, model.degradedThreshold()); + Assertions.assertEquals(42.57483368871174D, model.unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, model.unit()); + Assertions.assertFalse(model.ignoreUnknown()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DependenciesSignalGroupV2 model - = new DependenciesSignalGroupV2().withAggregationType(DependenciesAggregationType.MAX_NOT_HEALTHY) - .withDegradedThreshold(50.23650274229857D) - .withUnhealthyThreshold(72.57790891273328D) - .withUnit(DependenciesAggregationUnit.PERCENTAGE) - .withIgnoreUnknown(true); + DependenciesSignalGroupV2 model = new DependenciesSignalGroupV2().withAggregationType(AggregationType.WORST_OF) + .withDegradedThreshold(14.281569484560308D) + .withUnhealthyThreshold(42.57483368871174D) + .withUnit(AggregationUnit.ABSOLUTE) + .withIgnoreUnknown(false); model = BinaryData.fromObject(model).toObject(DependenciesSignalGroupV2.class); - Assertions.assertEquals(DependenciesAggregationType.MAX_NOT_HEALTHY, model.aggregationType()); - Assertions.assertEquals(50.23650274229857D, model.degradedThreshold()); - Assertions.assertEquals(72.57790891273328D, model.unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.PERCENTAGE, model.unit()); - Assertions.assertTrue(model.ignoreUnknown()); + Assertions.assertEquals(AggregationType.WORST_OF, model.aggregationType()); + Assertions.assertEquals(14.281569484560308D, model.degradedThreshold()); + Assertions.assertEquals(42.57483368871174D, model.unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, model.unit()); + Assertions.assertFalse(model.ignoreUnknown()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryErrorTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryErrorTests.java index 5de20b5be5b7..036095244323 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryErrorTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryErrorTests.java @@ -11,7 +11,7 @@ public final class DiscoveryErrorTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiscoveryError model - = BinaryData.fromString("{\"message\":\"qdnfwqzdz\",\"context\":[\"la\",\"hnfhqlyvijouwi\"]}") + = BinaryData.fromString("{\"message\":\"zqlqhyc\",\"context\":[\"dggxdbeesmi\",\"knlrariaawiuagy\"]}") .toObject(DiscoveryError.class); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRuleInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRuleInnerTests.java index 83aec9a2a453..c91f6663e0a1 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRuleInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRuleInnerTests.java @@ -17,35 +17,35 @@ public final class DiscoveryRuleInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiscoveryRuleInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"avft\",\"authenticationSetting\":\"uhdqazk\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Enabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"pijrajcivmmghf\",\"context\":[\"wrxgkneuvy\",\"nzqodfvpg\"]},\"entityName\":\"hoxgsgbpf\"},\"id\":\"djtxvzflbq\",\"name\":\"gaqvlgafcqusrd\",\"type\":\"etnwsdtutnw\"}") + "{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"hihfrbbcevqagtlt\",\"authenticationSetting\":\"hlfkqojpy\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Enabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Disabled\",\"error\":{\"message\":\"cnifm\",\"context\":[\"dymbrny\",\"u\"]},\"entityName\":\"prafwgckhoc\"},\"id\":\"d\",\"name\":\"ffwafq\",\"type\":\"oudaspavehhrvk\"}") .toObject(DiscoveryRuleInner.class); - Assertions.assertEquals("avft", model.properties().displayName()); - Assertions.assertEquals("uhdqazk", model.properties().authenticationSetting()); + Assertions.assertEquals("hihfrbbcevqagtlt", model.properties().displayName()); + Assertions.assertEquals("hlfkqojpy", model.properties().authenticationSetting()); Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED, model.properties().discoverRelationships()); Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.ENABLED, model.properties().addRecommendedSignals()); - Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, + Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, model.properties().addResourceHealthSignal()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DiscoveryRuleInner model - = new DiscoveryRuleInner().withProperties(new DiscoveryRuleProperties().withDisplayName("avft") - .withAuthenticationSetting("uhdqazk") + = new DiscoveryRuleInner().withProperties(new DiscoveryRuleProperties().withDisplayName("hihfrbbcevqagtlt") + .withAuthenticationSetting("hlfkqojpy") .withDiscoverRelationships(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED) .withAddRecommendedSignals(DiscoveryRuleRecommendedSignalsBehavior.ENABLED) .withSpecification(new DiscoveryRuleSpecification()) - .withAddResourceHealthSignal(ResourceHealthAvailabilityStateSignalBehavior.ENABLED)); + .withAddResourceHealthSignal(ResourceHealthAvailabilityStateSignalBehavior.DISABLED)); model = BinaryData.fromObject(model).toObject(DiscoveryRuleInner.class); - Assertions.assertEquals("avft", model.properties().displayName()); - Assertions.assertEquals("uhdqazk", model.properties().authenticationSetting()); + Assertions.assertEquals("hihfrbbcevqagtlt", model.properties().displayName()); + Assertions.assertEquals("hlfkqojpy", model.properties().authenticationSetting()); Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED, model.properties().discoverRelationships()); Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.ENABLED, model.properties().addRecommendedSignals()); - Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, + Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, model.properties().addResourceHealthSignal()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRuleListResultTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRuleListResultTests.java index 6899d6bc2e60..e175fe69275b 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRuleListResultTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRuleListResultTests.java @@ -15,16 +15,16 @@ public final class DiscoveryRuleListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiscoveryRuleListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"un\",\"authenticationSetting\":\"ixxrtikvcpw\",\"discoverRelationships\":\"Enabled\",\"addRecommendedSignals\":\"Disabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"ivtsoxfrkenxpm\",\"context\":[\"frpmpdnqqskaw\"]},\"entityName\":\"oqvm\"},\"id\":\"npqfrtqlkzmeg\",\"name\":\"itgvkx\",\"type\":\"zyqdrfegcealzx\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"symoyq\",\"authenticationSetting\":\"lwigdivbkbx\",\"discoverRelationships\":\"Enabled\",\"addRecommendedSignals\":\"Enabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"uwasqvd\",\"context\":[\"y\"]},\"entityName\":\"uxakjsqzhzbezk\"},\"id\":\"msidxasicddyvv\",\"name\":\"skgfmocwahpq\",\"type\":\"atjeaahh\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"akz\",\"authenticationSetting\":\"bbjjidjksyxk\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Enabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"blbjedn\",\"context\":[\"age\",\"aulx\",\"nsmjbnkppxynen\"]},\"entityName\":\"svxeizzgwklnsr\"},\"id\":\"feycxcktp\",\"name\":\"ymerteeammxq\",\"type\":\"ekkkzd\"}],\"nextLink\":\"tkgdojbmxva\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"lyr\",\"authenticationSetting\":\"giagtcojo\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Disabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"nzjvusfzldm\",\"context\":[\"xylfsb\",\"kadpysown\",\"tgkbugrjqctojc\",\"isofieypefojyqd\"]},\"entityName\":\"u\"},\"id\":\"cp\",\"name\":\"cwkhihi\",\"type\":\"lhzdsqtzb\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"wcjhfgmv\",\"authenticationSetting\":\"cact\",\"discoverRelationships\":\"Enabled\",\"addRecommendedSignals\":\"Enabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"yowc\",\"context\":[\"ovekqvgqouwi\",\"zmpjwyiv\",\"ikf\"]},\"entityName\":\"vhrfsphuagrt\"},\"id\":\"kteusqczk\",\"name\":\"yklxubyjaffmmfbl\",\"type\":\"qcuubgqibrta\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"t\",\"authenticationSetting\":\"gdslqxihhrmoo\",\"discoverRelationships\":\"Enabled\",\"addRecommendedSignals\":\"Disabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Disabled\",\"error\":{\"message\":\"pxiutc\",\"context\":[\"zhyrpeto\",\"e\"]},\"entityName\":\"oxslh\"},\"id\":\"hlabrq\",\"name\":\"kkzjcjbtrga\",\"type\":\"hvv\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"jsto\",\"authenticationSetting\":\"beitpkx\",\"discoverRelationships\":\"Enabled\",\"addRecommendedSignals\":\"Enabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"klf\",\"context\":[\"gfcwqmpimaqxzhem\",\"yhohujswtwkozzwc\"]},\"entityName\":\"kb\"},\"id\":\"pfajnjwltlwtjj\",\"name\":\"uktalhsnvkcdmxz\",\"type\":\"poaimlnwiaaomyl\"}],\"nextLink\":\"azul\"}") .toObject(DiscoveryRuleListResult.class); - Assertions.assertEquals("un", model.value().get(0).properties().displayName()); - Assertions.assertEquals("ixxrtikvcpw", model.value().get(0).properties().authenticationSetting()); - Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.ENABLED, + Assertions.assertEquals("lyr", model.value().get(0).properties().displayName()); + Assertions.assertEquals("giagtcojo", model.value().get(0).properties().authenticationSetting()); + Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED, model.value().get(0).properties().discoverRelationships()); Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.DISABLED, model.value().get(0).properties().addRecommendedSignals()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, model.value().get(0).properties().addResourceHealthSignal()); - Assertions.assertEquals("tkgdojbmxva", model.nextLink()); + Assertions.assertEquals("azul", model.nextLink()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulePropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulePropertiesTests.java index 70606a01c414..291dbf22bd88 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulePropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulePropertiesTests.java @@ -16,29 +16,29 @@ public final class DiscoveryRulePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DiscoveryRuleProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Creating\",\"displayName\":\"cvuzhyrmewipmve\",\"authenticationSetting\":\"dxukuqgsjjxundxg\",\"discoverRelationships\":\"Enabled\",\"addRecommendedSignals\":\"Disabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Disabled\",\"error\":{\"message\":\"hzjhf\",\"context\":[\"vvmu\",\"gpmuneqsxvmhfbuz\",\"yihsasbhudypohyu\"]},\"entityName\":\"ms\"}") + "{\"provisioningState\":\"Succeeded\",\"displayName\":\"oz\",\"authenticationSetting\":\"dhcxgkmoy\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Enabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Disabled\",\"error\":{\"message\":\"bhmfdnbz\",\"context\":[\"f\",\"fcjnaeoisrvhmgor\"]},\"entityName\":\"ukiscvwmzhw\"}") .toObject(DiscoveryRuleProperties.class); - Assertions.assertEquals("cvuzhyrmewipmve", model.displayName()); - Assertions.assertEquals("dxukuqgsjjxundxg", model.authenticationSetting()); - Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.ENABLED, model.discoverRelationships()); - Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.DISABLED, model.addRecommendedSignals()); + Assertions.assertEquals("oz", model.displayName()); + Assertions.assertEquals("dhcxgkmoy", model.authenticationSetting()); + Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED, model.discoverRelationships()); + Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.ENABLED, model.addRecommendedSignals()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, model.addResourceHealthSignal()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DiscoveryRuleProperties model = new DiscoveryRuleProperties().withDisplayName("cvuzhyrmewipmve") - .withAuthenticationSetting("dxukuqgsjjxundxg") - .withDiscoverRelationships(DiscoveryRuleRelationshipDiscoveryBehavior.ENABLED) - .withAddRecommendedSignals(DiscoveryRuleRecommendedSignalsBehavior.DISABLED) + DiscoveryRuleProperties model = new DiscoveryRuleProperties().withDisplayName("oz") + .withAuthenticationSetting("dhcxgkmoy") + .withDiscoverRelationships(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED) + .withAddRecommendedSignals(DiscoveryRuleRecommendedSignalsBehavior.ENABLED) .withSpecification(new DiscoveryRuleSpecification()) .withAddResourceHealthSignal(ResourceHealthAvailabilityStateSignalBehavior.DISABLED); model = BinaryData.fromObject(model).toObject(DiscoveryRuleProperties.class); - Assertions.assertEquals("cvuzhyrmewipmve", model.displayName()); - Assertions.assertEquals("dxukuqgsjjxundxg", model.authenticationSetting()); - Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.ENABLED, model.discoverRelationships()); - Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.DISABLED, model.addRecommendedSignals()); + Assertions.assertEquals("oz", model.displayName()); + Assertions.assertEquals("dhcxgkmoy", model.authenticationSetting()); + Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED, model.discoverRelationships()); + Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.ENABLED, model.addRecommendedSignals()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, model.addResourceHealthSignal()); } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesCreateOrUpdateMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesCreateOrUpdateMockTests.java index 04aec9ab41bf..fdee5cce2e8f 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesCreateOrUpdateMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class DiscoveryRulesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"zz\",\"authenticationSetting\":\"yjaf\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Enabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"ynuchlgmltxd\",\"context\":[\"ozusgz\",\"ln\",\"n\",\"jzfpafolpymwamx\"]},\"entityName\":\"zragpg\"},\"id\":\"htvdula\",\"name\":\"vl\",\"type\":\"jchcsrlzknmzla\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"hqvlnnpxybafiqg\",\"authenticationSetting\":\"aarbgjekg\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Disabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Disabled\",\"error\":{\"message\":\"lidwcwvmzegjon\",\"context\":[\"irwgdnqzbrf\",\"spzhzmtksjc\",\"tdigsxcdglj\",\"lkeuac\"]},\"entityName\":\"omflrytswfp\"},\"id\":\"dgycxnmskwhqjjy\",\"name\":\"lurlpshhkvp\",\"type\":\"dwqslsrhmpqvw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,23 +36,23 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DiscoveryRule response = manager.discoveryRules() - .define("sfuztlvtmv") - .withExistingHealthmodel("mjvlgfgg", "vkyylizrzbjpsf") - .withProperties(new DiscoveryRuleProperties().withDisplayName("dqlvhukoveof") - .withAuthenticationSetting("zrvjfnmjmvlwyzgi") + .define("lhguyn") + .withExistingHealthmodel("kcdxfzzzw", "jafi") + .withProperties(new DiscoveryRuleProperties().withDisplayName("mltx") + .withAuthenticationSetting("whmozusgzvlnsnnj") .withDiscoverRelationships(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED) - .withAddRecommendedSignals(DiscoveryRuleRecommendedSignalsBehavior.DISABLED) + .withAddRecommendedSignals(DiscoveryRuleRecommendedSignalsBehavior.ENABLED) .withSpecification(new DiscoveryRuleSpecification()) - .withAddResourceHealthSignal(ResourceHealthAvailabilityStateSignalBehavior.ENABLED)) + .withAddResourceHealthSignal(ResourceHealthAvailabilityStateSignalBehavior.DISABLED)) .create(); - Assertions.assertEquals("zz", response.properties().displayName()); - Assertions.assertEquals("yjaf", response.properties().authenticationSetting()); + Assertions.assertEquals("hqvlnnpxybafiqg", response.properties().displayName()); + Assertions.assertEquals("aarbgjekg", response.properties().authenticationSetting()); Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED, response.properties().discoverRelationships()); - Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.ENABLED, + Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.DISABLED, response.properties().addRecommendedSignals()); - Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, + Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, response.properties().addResourceHealthSignal()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesGetWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesGetWithResponseMockTests.java index da0ee2885867..9f5400f837d8 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesGetWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class DiscoveryRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"wefohecbvo\",\"authenticationSetting\":\"wndyqleallk\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Disabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"owkxxpv\",\"context\":[\"fjmzsyzfho\",\"lhikcyychunsj\",\"pjrtws\",\"hv\"]},\"entityName\":\"uic\"},\"id\":\"vtrrmhwrbfdpyflu\",\"name\":\"hvj\",\"type\":\"lrocuyzlwh\"}"; + = "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"odaqaxsi\",\"authenticationSetting\":\"ietgbebjfu\",\"discoverRelationships\":\"Enabled\",\"addRecommendedSignals\":\"Disabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"h\",\"context\":[\"nfpubntnbatz\",\"iqsowsaaelc\",\"ttcjuhplrvkmjc\"]},\"entityName\":\"jvlgfggcvkyyliz\"},\"id\":\"bjpsfxsfuztlvtm\",\"name\":\"agb\",\"type\":\"idqlvhu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,12 +34,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DiscoveryRule response = manager.discoveryRules() - .getWithResponse("ksaoafcluqvox", "ycjimryvwgcwwpbm", "gwe", com.azure.core.util.Context.NONE) + .getWithResponse("oihiqak", "diw", "brkwpzdqt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wefohecbvo", response.properties().displayName()); - Assertions.assertEquals("wndyqleallk", response.properties().authenticationSetting()); - Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED, + Assertions.assertEquals("odaqaxsi", response.properties().displayName()); + Assertions.assertEquals("ietgbebjfu", response.properties().authenticationSetting()); + Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.ENABLED, response.properties().discoverRelationships()); Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.DISABLED, response.properties().addRecommendedSignals()); diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesListByHealthModelMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesListByHealthModelMockTests.java index 8273778e89c5..1d8d58e8079c 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesListByHealthModelMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/DiscoveryRulesListByHealthModelMockTests.java @@ -25,7 +25,7 @@ public final class DiscoveryRulesListByHealthModelMockTests { @Test public void testListByHealthModel() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"kyujxsglhsrrr\",\"authenticationSetting\":\"ejylmbkzu\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Disabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Enabled\",\"error\":{\"message\":\"ihotjewlpxuzzjg\",\"context\":[\"fqyhqoto\",\"hiqakydiwfbrk\",\"pzdqtvhcspod\",\"qaxsipietgbebjf\"]},\"entityName\":\"lbmoichd\"},\"id\":\"nfpubntnbatz\",\"name\":\"iqsowsaaelc\",\"type\":\"ttcjuhplrvkmjc\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"rllfojuidjpuuyj\",\"authenticationSetting\":\"c\",\"discoverRelationships\":\"Disabled\",\"addRecommendedSignals\":\"Disabled\",\"specification\":{\"kind\":\"DiscoveryRuleSpecification\"},\"addResourceHealthSignal\":\"Disabled\",\"error\":{\"message\":\"eovvtzej\",\"context\":[\"kl\",\"tikyj\",\"zkdbqzolx\"]},\"entityName\":\"vhqjwtrhtgvg\"},\"id\":\"c\",\"name\":\"rkolawjm\",\"type\":\"smwr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,16 +35,16 @@ public void testListByHealthModel() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.discoveryRules() - .listByHealthModel("memhooclutnpq", "emc", OffsetDateTime.parse("2021-06-23T11:52:45Z"), + .listByHealthModel("oveofizrvjfnmj", "vlwyzg", OffsetDateTime.parse("2021-04-07T06:34:10Z"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("kyujxsglhsrrr", response.iterator().next().properties().displayName()); - Assertions.assertEquals("ejylmbkzu", response.iterator().next().properties().authenticationSetting()); + Assertions.assertEquals("rllfojuidjpuuyj", response.iterator().next().properties().displayName()); + Assertions.assertEquals("c", response.iterator().next().properties().authenticationSetting()); Assertions.assertEquals(DiscoveryRuleRelationshipDiscoveryBehavior.DISABLED, response.iterator().next().properties().discoverRelationships()); Assertions.assertEquals(DiscoveryRuleRecommendedSignalsBehavior.DISABLED, response.iterator().next().properties().addRecommendedSignals()); - Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, + Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, response.iterator().next().properties().addResourceHealthSignal()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesAddDataAnnotationWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesAddDataAnnotationWithResponseMockTests.java index 2aa9d4ce9e54..cef5a92b446a 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesAddDataAnnotationWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesAddDataAnnotationWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class EntitiesAddDataAnnotationWithResponseMockTests { @Test public void testAddDataAnnotationWithResponse() throws Exception { String responseStr - = "{\"annotationId\":\"ddoui\",\"createdAt\":\"2021-06-14T11:53:50Z\",\"annotationDetails\":{\"knlqwzdvpiwhxqsz\":\"waziy\"},\"description\":\"maajquhuxylr\"}"; + = "{\"annotationId\":\"glgou\",\"createdAt\":\"2021-11-29T23:14:51Z\",\"annotationDetails\":{\"j\":\"jjyuojqtobax\",\"snkq\":\"ytunlbfjkwr\"},\"description\":\"syrq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,16 +34,15 @@ public void testAddDataAnnotationWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DataAnnotation response = manager.entities() - .addDataAnnotationWithResponse("vzbglbyvi", "tctbrxkjzwrgxffm", "hkwfbkgozxwop", + .addDataAnnotationWithResponse("amktcqiosmgbzah", "xqdlyrtltlapr", "tz", new AddDataAnnotationRequest() - .withAnnotationDetails(mapOf("izqaclnapxbiyg", "yd", "mfcttux", "ugjknf", "njhvsujztc", - "uyilflqoiquvrehm", "w", "ytqj")) - .withDescription("uunfprnjletlxsm"), + .withAnnotationDetails(mapOf("ala", "tbhjmznnbsoqe", "tgfebwln", "vlagun", "av", "mhyreeudz")) + .withDescription("dqmjxly"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("waziy", response.annotationDetails().get("knlqwzdvpiwhxqsz")); - Assertions.assertEquals("maajquhuxylr", response.description()); + Assertions.assertEquals("jjyuojqtobax", response.annotationDetails().get("j")); + Assertions.assertEquals("syrq", response.description()); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesCreateOrUpdateMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesCreateOrUpdateMockTests.java index 0d06222d7b57..edfcdb72709b 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesCreateOrUpdateMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesCreateOrUpdateMockTests.java @@ -10,14 +10,14 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cloudhealth.CloudHealthManager; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.AlertConfiguration; import com.azure.resourcemanager.cloudhealth.models.AlertSeverity; import com.azure.resourcemanager.cloudhealth.models.AzureMonitorWorkspaceSignals; import com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignals; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; import com.azure.resourcemanager.cloudhealth.models.DependenciesSignalGroupV2; import com.azure.resourcemanager.cloudhealth.models.Entity; import com.azure.resourcemanager.cloudhealth.models.EntityAlerts; @@ -29,6 +29,7 @@ import com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignals; import com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal; import com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior; +import com.azure.resourcemanager.cloudhealth.models.SignalAggregationGroup; import com.azure.resourcemanager.cloudhealth.models.SignalGroups; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; @@ -43,7 +44,7 @@ public final class EntitiesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"zi\",\"canvasPosition\":{\"x\":87.78756189154463,\"y\":69.14745290084674},\"icon\":{\"iconName\":\"antkwcegyamlbns\",\"customData\":\"ac\"},\"healthObjective\":26.227476692247475,\"impact\":\"Standard\",\"tags\":{\"kjbsah\":\"ooqjagmditgueio\",\"oebn\":\"tdtpdelqacslmo\",\"dirazf\":\"xofvcjk\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"jwabmd\",\"azureResourceId\":\"jtmvc\",\"azureResourceKind\":\"excmjurbuhhl\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"ltqs\"}],\"resourceHealth\":{\"enabled\":\"Enabled\",\"signalName\":\"wkffdjkt\",\"status\":{}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"idfv\",\"logAnalyticsWorkspaceResourceId\":\"lglxnfui\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"busqogsfi\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"ayiansharujtji\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"fzyjqt\",\"azureMonitorWorkspaceResourceId\":\"vwkpqh\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"nuygbqeqqekewvnq\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"cdlguauc\"}]},\"dependencies\":{\"aggregationType\":\"WorstOf\",\"degradedThreshold\":40.09459580335055,\"unhealthyThreshold\":80.73723224268055,\"unit\":\"Absolute\",\"ignoreUnknown\":false},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"czvvit\"},{\"signalKind\":\"External\",\"name\":\"cgx\"}]}},\"discoveredBy\":\"csserxht\",\"healthState\":\"Unhealthy\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev1\",\"description\":\"ntsj\",\"actionGroupIds\":[\"sxypruuu\",\"bnchrsziz\",\"yuel\"]},\"degraded\":{\"severity\":\"Sev4\",\"description\":\"dnb\",\"actionGroupIds\":[\"ggagfln\",\"gm\",\"rwahzjmucftbyr\"]}}},\"id\":\"rohkpigqfusu\",\"name\":\"kzmkwklsnoxaxmqe\",\"type\":\"alhhjnhgwydyynfs\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"wmrswnjlxuzrh\",\"canvasPosition\":{\"x\":62.09839766818396,\"y\":89.67472117103517},\"icon\":{\"iconName\":\"aqehg\",\"customData\":\"ohzjqatucoigeb\"},\"healthObjective\":90.78843967819226,\"impact\":\"Suppressed\",\"tags\":{\"cgbjbgdlfgt\":\"bnwgfmxj\",\"naquflq\":\"y\",\"zeqyjleziun\":\"ctqhamzjrwdk\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"fza\",\"azureResourceId\":\"tkw\",\"azureResourceKind\":\"gyamlbnseqacjjv\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"guooqjagmdit\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"ueio\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"kjbsah\"}],\"resourceHealth\":{\"enabled\":\"Enabled\",\"signalName\":\"delqacslmoto\",\"status\":{}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"fxof\",\"logAnalyticsWorkspaceResourceId\":\"cjkgdirazftxej\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"mdujtmvcopexcm\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"urbuhhlkyqltq\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"rogtuwkf\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"djk\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"ysidfvclgl\",\"azureMonitorWorkspaceResourceId\":\"n\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"jtkbusqogsfika\"}]},\"dependencies\":{\"aggregationType\":\"MaxNotHealthy\",\"degradedThreshold\":47.4177631939155,\"unhealthyThreshold\":76.53434207257426,\"unit\":\"Absolute\",\"ignoreUnknown\":false},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"zyjq\"},{\"signalKind\":\"External\",\"name\":\"tvwkpqhjpenu\"}]}},\"signalAggregationGroups\":[{\"name\":\"qeqqekewvnqvcdl\",\"displayName\":\"a\",\"aggregationType\":\"BestOf\",\"members\":[\"djwnlaxpunjqi\"],\"degradedThreshold\":77.59612074952969,\"unhealthyThreshold\":85.70814797576885,\"unit\":\"Absolute\",\"ignoreUnknown\":true,\"aggregatedHealthState\":\"Deleted\",\"unresolvedMembers\":[\"serxht\",\"soxhlwntsjgqr\",\"xypruuuy\",\"nchrszizoyu\"]},{\"name\":\"lyetndnbfqygg\",\"displayName\":\"flnlgmtr\",\"aggregationType\":\"MinHealthy\",\"members\":[\"jmucftby\",\"plrohkpigq\",\"usuckzmkwklsno\",\"axmqeqal\"],\"degradedThreshold\":58.800022530378286,\"unhealthyThreshold\":33.84002911658727,\"unit\":\"Percentage\",\"ignoreUnknown\":true,\"aggregatedHealthState\":\"Healthy\",\"unresolvedMembers\":[\"khgb\"]},{\"name\":\"qtanarfdlpuk\",\"displayName\":\"yrneizjcpeo\",\"aggregationType\":\"MinHealthy\",\"members\":[\"mgbro\"],\"degradedThreshold\":25.59735822290484,\"unhealthyThreshold\":35.13515320785861,\"unit\":\"Percentage\",\"ignoreUnknown\":false,\"aggregatedHealthState\":\"Degraded\",\"unresolvedMembers\":[\"oywjxhpdulont\"]},{\"name\":\"cnpqwteht\",\"displayName\":\"vrh\",\"aggregationType\":\"BestOf\",\"members\":[\"oogwxhnsduugwb\",\"reur\"],\"degradedThreshold\":50.85013308505023,\"unhealthyThreshold\":96.76010010713917,\"unit\":\"Percentage\",\"ignoreUnknown\":true,\"aggregatedHealthState\":\"Degraded\",\"unresolvedMembers\":[\"lnvnafvvkyfedev\",\"bo\",\"lcqxypokk\",\"minqcym\"]}],\"discoveredBy\":\"ngnbdxxew\",\"healthState\":\"Unknown\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev2\",\"description\":\"bchaqd\",\"actionGroupIds\":[\"ec\",\"qct\",\"xxdtddmflh\"]},\"degraded\":{\"severity\":\"Sev4\",\"description\":\"zv\",\"actionGroupIds\":[\"apxbannovvoxczy\",\"prwnwvroevytlyo\",\"rrrouuxvnsa\"]}}},\"id\":\"crymodizrxklobd\",\"name\":\"nazpmk\",\"type\":\"lmv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -53,87 +54,108 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Entity response = manager.entities() - .define("uartvti") - .withExistingHealthmodel("kholvd", "dviauogp") - .withProperties(new EntityProperties().withDisplayName("chnmna") - .withCanvasPosition(new EntityCoordinates().withX(48.505500231151885).withY(91.67662271503086)) - .withIcon(new IconDefinition().withIconName("jqirwrw").withCustomData("oxffif")) - .withHealthObjective(76.18587310109454D) + .define("abuiy") + .withExistingHealthmodel("cuqudtcvclxy", "pdkvg") + .withProperties(new EntityProperties().withDisplayName("phdu") + .withCanvasPosition(new EntityCoordinates().withX(38.86991029970578).withY(67.00445861156592)) + .withIcon(new IconDefinition().withIconName("gox").withCustomData("iuqhibtozipqwj")) + .withHealthObjective(18.05742941454551D) .withImpact(EntityImpact.LIMITED) - .withTags(mapOf("ubqmamh", "mozqv", "o", "ycxhxzgaztta", "w", "dvmfqhppub")) + .withTags(mapOf("wpktvqylkmqpzoyh", "g")) .withSignalGroups(new SignalGroups() - .withAzureResource(new AzureResourceSignals().withAuthenticationSetting("dfgkmtdh") - .withAzureResourceId("rngbtcjuahokqtob") - .withAzureResourceKind("uxofshfphwpnulai") - .withSignals(Arrays.asList(new AzureResourceSignal().withName("e"), - new AzureResourceSignal().withName("ywhslwkojpllndnp"), - new AzureResourceSignal().withName("wrpqafgfugsnnf"))) + .withAzureResource(new AzureResourceSignals().withAuthenticationSetting("cgwgcloxoebqinji") + .withAzureResourceId("nwjfu") + .withAzureResourceKind("lafcbahh") + .withSignals(Arrays.asList(new AzureResourceSignal().withName("ofoiy"), + new AzureResourceSignal().withName("w"))) .withResourceHealth(new AzureResourceHealthSignal() .withEnabled(ResourceHealthAvailabilityStateSignalBehavior.DISABLED))) - .withAzureLogAnalytics(new LogAnalyticsSignals().withAuthenticationSetting("vzuyturmlmu") - .withLogAnalyticsWorkspaceResourceId("wolba") - .withSignals(Arrays.asList(new LogAnalyticsSignal().withName("opionszon"), - new LogAnalyticsSignal().withName("pngajin")))) - .withAzureMonitorWorkspace(new AzureMonitorWorkspaceSignals().withAuthenticationSetting("xjawrt") - .withAzureMonitorWorkspaceResourceId("jfjmyccxlzh") - .withSignals(Arrays.asList(new PrometheusMetricsSignal().withName("ovne")))) - .withDependencies( - new DependenciesSignalGroupV2().withAggregationType(DependenciesAggregationType.MAX_NOT_HEALTHY) - .withDegradedThreshold(95.67435127792137D) - .withUnhealthyThreshold(58.15707174317096D) - .withUnit(DependenciesAggregationUnit.PERCENTAGE) - .withIgnoreUnknown(false))) + .withAzureLogAnalytics(new LogAnalyticsSignals().withAuthenticationSetting("ndviauogphuartvt") + .withLogAnalyticsWorkspaceResourceId("ukyefchnmnahmnxh") + .withSignals(Arrays.asList(new LogAnalyticsSignal().withName("qirwrweoox"), + new LogAnalyticsSignal().withName("fifhxwrsnew")))) + .withAzureMonitorWorkspace(new AzureMonitorWorkspaceSignals().withAuthenticationSetting("zqvbubqm") + .withAzureMonitorWorkspaceResourceId("m") + .withSignals(Arrays.asList(new PrometheusMetricsSignal().withName("cx"), + new PrometheusMetricsSignal().withName("xz"), + new PrometheusMetricsSignal().withName("azttaboidvmfq")))) + .withDependencies(new DependenciesSignalGroupV2().withAggregationType(AggregationType.MIN_HEALTHY) + .withDegradedThreshold(43.70047143291232D) + .withUnhealthyThreshold(42.90659252018645D) + .withUnit(AggregationUnit.ABSOLUTE) + .withIgnoreUnknown(false))) + .withSignalAggregationGroups(Arrays.asList(new SignalAggregationGroup().withName("ndnpdwrpqafgfug") + .withDisplayName("n") + .withAggregationType(AggregationType.BEST_OF) + .withMembers(Arrays.asList("tefypococtfjgti")) + .withDegradedThreshold(27.101173459214955D) + .withUnhealthyThreshold(43.561702255466116D) + .withUnit(AggregationUnit.ABSOLUTE) + .withIgnoreUnknown(false))) .withAlerts(new EntityAlerts() - .withUnhealthy(new AlertConfiguration().withSeverity(AlertSeverity.SEV4) - .withDescription("iziesfuughtuq") - .withActionGroupIds(Arrays.asList("jxeygtuhxu", "cbuewmrswnjlxuz"))) + .withUnhealthy(new AlertConfiguration().withSeverity(AlertSeverity.SEV2) + .withDescription("lzhcoxovnekh") + .withActionGroupIds(Arrays.asList("usfnr", "tjxtxr", "cq", "jvidttge"))) .withDegraded(new AlertConfiguration().withSeverity(AlertSeverity.SEV3) - .withDescription("usxjbaqehg") - .withActionGroupIds(Arrays.asList("hzjqatucoige", "xncnwfe", "bnwgfmxj", "cgbjbgdlfgt"))))) + .withDescription("vyjtcvu") + .withActionGroupIds(Arrays.asList("s"))))) .create(); - Assertions.assertEquals("zi", response.properties().displayName()); - Assertions.assertEquals(87.78756189154463, response.properties().canvasPosition().x()); - Assertions.assertEquals(69.14745290084674, response.properties().canvasPosition().y()); - Assertions.assertEquals("antkwcegyamlbns", response.properties().icon().iconName()); - Assertions.assertEquals("ac", response.properties().icon().customData()); - Assertions.assertEquals(26.227476692247475D, response.properties().healthObjective()); - Assertions.assertEquals(EntityImpact.STANDARD, response.properties().impact()); - Assertions.assertEquals("ooqjagmditgueio", response.properties().tags().get("kjbsah")); - Assertions.assertEquals("jwabmd", response.properties().signalGroups().azureResource().authenticationSetting()); - Assertions.assertEquals("jtmvc", response.properties().signalGroups().azureResource().azureResourceId()); - Assertions.assertEquals("excmjurbuhhl", + Assertions.assertEquals("wmrswnjlxuzrh", response.properties().displayName()); + Assertions.assertEquals(62.09839766818396, response.properties().canvasPosition().x()); + Assertions.assertEquals(89.67472117103517, response.properties().canvasPosition().y()); + Assertions.assertEquals("aqehg", response.properties().icon().iconName()); + Assertions.assertEquals("ohzjqatucoigeb", response.properties().icon().customData()); + Assertions.assertEquals(90.78843967819226D, response.properties().healthObjective()); + Assertions.assertEquals(EntityImpact.SUPPRESSED, response.properties().impact()); + Assertions.assertEquals("bnwgfmxj", response.properties().tags().get("cgbjbgdlfgt")); + Assertions.assertEquals("fza", response.properties().signalGroups().azureResource().authenticationSetting()); + Assertions.assertEquals("tkw", response.properties().signalGroups().azureResource().azureResourceId()); + Assertions.assertEquals("gyamlbnseqacjjv", response.properties().signalGroups().azureResource().azureResourceKind()); - Assertions.assertEquals("ltqs", response.properties().signalGroups().azureResource().signals().get(0).name()); + Assertions.assertEquals("guooqjagmdit", + response.properties().signalGroups().azureResource().signals().get(0).name()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, response.properties().signalGroups().azureResource().resourceHealth().enabled()); - Assertions.assertEquals("idfv", + Assertions.assertEquals("fxof", response.properties().signalGroups().azureLogAnalytics().authenticationSetting()); - Assertions.assertEquals("lglxnfui", + Assertions.assertEquals("cjkgdirazftxej", response.properties().signalGroups().azureLogAnalytics().logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("busqogsfi", + Assertions.assertEquals("mdujtmvcopexcm", response.properties().signalGroups().azureLogAnalytics().signals().get(0).name()); - Assertions.assertEquals("fzyjqt", + Assertions.assertEquals("ysidfvclgl", response.properties().signalGroups().azureMonitorWorkspace().authenticationSetting()); - Assertions.assertEquals("vwkpqh", + Assertions.assertEquals("n", response.properties().signalGroups().azureMonitorWorkspace().azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("nuygbqeqqekewvnq", + Assertions.assertEquals("jtkbusqogsfika", response.properties().signalGroups().azureMonitorWorkspace().signals().get(0).name()); - Assertions.assertEquals(DependenciesAggregationType.WORST_OF, + Assertions.assertEquals(AggregationType.MAX_NOT_HEALTHY, response.properties().signalGroups().dependencies().aggregationType()); - Assertions.assertEquals(40.09459580335055D, + Assertions.assertEquals(47.4177631939155D, response.properties().signalGroups().dependencies().degradedThreshold()); - Assertions.assertEquals(80.73723224268055D, + Assertions.assertEquals(76.53434207257426D, response.properties().signalGroups().dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.ABSOLUTE, - response.properties().signalGroups().dependencies().unit()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, response.properties().signalGroups().dependencies().unit()); Assertions.assertFalse(response.properties().signalGroups().dependencies().ignoreUnknown()); - Assertions.assertEquals(AlertSeverity.SEV1, response.properties().alerts().unhealthy().severity()); - Assertions.assertEquals("ntsj", response.properties().alerts().unhealthy().description()); - Assertions.assertEquals("sxypruuu", response.properties().alerts().unhealthy().actionGroupIds().get(0)); + Assertions.assertEquals("qeqqekewvnqvcdl", response.properties().signalAggregationGroups().get(0).name()); + Assertions.assertEquals("a", response.properties().signalAggregationGroups().get(0).displayName()); + Assertions.assertEquals(AggregationType.BEST_OF, + response.properties().signalAggregationGroups().get(0).aggregationType()); + Assertions.assertEquals("djwnlaxpunjqi", + response.properties().signalAggregationGroups().get(0).members().get(0)); + Assertions.assertEquals(77.59612074952969D, + response.properties().signalAggregationGroups().get(0).degradedThreshold()); + Assertions.assertEquals(85.70814797576885D, + response.properties().signalAggregationGroups().get(0).unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, + response.properties().signalAggregationGroups().get(0).unit()); + Assertions.assertTrue(response.properties().signalAggregationGroups().get(0).ignoreUnknown()); + Assertions.assertEquals(AlertSeverity.SEV2, response.properties().alerts().unhealthy().severity()); + Assertions.assertEquals("bchaqd", response.properties().alerts().unhealthy().description()); + Assertions.assertEquals("ec", response.properties().alerts().unhealthy().actionGroupIds().get(0)); Assertions.assertEquals(AlertSeverity.SEV4, response.properties().alerts().degraded().severity()); - Assertions.assertEquals("dnb", response.properties().alerts().degraded().description()); - Assertions.assertEquals("ggagfln", response.properties().alerts().degraded().actionGroupIds().get(0)); + Assertions.assertEquals("zv", response.properties().alerts().degraded().description()); + Assertions.assertEquals("apxbannovvoxczy", response.properties().alerts().degraded().actionGroupIds().get(0)); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetDataAnnotationsWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetDataAnnotationsWithResponseMockTests.java index 958c6543e734..61223801ea13 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetDataAnnotationsWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetDataAnnotationsWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class EntitiesGetDataAnnotationsWithResponseMockTests { @Test public void testGetDataAnnotationsWithResponse() throws Exception { String responseStr - = "{\"entityName\":\"rxmunjdxvgln\",\"annotations\":[{\"annotationId\":\"lxpaglqivbgkcv\",\"createdAt\":\"2021-10-11T22:54:01Z\",\"annotationDetails\":{\"lvoniy\":\"vuqd\",\"hjknidibg\":\"fpubcpzgpxti\",\"ik\":\"jxgpnrhgovfg\"},\"description\":\"hh\"}],\"nextMarker\":\"wjrmzvuporqzd\"}"; + = "{\"entityName\":\"gqoweyirdhlisn\",\"annotations\":[{\"annotationId\":\"lqqmpiz\",\"createdAt\":\"2021-04-24T19:03:12Z\",\"annotationDetails\":{\"wfcngjsaas\":\"pqxpx\"},\"description\":\"xtmkzjvkviir\"}],\"nextMarker\":\"fgrwsdpgratzvz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,17 +32,17 @@ public void testGetDataAnnotationsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GetDataAnnotationsResponse response = manager.entities() - .getDataAnnotationsWithResponse("vmtygj", "mzyospspshck", "kyjpmspbps", - new GetDataAnnotationsRequest().withStartAt(OffsetDateTime.parse("2021-03-22T17:32:57Z")) - .withEndAt(OffsetDateTime.parse("2021-10-10T20:16:17Z")) - .withTop(2112807448) - .withNextMarker("tieyujtvczkcny"), + .getDataAnnotationsWithResponse("njqhdenxa", "l", "pakdkifmjnnawt", + new GetDataAnnotationsRequest().withStartAt(OffsetDateTime.parse("2020-12-24T01:47:50Z")) + .withEndAt(OffsetDateTime.parse("2021-05-21T23:06:13Z")) + .withTop(1193273500) + .withNextMarker("p"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rxmunjdxvgln", response.entityName()); - Assertions.assertEquals("vuqd", response.annotations().get(0).annotationDetails().get("lvoniy")); - Assertions.assertEquals("hh", response.annotations().get(0).description()); - Assertions.assertEquals("wjrmzvuporqzd", response.nextMarker()); + Assertions.assertEquals("gqoweyirdhlisn", response.entityName()); + Assertions.assertEquals("pqxpx", response.annotations().get(0).annotationDetails().get("wfcngjsaas")); + Assertions.assertEquals("xtmkzjvkviir", response.annotations().get(0).description()); + Assertions.assertEquals("fgrwsdpgratzvz", response.nextMarker()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetHistoryWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetHistoryWithResponseMockTests.java index b58338ef08af..c261dee8c5c2 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetHistoryWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetHistoryWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class EntitiesGetHistoryWithResponseMockTests { @Test public void testGetHistoryWithResponse() throws Exception { String responseStr - = "{\"entityName\":\"nthjtwkjaosrxuzv\",\"history\":[{\"previousState\":\"Healthy\",\"newState\":\"Unknown\",\"occurredAt\":\"2021-10-04T14:47:32Z\",\"reason\":\"q\"},{\"previousState\":\"Degraded\",\"newState\":\"Degraded\",\"occurredAt\":\"2021-04-08T21:59:12Z\",\"reason\":\"bzahgxqd\"},{\"previousState\":\"Unknown\",\"newState\":\"Degraded\",\"occurredAt\":\"2021-07-05T11:42:01Z\",\"reason\":\"tlaprltzkatb\"},{\"previousState\":\"Healthy\",\"newState\":\"Unknown\",\"occurredAt\":\"2021-11-05T23:53:12Z\",\"reason\":\"nbsoqeqalarv\"}],\"nextMarker\":\"gunbtgfebwlnbm\"}"; + = "{\"entityName\":\"xgvelfclduccbird\",\"history\":[{\"previousState\":\"Healthy\",\"newState\":\"Unhealthy\",\"occurredAt\":\"2021-07-19T01:23:44Z\",\"reason\":\"b\"},{\"previousState\":\"Unknown\",\"newState\":\"Healthy\",\"occurredAt\":\"2021-10-29T15:06:20Z\",\"reason\":\"mninwjizcilng\"},{\"previousState\":\"Unknown\",\"newState\":\"Degraded\",\"occurredAt\":\"2021-01-09T21:29:52Z\",\"reason\":\"jjtbxqmuluxlxqz\"},{\"previousState\":\"Healthy\",\"newState\":\"Degraded\",\"occurredAt\":\"2021-07-23T03:53:30Z\",\"reason\":\"bycucrwnamikz\"}],\"nextMarker\":\"rqbsmswziq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,19 +33,19 @@ public void testGetHistoryWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); EntityHistoryResponse response = manager.entities() - .getHistoryWithResponse("cxcjxgry", "fmpcycilrmca", "kggnoxu", - new EntityHistoryRequest().withStartAt(OffsetDateTime.parse("2021-02-01T22:28:07Z")) - .withEndAt(OffsetDateTime.parse("2021-07-13T12:46:46Z")) - .withTop(365687187) - .withNextMarker("ndfcpfn"), + .getHistoryWithResponse("imrt", "xokffqyin", "jqepqwhi", + new EntityHistoryRequest().withStartAt(OffsetDateTime.parse("2021-11-13T10:38Z")) + .withEndAt(OffsetDateTime.parse("2021-01-02T02:09:41Z")) + .withTop(927727255) + .withNextMarker("i"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("nthjtwkjaosrxuzv", response.entityName()); + Assertions.assertEquals("xgvelfclduccbird", response.entityName()); Assertions.assertEquals(HealthState.HEALTHY, response.history().get(0).previousState()); - Assertions.assertEquals(HealthState.UNKNOWN, response.history().get(0).newState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-04T14:47:32Z"), response.history().get(0).occurredAt()); - Assertions.assertEquals("q", response.history().get(0).reason()); - Assertions.assertEquals("gunbtgfebwlnbm", response.nextMarker()); + Assertions.assertEquals(HealthState.UNHEALTHY, response.history().get(0).newState()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-19T01:23:44Z"), response.history().get(0).occurredAt()); + Assertions.assertEquals("b", response.history().get(0).reason()); + Assertions.assertEquals("rqbsmswziq", response.nextMarker()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalHistoryWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalHistoryWithResponseMockTests.java index 3f3042b7acff..5f8c1830d191 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalHistoryWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalHistoryWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class EntitiesGetSignalHistoryWithResponseMockTests { @Test public void testGetSignalHistoryWithResponse() throws Exception { String responseStr - = "{\"entityName\":\"ytunlbfjkwr\",\"signalName\":\"snkq\",\"history\":[{\"occurredAt\":\"2021-10-27T03:00:47Z\",\"value\":32.894497147800315,\"healthState\":\"Degraded\",\"additionalContext\":\"jqhden\"},{\"occurredAt\":\"2021-09-15T18:56:59Z\",\"value\":0.9838391094346366,\"healthState\":\"Unknown\",\"additionalContext\":\"kdk\"}],\"nextMarker\":\"mjnnawtq\"}"; + = "{\"entityName\":\"djh\",\"signalName\":\"flzokxco\",\"history\":[{\"occurredAt\":\"2021-02-17T01:06:31Z\",\"value\":18.30335233062611,\"healthState\":\"Unhealthy\",\"additionalContext\":\"agltsxoa\"},{\"occurredAt\":\"2021-11-25T21:29:51Z\",\"value\":4.298483542242259,\"healthState\":\"Healthy\",\"additionalContext\":\"pbswvefloccsrm\"},{\"occurredAt\":\"2021-08-18T23:44:36Z\",\"value\":92.10910951432685,\"healthState\":\"Healthy\",\"additionalContext\":\"g\"}],\"nextMarker\":\"txx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,21 +33,21 @@ public void testGetSignalHistoryWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SignalHistoryResponse response = manager.entities() - .getSignalHistoryWithResponse("yreeudz", "av", "pdqmjxlyyzglgouw", - new SignalHistoryRequest().withSignalName("lmjjyuo") - .withStartAt(OffsetDateTime.parse("2021-02-27T03:40:46Z")) - .withEndAt(OffsetDateTime.parse("2021-03-29T01:28:48Z")) - .withTop(856009937) - .withNextMarker("j"), + .getSignalHistoryWithResponse("fuhok", "ruswhv", "czznvfbycjsxj", + new SignalHistoryRequest().withSignalName("wix") + .withStartAt(OffsetDateTime.parse("2021-05-29T07:40:45Z")) + .withEndAt(OffsetDateTime.parse("2020-12-24T21:57:08Z")) + .withTop(1286205076) + .withNextMarker("hndvnoamldsehao"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ytunlbfjkwr", response.entityName()); - Assertions.assertEquals("snkq", response.signalName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T03:00:47Z"), response.history().get(0).occurredAt()); - Assertions.assertEquals(32.894497147800315D, response.history().get(0).value()); - Assertions.assertEquals(HealthState.DEGRADED, response.history().get(0).healthState()); - Assertions.assertEquals("jqhden", response.history().get(0).additionalContext()); - Assertions.assertEquals("mjnnawtq", response.nextMarker()); + Assertions.assertEquals("djh", response.entityName()); + Assertions.assertEquals("flzokxco", response.signalName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-17T01:06:31Z"), response.history().get(0).occurredAt()); + Assertions.assertEquals(18.30335233062611D, response.history().get(0).value()); + Assertions.assertEquals(HealthState.UNHEALTHY, response.history().get(0).healthState()); + Assertions.assertEquals("agltsxoa", response.history().get(0).additionalContext()); + Assertions.assertEquals("txx", response.nextMarker()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalRecommendationsWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalRecommendationsWithResponseMockTests.java index a2562ec3e7b1..5d830ff774c1 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalRecommendationsWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetSignalRecommendationsWithResponseMockTests.java @@ -12,7 +12,6 @@ import com.azure.resourcemanager.cloudhealth.CloudHealthManager; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.GetSignalRecommendationsResponse; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import java.nio.charset.StandardCharsets; @@ -25,7 +24,7 @@ public final class EntitiesGetSignalRecommendationsWithResponseMockTests { @Test public void testGetSignalRecommendationsWithResponse() throws Exception { String responseStr - = "{\"recommendedSignals\":[{\"signalId\":\"em\",\"metricNamespace\":\"kzsz\",\"metricName\":\"iwtglxxhljfpg\",\"aggregationType\":\"Count\",\"unit\":\"mnzhrgmqg\",\"timeGrain\":\"x\",\"dimensionFilter\":\"qcbfrmbodths\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":43.02034378983023,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT5M\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":1.1040477658518455,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"}}},{\"signalId\":\"ousxauzlwvsgmw\",\"metricNamespace\":\"qf\",\"metricName\":\"zvuxm\",\"aggregationType\":\"None\",\"unit\":\"vthn\",\"timeGrain\":\"zt\",\"dimensionFilter\":\"ovmribiattg\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":76.85833541431322,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT5M\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":85.07544948362933,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT15M\"}}},{\"signalId\":\"gswvxwlmzqwm\",\"metricNamespace\":\"xnjmxm\",\"metricName\":\"qudtcvclx\",\"aggregationType\":\"Minimum\",\"unit\":\"k\",\"timeGrain\":\"fabuiyjibu\",\"dimensionFilter\":\"hdugneiknpg\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":12.524588233364353,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":15.025936645835436,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT30M\"}}}],\"recommendedConfigurations\":[{\"signalId\":\"mur\",\"metricNamespace\":\"x\",\"metricName\":\"wpktvqylkmqpzoyh\",\"aggregationType\":\"Average\",\"unit\":\"gwgcl\",\"timeGrain\":\"oebqinjipn\",\"dimensionFilter\":\"fujqlafcba\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":31.11252736133039,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":63.4397466234802,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"}}}]}"; + = "{\"recommendedSignals\":[{\"signalId\":\"yd\",\"metricNamespace\":\"zqaclna\",\"metricName\":\"biygnugjknfsmfct\",\"aggregationType\":\"None\",\"unit\":\"uyilflqoiquvrehm\",\"timeGrain\":\"jhvsujztczyt\",\"dimensionFilter\":\"t\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":70.90485440713822,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":30.759254627488474,\"sensitivity\":\"High\"}}},{\"signalId\":\"xsmrpddouifamow\",\"metricNamespace\":\"iynknlq\",\"metricName\":\"dvpiwh\",\"aggregationType\":\"Count\",\"unit\":\"dtmaa\",\"timeGrain\":\"uhuxylrjvmtyg\",\"dimensionFilter\":\"mzyospspshck\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":68.5448201346248,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":65.74333472096635,\"sensitivity\":\"Low\"}}},{\"signalId\":\"pyogtieyuj\",\"metricNamespace\":\"czkcnyxrxmunjd\",\"metricName\":\"glnkvxlxpagl\",\"aggregationType\":\"None\",\"unit\":\"gkcvkhpzvuq\",\"timeGrain\":\"lvoniy\",\"dimensionFilter\":\"pubcpzgpxtivhjk\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":90.31492445926447,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":2.5767371581974174,\"sensitivity\":\"Medium\"}}},{\"signalId\":\"ov\",\"metricNamespace\":\"pikqmh\",\"metricName\":\"owjrmzvuporqz\",\"aggregationType\":\"Minimum\",\"unit\":\"dzvkfvxcnqmxq\",\"timeGrain\":\"wokmvkhlggd\",\"dimensionFilter\":\"em\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":8.849738375847805,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":75.29971072129376,\"sensitivity\":\"High\"}}}],\"recommendedConfigurations\":[{\"signalId\":\"ljfp\",\"metricNamespace\":\"icrmnzh\",\"metricName\":\"mqgjsxvpq\",\"aggregationType\":\"Average\",\"unit\":\"mbodthsqqgvri\",\"timeGrain\":\"a\",\"dimensionFilter\":\"lacjfrnxo\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":76.37014890744666,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":99.5019191717588,\"sensitivity\":\"Low\"}}},{\"signalId\":\"qf\",\"metricNamespace\":\"zvuxm\",\"metricName\":\"jsvthnwpzteko\",\"aggregationType\":\"None\",\"unit\":\"biattgplucfotan\",\"timeGrain\":\"fhnykzcugs\",\"dimensionFilter\":\"x\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":49.07770308045938,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":51.35481197679269,\"sensitivity\":\"High\"}}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,56 +34,48 @@ public void testGetSignalRecommendationsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GetSignalRecommendationsResponse response = manager.entities() - .getSignalRecommendationsWithResponse("uydzvk", "vxcnqmxqps", "okmvkhlggd", + .getSignalRecommendationsWithResponse("glbyvi", "tctbrxkjzwrgxffm", "hkwfbkgozxwop", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("em", response.recommendedSignals().get(0).signalId()); - Assertions.assertEquals("kzsz", response.recommendedSignals().get(0).metricNamespace()); - Assertions.assertEquals("iwtglxxhljfpg", response.recommendedSignals().get(0).metricName()); - Assertions.assertEquals(MetricAggregationType.COUNT, response.recommendedSignals().get(0).aggregationType()); - Assertions.assertEquals("mnzhrgmqg", response.recommendedSignals().get(0).unit()); - Assertions.assertEquals("x", response.recommendedSignals().get(0).timeGrain()); - Assertions.assertEquals("qcbfrmbodths", response.recommendedSignals().get(0).dimensionFilter()); - Assertions.assertEquals(SignalOperator.EQUAL, + Assertions.assertEquals("yd", response.recommendedSignals().get(0).signalId()); + Assertions.assertEquals("zqaclna", response.recommendedSignals().get(0).metricNamespace()); + Assertions.assertEquals("biygnugjknfsmfct", response.recommendedSignals().get(0).metricName()); + Assertions.assertEquals(MetricAggregationType.NONE, response.recommendedSignals().get(0).aggregationType()); + Assertions.assertEquals("uyilflqoiquvrehm", response.recommendedSignals().get(0).unit()); + Assertions.assertEquals("jhvsujztczyt", response.recommendedSignals().get(0).timeGrain()); + Assertions.assertEquals("t", response.recommendedSignals().get(0).dimensionFilter()); + Assertions.assertEquals(SignalOperator.GREATER_THAN, response.recommendedSignals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(43.02034378983023D, + Assertions.assertEquals(70.90485440713822D, response.recommendedSignals().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, response.recommendedSignals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, - response.recommendedSignals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, + Assertions.assertEquals(SignalOperator.EQUAL, response.recommendedSignals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(1.1040477658518455D, + Assertions.assertEquals(30.759254627488474D, response.recommendedSignals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, response.recommendedSignals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - response.recommendedSignals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("mur", response.recommendedConfigurations().get(0).signalId()); - Assertions.assertEquals("x", response.recommendedConfigurations().get(0).metricNamespace()); - Assertions.assertEquals("wpktvqylkmqpzoyh", response.recommendedConfigurations().get(0).metricName()); + Assertions.assertEquals("ljfp", response.recommendedConfigurations().get(0).signalId()); + Assertions.assertEquals("icrmnzh", response.recommendedConfigurations().get(0).metricNamespace()); + Assertions.assertEquals("mqgjsxvpq", response.recommendedConfigurations().get(0).metricName()); Assertions.assertEquals(MetricAggregationType.AVERAGE, response.recommendedConfigurations().get(0).aggregationType()); - Assertions.assertEquals("gwgcl", response.recommendedConfigurations().get(0).unit()); - Assertions.assertEquals("oebqinjipn", response.recommendedConfigurations().get(0).timeGrain()); - Assertions.assertEquals("fujqlafcba", response.recommendedConfigurations().get(0).dimensionFilter()); - Assertions.assertEquals(SignalOperator.LESS_THAN, + Assertions.assertEquals("mbodthsqqgvri", response.recommendedConfigurations().get(0).unit()); + Assertions.assertEquals("a", response.recommendedConfigurations().get(0).timeGrain()); + Assertions.assertEquals("lacjfrnxo", response.recommendedConfigurations().get(0).dimensionFilter()); + Assertions.assertEquals(SignalOperator.GREATER_THAN, response.recommendedConfigurations().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(31.11252736133039D, + Assertions.assertEquals(76.37014890744666D, response.recommendedConfigurations().get(0).evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, response.recommendedConfigurations().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, - response.recommendedConfigurations().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.EQUAL, response.recommendedConfigurations().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(63.4397466234802D, + Assertions.assertEquals(99.5019191717588D, response.recommendedConfigurations().get(0).evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.LOW, response.recommendedConfigurations().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - response.recommendedConfigurations().get(0).evaluationRules().unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetWithResponseMockTests.java index 7e80742c0cdc..2ae33b48ce40 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesGetWithResponseMockTests.java @@ -10,9 +10,9 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cloudhealth.CloudHealthManager; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.AlertSeverity; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; import com.azure.resourcemanager.cloudhealth.models.Entity; import com.azure.resourcemanager.cloudhealth.models.EntityImpact; import com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior; @@ -26,7 +26,7 @@ public final class EntitiesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"nelxieixynll\",\"canvasPosition\":{\"x\":53.369468145338104,\"y\":28.46095707949665},\"icon\":{\"iconName\":\"jphslhcaw\",\"customData\":\"tifdwfmvi\"},\"healthObjective\":19.023303806497882,\"impact\":\"Standard\",\"tags\":{\"n\":\"zhraglkafh\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"jeick\",\"azureResourceId\":\"zvcpopm\",\"azureResourceKind\":\"lnwcltyjed\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"mlfmkqs\"}],\"resourceHealth\":{\"enabled\":\"Enabled\",\"signalName\":\"wxtzxpuamwab\",\"status\":{}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"vxcushsphaivmx\",\"logAnalyticsWorkspaceResourceId\":\"asflvg\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"wywa\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"oi\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"nsmjbl\",\"azureMonitorWorkspaceResourceId\":\"ljhlnymzotq\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"uzcbmqq\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"xmvwfg\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"ayxonsupeujl\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"qnhcvsqltnzoibg\"}]},\"dependencies\":{\"aggregationType\":\"WorstOf\",\"degradedThreshold\":81.96881134688387,\"unhealthyThreshold\":73.65476136348418,\"unit\":\"Absolute\",\"ignoreUnknown\":false},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"dofdbxiqx\"},{\"signalKind\":\"External\",\"name\":\"iiqbi\"},{\"signalKind\":\"External\",\"name\":\"htmwwinh\"}]}},\"discoveredBy\":\"f\",\"healthState\":\"Deleted\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev1\",\"description\":\"cblembnkbwv\",\"actionGroupIds\":[\"kdi\"]},\"degraded\":{\"severity\":\"Sev3\",\"description\":\"ebwtswb\",\"actionGroupIds\":[\"fmd\",\"ragegi\",\"vcjfelisdjubggb\"]}}},\"id\":\"gkxkbsazgakg\",\"name\":\"cyrcmjdmspo\",\"type\":\"apvu\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"fnmdxotn\",\"canvasPosition\":{\"x\":21.495530457927604,\"y\":92.24707901253208},\"icon\":{\"iconName\":\"yzihgrkyuizabsn\",\"customData\":\"pphoj\"},\"healthObjective\":61.04008955074388,\"impact\":\"Suppressed\",\"tags\":{\"bgomfgbegl\":\"gzfc\",\"etnluankrrfx\":\"gleohi\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"btijvacvbm\",\"azureResourceId\":\"z\",\"azureResourceKind\":\"q\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"jrnwxacev\"}],\"resourceHealth\":{\"enabled\":\"Enabled\",\"signalName\":\"yxoaf\",\"status\":{}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"qltfaey\",\"logAnalyticsWorkspaceResourceId\":\"inmfgvxirp\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"iypoqeyhlqhykprl\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"yznuciqd\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"mexiitdfuxt\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"asiibmiybnnust\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"ljhnmgixhcmav\",\"azureMonitorWorkspaceResourceId\":\"qfoudorhcgyy\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"twypundmbxh\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"gcmjkavl\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"or\"}]},\"dependencies\":{\"aggregationType\":\"MaxNotHealthy\",\"degradedThreshold\":26.443396136329266,\"unhealthyThreshold\":39.175548926036896,\"unit\":\"Percentage\",\"ignoreUnknown\":false},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"zcyjtot\"},{\"signalKind\":\"External\",\"name\":\"vopvp\"},{\"signalKind\":\"External\",\"name\":\"dbzqgqqihed\"}]}},\"signalAggregationGroups\":[{\"name\":\"wthmkyib\",\"displayName\":\"sihsgqcwdhohsd\",\"aggregationType\":\"BestOf\",\"members\":[\"zsu\",\"cohdx\"],\"degradedThreshold\":9.468983744497361,\"unhealthyThreshold\":70.22171749330934,\"unit\":\"Percentage\",\"ignoreUnknown\":true,\"aggregatedHealthState\":\"Healthy\",\"unresolvedMembers\":[\"v\",\"qqxeyskon\",\"zinkfkbgbzbowxeq\",\"clj\"]},{\"name\":\"ygvkzqkjj\",\"displayName\":\"kbzefezrxcczurt\",\"aggregationType\":\"MaxNotHealthy\",\"members\":[\"q\",\"bkwvzg\",\"zvd\",\"bzdixzmq\"],\"degradedThreshold\":94.89354943678819,\"unhealthyThreshold\":87.23534736874922,\"unit\":\"Absolute\",\"ignoreUnknown\":false,\"aggregatedHealthState\":\"Unhealthy\",\"unresolvedMembers\":[\"mcgsbostzelnd\"]}],\"discoveredBy\":\"tutmzl\",\"healthState\":\"Unhealthy\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev2\",\"description\":\"hrbbpneqvcwwyy\",\"actionGroupIds\":[\"ochpprpr\",\"nmokayzejnhlbk\",\"bzpcpiljhahzvec\",\"ndbnwieh\"]},\"degraded\":{\"severity\":\"Sev2\",\"description\":\"jwiuubwefqsfapaq\",\"actionGroupIds\":[\"rrqwexjk\"]}}},\"id\":\"xap\",\"name\":\"wogqqnobpudcdab\",\"type\":\"qwpwyawbzasqbuc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,50 +36,62 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Entity response = manager.entities() - .getWithResponse("kyrioovzid", "xwaabzmifrygznmm", "xrizkzobgop", com.azure.core.util.Context.NONE) + .getWithResponse("mzdlyjdfqwmkyo", "ufdvruz", "lzo", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("nelxieixynll", response.properties().displayName()); - Assertions.assertEquals(53.369468145338104, response.properties().canvasPosition().x()); - Assertions.assertEquals(28.46095707949665, response.properties().canvasPosition().y()); - Assertions.assertEquals("jphslhcaw", response.properties().icon().iconName()); - Assertions.assertEquals("tifdwfmvi", response.properties().icon().customData()); - Assertions.assertEquals(19.023303806497882D, response.properties().healthObjective()); - Assertions.assertEquals(EntityImpact.STANDARD, response.properties().impact()); - Assertions.assertEquals("zhraglkafh", response.properties().tags().get("n")); - Assertions.assertEquals("jeick", response.properties().signalGroups().azureResource().authenticationSetting()); - Assertions.assertEquals("zvcpopm", response.properties().signalGroups().azureResource().azureResourceId()); - Assertions.assertEquals("lnwcltyjed", response.properties().signalGroups().azureResource().azureResourceKind()); - Assertions.assertEquals("mlfmkqs", + Assertions.assertEquals("fnmdxotn", response.properties().displayName()); + Assertions.assertEquals(21.495530457927604, response.properties().canvasPosition().x()); + Assertions.assertEquals(92.24707901253208, response.properties().canvasPosition().y()); + Assertions.assertEquals("yzihgrkyuizabsn", response.properties().icon().iconName()); + Assertions.assertEquals("pphoj", response.properties().icon().customData()); + Assertions.assertEquals(61.04008955074388D, response.properties().healthObjective()); + Assertions.assertEquals(EntityImpact.SUPPRESSED, response.properties().impact()); + Assertions.assertEquals("gzfc", response.properties().tags().get("bgomfgbegl")); + Assertions.assertEquals("btijvacvbm", + response.properties().signalGroups().azureResource().authenticationSetting()); + Assertions.assertEquals("z", response.properties().signalGroups().azureResource().azureResourceId()); + Assertions.assertEquals("q", response.properties().signalGroups().azureResource().azureResourceKind()); + Assertions.assertEquals("jrnwxacev", response.properties().signalGroups().azureResource().signals().get(0).name()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, response.properties().signalGroups().azureResource().resourceHealth().enabled()); - Assertions.assertEquals("vxcushsphaivmx", + Assertions.assertEquals("qltfaey", response.properties().signalGroups().azureLogAnalytics().authenticationSetting()); - Assertions.assertEquals("asflvg", + Assertions.assertEquals("inmfgvxirp", response.properties().signalGroups().azureLogAnalytics().logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("wywa", + Assertions.assertEquals("iypoqeyhlqhykprl", response.properties().signalGroups().azureLogAnalytics().signals().get(0).name()); - Assertions.assertEquals("nsmjbl", + Assertions.assertEquals("ljhnmgixhcmav", response.properties().signalGroups().azureMonitorWorkspace().authenticationSetting()); - Assertions.assertEquals("ljhlnymzotq", + Assertions.assertEquals("qfoudorhcgyy", response.properties().signalGroups().azureMonitorWorkspace().azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("uzcbmqq", + Assertions.assertEquals("twypundmbxh", response.properties().signalGroups().azureMonitorWorkspace().signals().get(0).name()); - Assertions.assertEquals(DependenciesAggregationType.WORST_OF, + Assertions.assertEquals(AggregationType.MAX_NOT_HEALTHY, response.properties().signalGroups().dependencies().aggregationType()); - Assertions.assertEquals(81.96881134688387D, + Assertions.assertEquals(26.443396136329266D, response.properties().signalGroups().dependencies().degradedThreshold()); - Assertions.assertEquals(73.65476136348418D, + Assertions.assertEquals(39.175548926036896D, response.properties().signalGroups().dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.ABSOLUTE, - response.properties().signalGroups().dependencies().unit()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, response.properties().signalGroups().dependencies().unit()); Assertions.assertFalse(response.properties().signalGroups().dependencies().ignoreUnknown()); - Assertions.assertEquals(AlertSeverity.SEV1, response.properties().alerts().unhealthy().severity()); - Assertions.assertEquals("cblembnkbwv", response.properties().alerts().unhealthy().description()); - Assertions.assertEquals("kdi", response.properties().alerts().unhealthy().actionGroupIds().get(0)); - Assertions.assertEquals(AlertSeverity.SEV3, response.properties().alerts().degraded().severity()); - Assertions.assertEquals("ebwtswb", response.properties().alerts().degraded().description()); - Assertions.assertEquals("fmd", response.properties().alerts().degraded().actionGroupIds().get(0)); + Assertions.assertEquals("wthmkyib", response.properties().signalAggregationGroups().get(0).name()); + Assertions.assertEquals("sihsgqcwdhohsd", response.properties().signalAggregationGroups().get(0).displayName()); + Assertions.assertEquals(AggregationType.BEST_OF, + response.properties().signalAggregationGroups().get(0).aggregationType()); + Assertions.assertEquals("zsu", response.properties().signalAggregationGroups().get(0).members().get(0)); + Assertions.assertEquals(9.468983744497361D, + response.properties().signalAggregationGroups().get(0).degradedThreshold()); + Assertions.assertEquals(70.22171749330934D, + response.properties().signalAggregationGroups().get(0).unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, + response.properties().signalAggregationGroups().get(0).unit()); + Assertions.assertTrue(response.properties().signalAggregationGroups().get(0).ignoreUnknown()); + Assertions.assertEquals(AlertSeverity.SEV2, response.properties().alerts().unhealthy().severity()); + Assertions.assertEquals("hrbbpneqvcwwyy", response.properties().alerts().unhealthy().description()); + Assertions.assertEquals("ochpprpr", response.properties().alerts().unhealthy().actionGroupIds().get(0)); + Assertions.assertEquals(AlertSeverity.SEV2, response.properties().alerts().degraded().severity()); + Assertions.assertEquals("jwiuubwefqsfapaq", response.properties().alerts().degraded().description()); + Assertions.assertEquals("rrqwexjk", response.properties().alerts().degraded().actionGroupIds().get(0)); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesIngestHealthReportWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesIngestHealthReportWithResponseMockTests.java index b645102d19fb..ad32f55a8317 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesIngestHealthReportWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesIngestHealthReportWithResponseMockTests.java @@ -14,7 +14,6 @@ import com.azure.resourcemanager.cloudhealth.models.HealthReportEvaluationRule; import com.azure.resourcemanager.cloudhealth.models.HealthReportRequest; import com.azure.resourcemanager.cloudhealth.models.HealthState; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; import java.nio.charset.StandardCharsets; @@ -35,21 +34,19 @@ public void testIngestHealthReportWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.entities() - .ingestHealthReportWithResponse("bpxuckpggqoweyi", "dhlisngwflqqmpi", "ruwnpqxpx", - new HealthReportRequest().withSignalName("wfcngjsaas") - .withHealthState(HealthState.HEALTHY) - .withValue(98.92737058101937D) + .ingestHealthReportWithResponse("ky", "cxcjxgry", "fmpcycilrmca", + new HealthReportRequest().withSignalName("kggnoxu") + .withHealthState(HealthState.DEGRADED) + .withValue(40.05409029458903D) .withEvaluationRules(new HealthReportEvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(12.26289221097444D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT15M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) - .withThreshold(33.32866768215571D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT1H))) - .withExpiresInMinutes(360439780) - .withAdditionalContext("t"), + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) + .withThreshold(1.8801026148641653D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) + .withThreshold(19.389890070162185D) + .withSensitivity(DynamicThresholdSensitivity.LOW))) + .withExpiresInMinutes(784891190) + .withAdditionalContext("kjaosrxuzv"), com.azure.core.util.Context.NONE); } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesListByHealthModelMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesListByHealthModelMockTests.java index dfc4b7049041..6dfb2d0dcad2 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesListByHealthModelMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntitiesListByHealthModelMockTests.java @@ -11,9 +11,9 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cloudhealth.CloudHealthManager; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.AlertSeverity; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; import com.azure.resourcemanager.cloudhealth.models.Entity; import com.azure.resourcemanager.cloudhealth.models.EntityImpact; import com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior; @@ -27,7 +27,7 @@ public final class EntitiesListByHealthModelMockTests { @Test public void testListByHealthModel() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"znktwfansnv\",\"canvasPosition\":{\"x\":62.951104906053814,\"y\":15.642417909391504},\"icon\":{\"iconName\":\"ostbzbkiwb\",\"customData\":\"n\"},\"healthObjective\":67.2286045627518,\"impact\":\"Limited\",\"tags\":{\"elfwy\":\"sgcrpfbcunezzce\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"wx\",\"azureResourceId\":\"wetnpsihc\",\"azureResourceKind\":\"fzvaylptr\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"wztcmwqkchc\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"waxfewzjkj\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"xfdeqvhpsyl\"}],\"resourceHealth\":{\"enabled\":\"Enabled\",\"signalName\":\"bffmbmxz\",\"status\":{}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"ywwpgjxsnptfuj\",\"logAnalyticsWorkspaceResourceId\":\"icgaao\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"taqutdewem\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"swvr\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"unzzjgehk\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"imrt\",\"azureMonitorWorkspaceResourceId\":\"xokffqyin\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"epqw\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"ixmonstshiyxg\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"elfclducc\"}]},\"dependencies\":{\"aggregationType\":\"MaxNotHealthy\",\"degradedThreshold\":18.709508916398665,\"unhealthyThreshold\":35.95393144161891,\"unit\":\"Absolute\",\"ignoreUnknown\":true},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"mninwjizcilng\"},{\"signalKind\":\"External\",\"name\":\"gshejjtbxqmulux\"}]}},\"discoveredBy\":\"qzvnersbycucr\",\"healthState\":\"Unknown\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev4\",\"description\":\"ebrqbsmswziqgfuh\",\"actionGroupIds\":[\"ruswhv\",\"czznvfbycjsxj\"]},\"degraded\":{\"severity\":\"Sev1\",\"description\":\"z\",\"actionGroupIds\":[\"wmxqhndvnoamlds\",\"haohdjhhflzokxc\",\"xpelnjetagltsx\",\"atftgzpnpbsw\"]}}},\"id\":\"floccsrmozih\",\"name\":\"ipgawtxx\",\"type\":\"ky\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"daultxijjumfq\",\"canvasPosition\":{\"x\":3.0164844744166475,\"y\":18.939402243407287},\"icon\":{\"iconName\":\"mcjn\",\"customData\":\"qdqx\"},\"healthObjective\":6.467295945970164,\"impact\":\"Standard\",\"tags\":{\"qglcfhmlrqryxynq\":\"usfzsvtuikzha\",\"ybbabpfhvfsl\":\"zrdpsovwxznptgoe\",\"kyrioovzid\":\"vntjlrigjk\",\"xrizkzobgop\":\"xwaabzmifrygznmm\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"slnelx\",\"azureResourceId\":\"eixynllxecwcroj\",\"azureResourceKind\":\"slhcawjutifd\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"vigorqjbttzhragl\"}],\"resourceHealth\":{\"enabled\":\"Disabled\",\"signalName\":\"n\",\"status\":{}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"jeick\",\"logAnalyticsWorkspaceResourceId\":\"zvcpopm\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"nwcl\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"yjede\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"xm\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"mkqscaz\",\"azureMonitorWorkspaceResourceId\":\"awx\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"puamwabzxr\"}]},\"dependencies\":{\"aggregationType\":\"WorstOf\",\"degradedThreshold\":0.9040500667357176,\"unhealthyThreshold\":22.06926391198015,\"unit\":\"Percentage\",\"ignoreUnknown\":true},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"sflvgsgzwywakoih\"},{\"signalKind\":\"External\",\"name\":\"nsmjbl\"}]}},\"signalAggregationGroups\":[{\"name\":\"hlnymzotq\",\"displayName\":\"yuzcbmqqvxmvw\",\"aggregationType\":\"WorstOf\",\"members\":[\"yxonsupe\",\"jlzqnhc\",\"sqltnzo\"],\"degradedThreshold\":64.98859711028547,\"unhealthyThreshold\":21.699993984671273,\"unit\":\"Absolute\",\"ignoreUnknown\":true,\"aggregatedHealthState\":\"Deleted\",\"unresolvedMembers\":[\"qoxwd\"]},{\"name\":\"fdbxiqxeiiqbim\",\"displayName\":\"mwwinhehfqpofv\",\"aggregationType\":\"MinHealthy\",\"members\":[\"lembnkbwvqvxkdi\",\"qihebw\",\"swbzuwfmdurage\",\"izvcjfe\"],\"degradedThreshold\":99.32111832814398,\"unhealthyThreshold\":68.99226353759904,\"unit\":\"Absolute\",\"ignoreUnknown\":false,\"aggregatedHealthState\":\"Unknown\",\"unresolvedMembers\":[\"kbsazgak\",\"acy\",\"cmjdmspof\"]},{\"name\":\"pv\",\"displayName\":\"rylniofrzg\",\"aggregationType\":\"WorstOf\",\"members\":[\"dmstk\"],\"degradedThreshold\":0.6011725036728977,\"unhealthyThreshold\":36.162832419063854,\"unit\":\"Percentage\",\"ignoreUnknown\":true,\"aggregatedHealthState\":\"Unknown\",\"unresolvedMembers\":[\"f\",\"nsnvpd\",\"bmikost\"]},{\"name\":\"z\",\"displayName\":\"iwbuqny\",\"aggregationType\":\"MaxNotHealthy\",\"members\":[\"fy\",\"sgcrpfbcunezzce\"],\"degradedThreshold\":81.8516339998456,\"unhealthyThreshold\":58.819040239109334,\"unit\":\"Absolute\",\"ignoreUnknown\":false,\"aggregatedHealthState\":\"Healthy\",\"unresolvedMembers\":[\"npsihclaf\",\"va\",\"lpt\"]}],\"discoveredBy\":\"qqwzt\",\"healthState\":\"Degraded\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev2\",\"description\":\"cxwaxfewz\",\"actionGroupIds\":[\"exfdeqvhpsylk\",\"shk\",\"ffmbmxzjrg\"]},\"degraded\":{\"severity\":\"Sev2\",\"description\":\"gjxsnptfu\",\"actionGroupIds\":[\"cg\",\"aoepttaqutdew\"]}}},\"id\":\"xswvru\",\"name\":\"nz\",\"type\":\"jgehkf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,68 +37,84 @@ public void testListByHealthModel() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.entities() - .listByHealthModel("rylniofrzg", "zjedmstkvnlv", OffsetDateTime.parse("2021-03-18T07:42:09Z"), + .listByHealthModel("jg", "yexaoguy", OffsetDateTime.parse("2021-04-03T20:50:10Z"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("znktwfansnv", response.iterator().next().properties().displayName()); - Assertions.assertEquals(62.951104906053814, response.iterator().next().properties().canvasPosition().x()); - Assertions.assertEquals(15.642417909391504, response.iterator().next().properties().canvasPosition().y()); - Assertions.assertEquals("ostbzbkiwb", response.iterator().next().properties().icon().iconName()); - Assertions.assertEquals("n", response.iterator().next().properties().icon().customData()); - Assertions.assertEquals(67.2286045627518D, response.iterator().next().properties().healthObjective()); - Assertions.assertEquals(EntityImpact.LIMITED, response.iterator().next().properties().impact()); - Assertions.assertEquals("sgcrpfbcunezzce", response.iterator().next().properties().tags().get("elfwy")); - Assertions.assertEquals("wx", + Assertions.assertEquals("daultxijjumfq", response.iterator().next().properties().displayName()); + Assertions.assertEquals(3.0164844744166475, response.iterator().next().properties().canvasPosition().x()); + Assertions.assertEquals(18.939402243407287, response.iterator().next().properties().canvasPosition().y()); + Assertions.assertEquals("mcjn", response.iterator().next().properties().icon().iconName()); + Assertions.assertEquals("qdqx", response.iterator().next().properties().icon().customData()); + Assertions.assertEquals(6.467295945970164D, response.iterator().next().properties().healthObjective()); + Assertions.assertEquals(EntityImpact.STANDARD, response.iterator().next().properties().impact()); + Assertions.assertEquals("usfzsvtuikzha", + response.iterator().next().properties().tags().get("qglcfhmlrqryxynq")); + Assertions.assertEquals("slnelx", response.iterator().next().properties().signalGroups().azureResource().authenticationSetting()); - Assertions.assertEquals("wetnpsihc", + Assertions.assertEquals("eixynllxecwcroj", response.iterator().next().properties().signalGroups().azureResource().azureResourceId()); - Assertions.assertEquals("fzvaylptr", + Assertions.assertEquals("slhcawjutifd", response.iterator().next().properties().signalGroups().azureResource().azureResourceKind()); - Assertions.assertEquals("wztcmwqkchc", + Assertions.assertEquals("vigorqjbttzhragl", response.iterator().next().properties().signalGroups().azureResource().signals().get(0).name()); - Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, + Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, response.iterator().next().properties().signalGroups().azureResource().resourceHealth().enabled()); - Assertions.assertEquals("ywwpgjxsnptfuj", + Assertions.assertEquals("jeick", response.iterator().next().properties().signalGroups().azureLogAnalytics().authenticationSetting()); - Assertions.assertEquals("icgaao", + Assertions.assertEquals("zvcpopm", response.iterator() .next() .properties() .signalGroups() .azureLogAnalytics() .logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("taqutdewem", + Assertions.assertEquals("nwcl", response.iterator().next().properties().signalGroups().azureLogAnalytics().signals().get(0).name()); - Assertions.assertEquals("imrt", + Assertions.assertEquals("mkqscaz", response.iterator().next().properties().signalGroups().azureMonitorWorkspace().authenticationSetting()); - Assertions.assertEquals("xokffqyin", + Assertions.assertEquals("awx", response.iterator() .next() .properties() .signalGroups() .azureMonitorWorkspace() .azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("epqw", + Assertions.assertEquals("puamwabzxr", response.iterator().next().properties().signalGroups().azureMonitorWorkspace().signals().get(0).name()); - Assertions.assertEquals(DependenciesAggregationType.MAX_NOT_HEALTHY, + Assertions.assertEquals(AggregationType.WORST_OF, response.iterator().next().properties().signalGroups().dependencies().aggregationType()); - Assertions.assertEquals(18.709508916398665D, + Assertions.assertEquals(0.9040500667357176D, response.iterator().next().properties().signalGroups().dependencies().degradedThreshold()); - Assertions.assertEquals(35.95393144161891D, + Assertions.assertEquals(22.06926391198015D, response.iterator().next().properties().signalGroups().dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.ABSOLUTE, + Assertions.assertEquals(AggregationUnit.PERCENTAGE, response.iterator().next().properties().signalGroups().dependencies().unit()); Assertions.assertTrue(response.iterator().next().properties().signalGroups().dependencies().ignoreUnknown()); - Assertions.assertEquals(AlertSeverity.SEV4, + Assertions.assertEquals("hlnymzotq", + response.iterator().next().properties().signalAggregationGroups().get(0).name()); + Assertions.assertEquals("yuzcbmqqvxmvw", + response.iterator().next().properties().signalAggregationGroups().get(0).displayName()); + Assertions.assertEquals(AggregationType.WORST_OF, + response.iterator().next().properties().signalAggregationGroups().get(0).aggregationType()); + Assertions.assertEquals("yxonsupe", + response.iterator().next().properties().signalAggregationGroups().get(0).members().get(0)); + Assertions.assertEquals(64.98859711028547D, + response.iterator().next().properties().signalAggregationGroups().get(0).degradedThreshold()); + Assertions.assertEquals(21.699993984671273D, + response.iterator().next().properties().signalAggregationGroups().get(0).unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, + response.iterator().next().properties().signalAggregationGroups().get(0).unit()); + Assertions.assertTrue(response.iterator().next().properties().signalAggregationGroups().get(0).ignoreUnknown()); + Assertions.assertEquals(AlertSeverity.SEV2, response.iterator().next().properties().alerts().unhealthy().severity()); - Assertions.assertEquals("ebrqbsmswziqgfuh", + Assertions.assertEquals("cxwaxfewz", response.iterator().next().properties().alerts().unhealthy().description()); - Assertions.assertEquals("ruswhv", + Assertions.assertEquals("exfdeqvhpsylk", response.iterator().next().properties().alerts().unhealthy().actionGroupIds().get(0)); - Assertions.assertEquals(AlertSeverity.SEV1, + Assertions.assertEquals(AlertSeverity.SEV2, response.iterator().next().properties().alerts().degraded().severity()); - Assertions.assertEquals("z", response.iterator().next().properties().alerts().degraded().description()); - Assertions.assertEquals("wmxqhndvnoamlds", + Assertions.assertEquals("gjxsnptfu", response.iterator().next().properties().alerts().degraded().description()); + Assertions.assertEquals("cg", response.iterator().next().properties().alerts().degraded().actionGroupIds().get(0)); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityAlertsTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityAlertsTests.java index 7f4aaf06dddb..9d20ee1b33ef 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityAlertsTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityAlertsTests.java @@ -15,31 +15,31 @@ public final class EntityAlertsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EntityAlerts model = BinaryData.fromString( - "{\"unhealthy\":{\"severity\":\"Sev2\",\"description\":\"onnxkrlgnyhm\",\"actionGroupIds\":[\"xkk\",\"thrrgh\"]},\"degraded\":{\"severity\":\"Sev4\",\"description\":\"hqxvcxgfrpdsofbs\",\"actionGroupIds\":[\"svbuswdvzyy\",\"ycnunvjsrtk\",\"awnopqgikyzirtxd\"]}}") + "{\"unhealthy\":{\"severity\":\"Sev0\",\"description\":\"r\",\"actionGroupIds\":[\"pij\",\"k\",\"xfrdd\"]},\"degraded\":{\"severity\":\"Sev4\",\"description\":\"tizzronasxif\",\"actionGroupIds\":[\"qyzhf\"]}}") .toObject(EntityAlerts.class); - Assertions.assertEquals(AlertSeverity.SEV2, model.unhealthy().severity()); - Assertions.assertEquals("onnxkrlgnyhm", model.unhealthy().description()); - Assertions.assertEquals("xkk", model.unhealthy().actionGroupIds().get(0)); + Assertions.assertEquals(AlertSeverity.SEV0, model.unhealthy().severity()); + Assertions.assertEquals("r", model.unhealthy().description()); + Assertions.assertEquals("pij", model.unhealthy().actionGroupIds().get(0)); Assertions.assertEquals(AlertSeverity.SEV4, model.degraded().severity()); - Assertions.assertEquals("hqxvcxgfrpdsofbs", model.degraded().description()); - Assertions.assertEquals("svbuswdvzyy", model.degraded().actionGroupIds().get(0)); + Assertions.assertEquals("tizzronasxif", model.degraded().description()); + Assertions.assertEquals("qyzhf", model.degraded().actionGroupIds().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EntityAlerts model = new EntityAlerts() - .withUnhealthy(new AlertConfiguration().withSeverity(AlertSeverity.SEV2) - .withDescription("onnxkrlgnyhm") - .withActionGroupIds(Arrays.asList("xkk", "thrrgh"))) + .withUnhealthy(new AlertConfiguration().withSeverity(AlertSeverity.SEV0) + .withDescription("r") + .withActionGroupIds(Arrays.asList("pij", "k", "xfrdd"))) .withDegraded(new AlertConfiguration().withSeverity(AlertSeverity.SEV4) - .withDescription("hqxvcxgfrpdsofbs") - .withActionGroupIds(Arrays.asList("svbuswdvzyy", "ycnunvjsrtk", "awnopqgikyzirtxd"))); + .withDescription("tizzronasxif") + .withActionGroupIds(Arrays.asList("qyzhf"))); model = BinaryData.fromObject(model).toObject(EntityAlerts.class); - Assertions.assertEquals(AlertSeverity.SEV2, model.unhealthy().severity()); - Assertions.assertEquals("onnxkrlgnyhm", model.unhealthy().description()); - Assertions.assertEquals("xkk", model.unhealthy().actionGroupIds().get(0)); + Assertions.assertEquals(AlertSeverity.SEV0, model.unhealthy().severity()); + Assertions.assertEquals("r", model.unhealthy().description()); + Assertions.assertEquals("pij", model.unhealthy().actionGroupIds().get(0)); Assertions.assertEquals(AlertSeverity.SEV4, model.degraded().severity()); - Assertions.assertEquals("hqxvcxgfrpdsofbs", model.degraded().description()); - Assertions.assertEquals("svbuswdvzyy", model.degraded().actionGroupIds().get(0)); + Assertions.assertEquals("tizzronasxif", model.degraded().description()); + Assertions.assertEquals("qyzhf", model.degraded().actionGroupIds().get(0)); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityCoordinatesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityCoordinatesTests.java index c120c0860799..cea3223fd4c1 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityCoordinatesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityCoordinatesTests.java @@ -11,17 +11,17 @@ public final class EntityCoordinatesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - EntityCoordinates model = BinaryData.fromString("{\"x\":38.20891491079552,\"y\":99.57627249485435}") + EntityCoordinates model = BinaryData.fromString("{\"x\":96.89248603996715,\"y\":18.46162114557731}") .toObject(EntityCoordinates.class); - Assertions.assertEquals(38.20891491079552, model.x()); - Assertions.assertEquals(99.57627249485435, model.y()); + Assertions.assertEquals(96.89248603996715, model.x()); + Assertions.assertEquals(18.46162114557731, model.y()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EntityCoordinates model = new EntityCoordinates().withX(38.20891491079552).withY(99.57627249485435); + EntityCoordinates model = new EntityCoordinates().withX(96.89248603996715).withY(18.46162114557731); model = BinaryData.fromObject(model).toObject(EntityCoordinates.class); - Assertions.assertEquals(38.20891491079552, model.x()); - Assertions.assertEquals(99.57627249485435, model.y()); + Assertions.assertEquals(96.89248603996715, model.x()); + Assertions.assertEquals(18.46162114557731, model.y()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityHistoryRequestTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityHistoryRequestTests.java index 06b4ec979a33..2464247e7e79 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityHistoryRequestTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityHistoryRequestTests.java @@ -13,25 +13,25 @@ public final class EntityHistoryRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EntityHistoryRequest model = BinaryData.fromString( - "{\"startAt\":\"2021-02-06T07:28:46Z\",\"endAt\":\"2021-08-05T02:44:40Z\",\"top\":1919581142,\"nextMarker\":\"u\"}") + "{\"startAt\":\"2021-06-15T04:05:50Z\",\"endAt\":\"2021-01-27T09:50:08Z\",\"top\":2128748498,\"nextMarker\":\"lyhpluodpvruud\"}") .toObject(EntityHistoryRequest.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-06T07:28:46Z"), model.startAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-05T02:44:40Z"), model.endAt()); - Assertions.assertEquals(1919581142, model.top()); - Assertions.assertEquals("u", model.nextMarker()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T04:05:50Z"), model.startAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-27T09:50:08Z"), model.endAt()); + Assertions.assertEquals(2128748498, model.top()); + Assertions.assertEquals("lyhpluodpvruud", model.nextMarker()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EntityHistoryRequest model - = new EntityHistoryRequest().withStartAt(OffsetDateTime.parse("2021-02-06T07:28:46Z")) - .withEndAt(OffsetDateTime.parse("2021-08-05T02:44:40Z")) - .withTop(1919581142) - .withNextMarker("u"); + = new EntityHistoryRequest().withStartAt(OffsetDateTime.parse("2021-06-15T04:05:50Z")) + .withEndAt(OffsetDateTime.parse("2021-01-27T09:50:08Z")) + .withTop(2128748498) + .withNextMarker("lyhpluodpvruud"); model = BinaryData.fromObject(model).toObject(EntityHistoryRequest.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-06T07:28:46Z"), model.startAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-05T02:44:40Z"), model.endAt()); - Assertions.assertEquals(1919581142, model.top()); - Assertions.assertEquals("u", model.nextMarker()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T04:05:50Z"), model.startAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-27T09:50:08Z"), model.endAt()); + Assertions.assertEquals(2128748498, model.top()); + Assertions.assertEquals("lyhpluodpvruud", model.nextMarker()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityHistoryResponseInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityHistoryResponseInnerTests.java index dab6deba458b..92ed7b97eac3 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityHistoryResponseInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityHistoryResponseInnerTests.java @@ -14,13 +14,13 @@ public final class EntityHistoryResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EntityHistoryResponseInner model = BinaryData.fromString( - "{\"entityName\":\"cbgoor\",\"history\":[{\"previousState\":\"Deleted\",\"newState\":\"Degraded\",\"occurredAt\":\"2021-10-30T08:46:10Z\",\"reason\":\"fhjxakvvjgs\"}],\"nextMarker\":\"r\"}") + "{\"entityName\":\"gzibthostgktstv\",\"history\":[{\"previousState\":\"Degraded\",\"newState\":\"Degraded\",\"occurredAt\":\"2021-01-30T12:26:40Z\",\"reason\":\"edqbc\"},{\"previousState\":\"Deleted\",\"newState\":\"Healthy\",\"occurredAt\":\"2021-05-30T06:38:55Z\",\"reason\":\"plodqkdlwwqfbu\"},{\"previousState\":\"Degraded\",\"newState\":\"Healthy\",\"occurredAt\":\"2021-01-09T13:22:40Z\",\"reason\":\"rqjfsmlm\"},{\"previousState\":\"Unhealthy\",\"newState\":\"Healthy\",\"occurredAt\":\"2021-11-04T06:43:27Z\",\"reason\":\"gfwsrtaw\"}],\"nextMarker\":\"ezbrhubskh\"}") .toObject(EntityHistoryResponseInner.class); - Assertions.assertEquals("cbgoor", model.entityName()); - Assertions.assertEquals(HealthState.DELETED, model.history().get(0).previousState()); + Assertions.assertEquals("gzibthostgktstv", model.entityName()); + Assertions.assertEquals(HealthState.DEGRADED, model.history().get(0).previousState()); Assertions.assertEquals(HealthState.DEGRADED, model.history().get(0).newState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-30T08:46:10Z"), model.history().get(0).occurredAt()); - Assertions.assertEquals("fhjxakvvjgs", model.history().get(0).reason()); - Assertions.assertEquals("r", model.nextMarker()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-30T12:26:40Z"), model.history().get(0).occurredAt()); + Assertions.assertEquals("edqbc", model.history().get(0).reason()); + Assertions.assertEquals("ezbrhubskh", model.nextMarker()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityInnerTests.java index 69d43aee67d1..e51896d45e80 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityInnerTests.java @@ -6,14 +6,14 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.fluent.models.EntityInner; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.AlertConfiguration; import com.azure.resourcemanager.cloudhealth.models.AlertSeverity; import com.azure.resourcemanager.cloudhealth.models.AzureMonitorWorkspaceSignals; import com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignals; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; import com.azure.resourcemanager.cloudhealth.models.DependenciesSignalGroupV2; import com.azure.resourcemanager.cloudhealth.models.EntityAlerts; import com.azure.resourcemanager.cloudhealth.models.EntityCoordinates; @@ -27,6 +27,7 @@ import com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior; +import com.azure.resourcemanager.cloudhealth.models.SignalAggregationGroup; import com.azure.resourcemanager.cloudhealth.models.SignalGroups; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; @@ -39,38 +40,36 @@ public final class EntityInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EntityInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"hxmzsbbzoggig\",\"canvasPosition\":{\"x\":96.82645603036897,\"y\":6.638036963167782},\"icon\":{\"iconName\":\"jx\",\"customData\":\"nspydptkoenkoukn\"},\"healthObjective\":79.01164968162665,\"impact\":\"Standard\",\"tags\":{\"pazyxoegukg\":\"bldngkpoc\",\"mrbpizcdrqj\":\"npiucgygevqznty\",\"yhxdeoejzicwi\":\"dpydn\",\"bkh\":\"sjttgzfbish\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"eyeam\",\"azureResourceId\":\"p\",\"azureResourceKind\":\"g\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"uxwgipwho\",\"metricName\":\"wkgshwa\",\"timeGrain\":\"ixzbinjeputtmryw\",\"aggregationType\":\"Maximum\",\"dimensionFilter\":\"qftiy\",\"displayName\":\"rnkcqvyxlw\",\"refreshInterval\":\"PT1H\",\"dataUnit\":\"icohoqqnwvl\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\"}},\"name\":\"vwhheunmmqhgyx\",\"signalDefinitionName\":\"onocukok\",\"status\":{}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"xuconu\",\"metricName\":\"zf\",\"timeGrain\":\"eyp\",\"aggregationType\":\"None\",\"dimensionFilter\":\"jmwvvj\",\"displayName\":\"tcxsenhwlrs\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"pwvlqdq\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"Dynamic\"}},\"name\":\"qylihkaetckt\",\"signalDefinitionName\":\"civfsnkymuctq\",\"status\":{}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"bebrjcxerfuwuttt\",\"metricName\":\"vjrbirphxepcyvah\",\"timeGrain\":\"ljkyqxjvuuj\",\"aggregationType\":\"Count\",\"dimensionFilter\":\"ok\",\"displayName\":\"ljyoxgvcltb\",\"refreshInterval\":\"PT15M\",\"dataUnit\":\"ghkjeszzhbi\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"GreaterThan\"}},\"name\":\"xfvgxbfsmxne\",\"signalDefinitionName\":\"pvecxgodeb\",\"status\":{}}],\"resourceHealth\":{\"enabled\":\"Disabled\",\"signalName\":\"mpukgriw\",\"status\":{\"healthState\":\"Healthy\",\"value\":63.87031163064278,\"reportedAt\":\"2021-09-10T17:06:39Z\",\"error\":\"zycispn\",\"additionalContext\":\"ahmgkbrp\",\"availabilityState\":\"Unavailable\",\"category\":\"Unplanned\",\"detailedStatus\":\"nuqqkpikadrgvt\",\"summary\":\"gnbuy\",\"reasonType\":\"Unplanned\",\"reasonChronicity\":\"Persistent\",\"availabilityReportedTime\":\"2021-07-11T17:28:04Z\"}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"bfs\",\"logAnalyticsWorkspaceResourceId\":\"arbu\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"pnazzm\",\"timeGrain\":\"runmp\",\"valueColumnName\":\"tdbhrbnla\",\"displayName\":\"xmyskp\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"btkcxywnytnrsyn\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\"}},\"name\":\"dybyxczfclhaa\",\"signalDefinitionName\":\"babphlwrqlfk\",\"status\":{}},{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"hsucoc\",\"timeGrain\":\"yyazttbt\",\"valueColumnName\":\"rq\",\"displayName\":\"edckzywbiexzfey\",\"refreshInterval\":\"PT30M\",\"dataUnit\":\"ibx\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"bhqwalmuzyoxa\",\"signalDefinitionName\":\"dkzjancuxrh\",\"status\":{}},{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"avxbniwdjswztsdb\",\"timeGrain\":\"nxytxh\",\"valueColumnName\":\"xbzpfzab\",\"displayName\":\"cuh\",\"refreshInterval\":\"PT15M\",\"dataUnit\":\"tyq\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"bbovplwzbhvgyugu\",\"signalDefinitionName\":\"vmkfssxqu\",\"status\":{}},{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"plgmgsxnk\",\"timeGrain\":\"kde\",\"valueColumnName\":\"pvlopwiyighxpkd\",\"displayName\":\"baiuebbaumny\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"deoj\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"Dynamic\"}},\"name\":\"ckhsmtxpsieb\",\"signalDefinitionName\":\"hvpesapskrdqm\",\"status\":{}}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"dhtldwkyz\",\"azureMonitorWorkspaceResourceId\":\"uutkncw\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"vlxotogtwrupqsx\",\"timeGrain\":\"micykvceoveilo\",\"displayName\":\"oty\",\"refreshInterval\":\"PT15M\",\"dataUnit\":\"njbkcnxdhbttkph\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"Equal\"}},\"name\":\"nv\",\"signalDefinitionName\":\"oqnermclfpl\",\"status\":{}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"xus\",\"timeGrain\":\"pabgyeps\",\"displayName\":\"tazqugxywpmueefj\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"kqujidsuyono\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"GreaterThan\"}},\"name\":\"aocqxtccmgy\",\"signalDefinitionName\":\"xy\",\"status\":{}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"oyrxvwfudwpzntxh\",\"timeGrain\":\"hl\",\"displayName\":\"jbhckfrlhr\",\"refreshInterval\":\"PT5M\",\"dataUnit\":\"yvpycanuzbpzk\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\"}},\"name\":\"uwbc\",\"signalDefinitionName\":\"wbme\",\"status\":{}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"eyvjusrtslhspkde\",\"timeGrain\":\"aofmxagkvtme\",\"displayName\":\"qkrhahvljua\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"hcdhmdual\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"qpv\",\"signalDefinitionName\":\"dmwsrcrgvxpvgomz\",\"status\":{}}]},\"dependencies\":{\"aggregationType\":\"WorstOf\",\"degradedThreshold\":17.03214376444202,\"unhealthyThreshold\":41.629207197030425,\"unit\":\"Absolute\",\"ignoreUnknown\":true},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"Equal\"}},\"name\":\"ali\",\"signalDefinitionName\":\"rqhakauha\",\"status\":{}}]}},\"discoveredBy\":\"fwxosowzxcu\",\"healthState\":\"Degraded\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev2\",\"description\":\"djeb\",\"actionGroupIds\":[\"cwwfvovbvme\"]},\"degraded\":{\"severity\":\"Sev0\",\"description\":\"vyhzceuojgjrwj\",\"actionGroupIds\":[\"otwmcdyt\",\"x\",\"it\",\"nrjawgqwg\"]}}},\"id\":\"ni\",\"name\":\"kxfbkpycgklwndn\",\"type\":\"jdauwhvy\"}") + "{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"de\",\"canvasPosition\":{\"x\":59.38436104206891,\"y\":50.02161595332478},\"icon\":{\"iconName\":\"ifsjttgzfbishcb\",\"customData\":\"ajdeyeamdphaga\"},\"healthObjective\":42.4135126427612,\"impact\":\"Standard\",\"tags\":{\"hwankixzbinjepu\":\"pwhonowkg\",\"uzoqft\":\"tmryw\",\"zlsico\":\"yqzrnkcqvyxlw\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"qnwvlrya\",\"azureResourceId\":\"w\",\"azureResourceKind\":\"eun\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"gyxzk\",\"metricName\":\"ocukoklyax\",\"timeGrain\":\"onuq\",\"aggregationType\":\"Average\",\"dimensionFilter\":\"beypewrmjmw\",\"displayName\":\"jektcxsenh\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"ffrzpwvlqdqgbiqy\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\"}},\"name\":\"kaet\",\"signalDefinitionName\":\"tvfcivfsn\",\"status\":{}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"uctqhjfbe\",\"metricName\":\"jcxerfuwu\",\"timeGrain\":\"txfvjrbirph\",\"aggregationType\":\"Maximum\",\"dimensionFilter\":\"yva\",\"displayName\":\"nljky\",\"refreshInterval\":\"PT1H\",\"dataUnit\":\"uujqgidokgjljyo\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\"}},\"name\":\"cltbgsncghkjesz\",\"signalDefinitionName\":\"bijhtxfvgxbf\",\"status\":{}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"nehmpvecx\",\"metricName\":\"debfqkkrbmpukgri\",\"timeGrain\":\"lzlfbxzpuz\",\"aggregationType\":\"Maximum\",\"dimensionFilter\":\"pnq\",\"displayName\":\"hmgkbrpyy\",\"refreshInterval\":\"PT5M\",\"dataUnit\":\"nuqqkpikadrgvt\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"GreaterThan\"}},\"name\":\"n\",\"signalDefinitionName\":\"ynhijggme\",\"status\":{}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"iarbutrcvpna\",\"metricName\":\"mhjrunmpxttdbhr\",\"timeGrain\":\"l\",\"aggregationType\":\"Total\",\"dimensionFilter\":\"myskpbhenbtkcxy\",\"displayName\":\"y\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"yn\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\"}},\"name\":\"dybyxczfclhaa\",\"signalDefinitionName\":\"babphlwrqlfk\",\"status\":{}}],\"resourceHealth\":{\"enabled\":\"Disabled\",\"signalName\":\"cocmnyyaztt\",\"status\":{\"healthState\":\"Degraded\",\"value\":85.61408504569917,\"reportedAt\":\"2021-09-02T22:18:46Z\",\"error\":\"ckzywbiexzfeyue\",\"additionalContext\":\"ibx\",\"availabilityState\":\"Unavailable\",\"category\":\"Planned\",\"detailedStatus\":\"walm\",\"summary\":\"yoxa\",\"reasonType\":\"Planned\",\"reasonChronicity\":\"Persistent\",\"availabilityReportedTime\":\"2021-04-12T11:36:11Z\"}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"cuxrhdwbavx\",\"logAnalyticsWorkspaceResourceId\":\"niwdjsw\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"bpg\",\"timeGrain\":\"ytxhp\",\"valueColumnName\":\"bzpfzab\",\"displayName\":\"cuh\",\"refreshInterval\":\"PT15M\",\"dataUnit\":\"tyq\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"bbovplwzbhvgyugu\",\"signalDefinitionName\":\"vmkfssxqu\",\"status\":{}}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"plgmgsxnk\",\"azureMonitorWorkspaceResourceId\":\"zkd\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"vlopwiyighx\",\"timeGrain\":\"dwzbaiue\",\"displayName\":\"a\",\"refreshInterval\":\"PT5M\",\"dataUnit\":\"qupedeojnab\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"smtxpsieb\",\"signalDefinitionName\":\"hvpesapskrdqm\",\"status\":{}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"dhtldwkyz\",\"timeGrain\":\"utknc\",\"displayName\":\"cwsvlxotog\",\"refreshInterval\":\"PT15M\",\"dataUnit\":\"pqsxvnmicy\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"Equal\"}},\"name\":\"eoveilovnotyf\",\"signalDefinitionName\":\"cnjbkcnxdhbt\",\"status\":{}}]},\"dependencies\":{\"aggregationType\":\"WorstOf\",\"degradedThreshold\":18.372621908329123,\"unhealthyThreshold\":79.91289841285625,\"unit\":\"Percentage\",\"ignoreUnknown\":false},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"fpl\",\"signalDefinitionName\":\"oxuscrpabgyepsbj\",\"status\":{}},{\"signalKind\":\"External\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"Dynamic\"}},\"name\":\"ugxywpmueef\",\"signalDefinitionName\":\"wfqkquj\",\"status\":{}},{\"signalKind\":\"External\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\"}},\"name\":\"yonobgl\",\"signalDefinitionName\":\"cq\",\"status\":{}},{\"signalKind\":\"External\",\"evaluationRules\":{\"unhealthyRule\":{\"operator\":\"Equal\"}},\"name\":\"mgyudxytlmoyrxv\",\"signalDefinitionName\":\"u\",\"status\":{}}]}},\"signalAggregationGroups\":[{\"name\":\"ntxhdzhlrqjbhck\",\"displayName\":\"lhrxsbkyvpyc\",\"aggregationType\":\"MinHealthy\",\"members\":[\"bpzkafkuwbc\"],\"degradedThreshold\":22.04260275174391,\"unhealthyThreshold\":79.50020038945053,\"unit\":\"Absolute\",\"ignoreUnknown\":true,\"aggregatedHealthState\":\"Unhealthy\",\"unresolvedMembers\":[\"rts\",\"hspkdeemao\",\"mx\",\"gkvtmelmqkrhah\"]},{\"name\":\"ljuahaquhcdh\",\"displayName\":\"ualaexqpvfadmw\",\"aggregationType\":\"MinHealthy\",\"members\":[\"gvxp\"],\"degradedThreshold\":43.749611952732714,\"unhealthyThreshold\":8.818243833224171,\"unit\":\"Percentage\",\"ignoreUnknown\":false,\"aggregatedHealthState\":\"Degraded\",\"unresolvedMembers\":[\"beldawkzbaliourq\"]}],\"discoveredBy\":\"kauhashsfwxo\",\"healthState\":\"Deleted\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev1\",\"description\":\"gicjooxdjeb\",\"actionGroupIds\":[\"cwwfvovbvme\"]},\"degraded\":{\"severity\":\"Sev0\",\"description\":\"vyhzceuojgjrwj\",\"actionGroupIds\":[\"otwmcdyt\",\"x\",\"it\",\"nrjawgqwg\"]}}},\"id\":\"ni\",\"name\":\"kxfbkpycgklwndn\",\"type\":\"jdauwhvy\"}") .toObject(EntityInner.class); - Assertions.assertEquals("hxmzsbbzoggig", model.properties().displayName()); - Assertions.assertEquals(96.82645603036897, model.properties().canvasPosition().x()); - Assertions.assertEquals(6.638036963167782, model.properties().canvasPosition().y()); - Assertions.assertEquals("jx", model.properties().icon().iconName()); - Assertions.assertEquals("nspydptkoenkoukn", model.properties().icon().customData()); - Assertions.assertEquals(79.01164968162665D, model.properties().healthObjective()); + Assertions.assertEquals("de", model.properties().displayName()); + Assertions.assertEquals(59.38436104206891, model.properties().canvasPosition().x()); + Assertions.assertEquals(50.02161595332478, model.properties().canvasPosition().y()); + Assertions.assertEquals("ifsjttgzfbishcb", model.properties().icon().iconName()); + Assertions.assertEquals("ajdeyeamdphaga", model.properties().icon().customData()); + Assertions.assertEquals(42.4135126427612D, model.properties().healthObjective()); Assertions.assertEquals(EntityImpact.STANDARD, model.properties().impact()); - Assertions.assertEquals("bldngkpoc", model.properties().tags().get("pazyxoegukg")); - Assertions.assertEquals("eyeam", model.properties().signalGroups().azureResource().authenticationSetting()); - Assertions.assertEquals("p", model.properties().signalGroups().azureResource().azureResourceId()); - Assertions.assertEquals("g", model.properties().signalGroups().azureResource().azureResourceKind()); - Assertions.assertEquals("vwhheunmmqhgyx", - model.properties().signalGroups().azureResource().signals().get(0).name()); - Assertions.assertEquals("onocukok", + Assertions.assertEquals("pwhonowkg", model.properties().tags().get("hwankixzbinjepu")); + Assertions.assertEquals("qnwvlrya", model.properties().signalGroups().azureResource().authenticationSetting()); + Assertions.assertEquals("w", model.properties().signalGroups().azureResource().azureResourceId()); + Assertions.assertEquals("eun", model.properties().signalGroups().azureResource().azureResourceKind()); + Assertions.assertEquals("kaet", model.properties().signalGroups().azureResource().signals().get(0).name()); + Assertions.assertEquals("tvfcivfsn", model.properties().signalGroups().azureResource().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("uxwgipwho", + Assertions.assertEquals("gyxzk", model.properties().signalGroups().azureResource().signals().get(0).metricNamespace()); - Assertions.assertEquals("wkgshwa", + Assertions.assertEquals("ocukoklyax", model.properties().signalGroups().azureResource().signals().get(0).metricName()); - Assertions.assertEquals("ixzbinjeputtmryw", - model.properties().signalGroups().azureResource().signals().get(0).timeGrain()); - Assertions.assertEquals(MetricAggregationType.MAXIMUM, + Assertions.assertEquals("onuq", model.properties().signalGroups().azureResource().signals().get(0).timeGrain()); + Assertions.assertEquals(MetricAggregationType.AVERAGE, model.properties().signalGroups().azureResource().signals().get(0).aggregationType()); - Assertions.assertEquals("qftiy", + Assertions.assertEquals("beypewrmjmw", model.properties().signalGroups().azureResource().signals().get(0).dimensionFilter()); - Assertions.assertEquals("rnkcqvyxlw", + Assertions.assertEquals("jektcxsenh", model.properties().signalGroups().azureResource().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT1H, + Assertions.assertEquals(RefreshInterval.PT1M, model.properties().signalGroups().azureResource().signals().get(0).refreshInterval()); - Assertions.assertEquals("icohoqqnwvl", + Assertions.assertEquals("ffrzpwvlqdqgbiqy", model.properties().signalGroups().azureResource().signals().get(0).dataUnit()); Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.properties() @@ -83,26 +82,27 @@ public void testDeserialize() throws Exception { .operator()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, model.properties().signalGroups().azureResource().resourceHealth().enabled()); - Assertions.assertEquals("bfs", model.properties().signalGroups().azureLogAnalytics().authenticationSetting()); - Assertions.assertEquals("arbu", + Assertions.assertEquals("cuxrhdwbavx", + model.properties().signalGroups().azureLogAnalytics().authenticationSetting()); + Assertions.assertEquals("niwdjsw", model.properties().signalGroups().azureLogAnalytics().logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("dybyxczfclhaa", + Assertions.assertEquals("bbovplwzbhvgyugu", model.properties().signalGroups().azureLogAnalytics().signals().get(0).name()); - Assertions.assertEquals("babphlwrqlfk", + Assertions.assertEquals("vmkfssxqu", model.properties().signalGroups().azureLogAnalytics().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("pnazzm", + Assertions.assertEquals("bpg", model.properties().signalGroups().azureLogAnalytics().signals().get(0).queryText()); - Assertions.assertEquals("runmp", + Assertions.assertEquals("ytxhp", model.properties().signalGroups().azureLogAnalytics().signals().get(0).timeGrain()); - Assertions.assertEquals("tdbhrbnla", + Assertions.assertEquals("bzpfzab", model.properties().signalGroups().azureLogAnalytics().signals().get(0).valueColumnName()); - Assertions.assertEquals("xmyskp", + Assertions.assertEquals("cuh", model.properties().signalGroups().azureLogAnalytics().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT2H, + Assertions.assertEquals(RefreshInterval.PT15M, model.properties().signalGroups().azureLogAnalytics().signals().get(0).refreshInterval()); - Assertions.assertEquals("btkcxywnytnrsyn", + Assertions.assertEquals("tyq", model.properties().signalGroups().azureLogAnalytics().signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.LESS_THAN, model.properties() .signalGroups() .azureLogAnalytics() @@ -111,25 +111,25 @@ public void testDeserialize() throws Exception { .evaluationRules() .unhealthyRule() .operator()); - Assertions.assertEquals("dhtldwkyz", + Assertions.assertEquals("plgmgsxnk", model.properties().signalGroups().azureMonitorWorkspace().authenticationSetting()); - Assertions.assertEquals("uutkncw", + Assertions.assertEquals("zkd", model.properties().signalGroups().azureMonitorWorkspace().azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("nv", + Assertions.assertEquals("smtxpsieb", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).name()); - Assertions.assertEquals("oqnermclfpl", + Assertions.assertEquals("hvpesapskrdqm", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("vlxotogtwrupqsx", + Assertions.assertEquals("vlopwiyighx", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).queryText()); - Assertions.assertEquals("micykvceoveilo", + Assertions.assertEquals("dwzbaiue", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).timeGrain()); - Assertions.assertEquals("oty", + Assertions.assertEquals("a", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT15M, + Assertions.assertEquals(RefreshInterval.PT5M, model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).refreshInterval()); - Assertions.assertEquals("njbkcnxdhbttkph", + Assertions.assertEquals("qupedeojnab", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.EQUAL, + Assertions.assertEquals(SignalOperator.LESS_THAN, model.properties() .signalGroups() .azureMonitorWorkspace() @@ -138,17 +138,27 @@ public void testDeserialize() throws Exception { .evaluationRules() .unhealthyRule() .operator()); - Assertions.assertEquals(DependenciesAggregationType.WORST_OF, + Assertions.assertEquals(AggregationType.WORST_OF, model.properties().signalGroups().dependencies().aggregationType()); - Assertions.assertEquals(17.03214376444202D, + Assertions.assertEquals(18.372621908329123D, model.properties().signalGroups().dependencies().degradedThreshold()); - Assertions.assertEquals(41.629207197030425D, + Assertions.assertEquals(79.91289841285625D, model.properties().signalGroups().dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.ABSOLUTE, - model.properties().signalGroups().dependencies().unit()); - Assertions.assertTrue(model.properties().signalGroups().dependencies().ignoreUnknown()); - Assertions.assertEquals(AlertSeverity.SEV2, model.properties().alerts().unhealthy().severity()); - Assertions.assertEquals("djeb", model.properties().alerts().unhealthy().description()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, model.properties().signalGroups().dependencies().unit()); + Assertions.assertFalse(model.properties().signalGroups().dependencies().ignoreUnknown()); + Assertions.assertEquals("ntxhdzhlrqjbhck", model.properties().signalAggregationGroups().get(0).name()); + Assertions.assertEquals("lhrxsbkyvpyc", model.properties().signalAggregationGroups().get(0).displayName()); + Assertions.assertEquals(AggregationType.MIN_HEALTHY, + model.properties().signalAggregationGroups().get(0).aggregationType()); + Assertions.assertEquals("bpzkafkuwbc", model.properties().signalAggregationGroups().get(0).members().get(0)); + Assertions.assertEquals(22.04260275174391D, + model.properties().signalAggregationGroups().get(0).degradedThreshold()); + Assertions.assertEquals(79.50020038945053D, + model.properties().signalAggregationGroups().get(0).unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, model.properties().signalAggregationGroups().get(0).unit()); + Assertions.assertTrue(model.properties().signalAggregationGroups().get(0).ignoreUnknown()); + Assertions.assertEquals(AlertSeverity.SEV1, model.properties().alerts().unhealthy().severity()); + Assertions.assertEquals("gicjooxdjeb", model.properties().alerts().unhealthy().description()); Assertions.assertEquals("cwwfvovbvme", model.properties().alerts().unhealthy().actionGroupIds().get(0)); Assertions.assertEquals(AlertSeverity.SEV0, model.properties().alerts().degraded().severity()); Assertions.assertEquals("vyhzceuojgjrwj", model.properties().alerts().degraded().description()); @@ -157,182 +167,163 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EntityInner model = new EntityInner().withProperties(new EntityProperties().withDisplayName("hxmzsbbzoggig") - .withCanvasPosition(new EntityCoordinates().withX(96.82645603036897).withY(6.638036963167782)) - .withIcon(new IconDefinition().withIconName("jx").withCustomData("nspydptkoenkoukn")) - .withHealthObjective(79.01164968162665D) - .withImpact(EntityImpact.STANDARD) - .withTags(mapOf("pazyxoegukg", "bldngkpoc", "mrbpizcdrqj", "npiucgygevqznty", "yhxdeoejzicwi", "dpydn", - "bkh", "sjttgzfbish")) - .withSignalGroups(new SignalGroups() - .withAzureResource(new AzureResourceSignals().withAuthenticationSetting("eyeam") - .withAzureResourceId("p") - .withAzureResourceKind("g") - .withSignals(Arrays.asList( - new AzureResourceSignal().withName("vwhheunmmqhgyx") - .withSignalDefinitionName("onocukok") - .withMetricNamespace("uxwgipwho") - .withMetricName("wkgshwa") - .withTimeGrain("ixzbinjeputtmryw") - .withAggregationType(MetricAggregationType.MAXIMUM) - .withDimensionFilter("qftiy") - .withDisplayName("rnkcqvyxlw") - .withRefreshInterval(RefreshInterval.PT1H) - .withDataUnit("icohoqqnwvl") - .withEvaluationRules(new EvaluationRule().withUnhealthyRule( - new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL))), - new AzureResourceSignal().withName("qylihkaetckt") - .withSignalDefinitionName("civfsnkymuctq") - .withMetricNamespace("xuconu") - .withMetricName("zf") - .withTimeGrain("eyp") - .withAggregationType(MetricAggregationType.NONE) - .withDimensionFilter("jmwvvj") - .withDisplayName("tcxsenhwlrs") - .withRefreshInterval(RefreshInterval.PT10M) - .withDataUnit("pwvlqdq") - .withEvaluationRules(new EvaluationRule() - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC))), - new AzureResourceSignal().withName("xfvgxbfsmxne") - .withSignalDefinitionName("pvecxgodeb") - .withMetricNamespace("bebrjcxerfuwuttt") - .withMetricName("vjrbirphxepcyvah") - .withTimeGrain("ljkyqxjvuuj") - .withAggregationType(MetricAggregationType.COUNT) - .withDimensionFilter("ok") - .withDisplayName("ljyoxgvcltb") - .withRefreshInterval(RefreshInterval.PT15M) - .withDataUnit("ghkjeszzhbi") - .withEvaluationRules(new EvaluationRule() - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN))))) - .withResourceHealth(new AzureResourceHealthSignal() - .withEnabled(ResourceHealthAvailabilityStateSignalBehavior.DISABLED))) - .withAzureLogAnalytics(new LogAnalyticsSignals().withAuthenticationSetting("bfs") - .withLogAnalyticsWorkspaceResourceId("arbu") - .withSignals(Arrays.asList( - new LogAnalyticsSignal().withName("dybyxczfclhaa") - .withSignalDefinitionName("babphlwrqlfk") - .withQueryText("pnazzm") - .withTimeGrain("runmp") - .withValueColumnName("tdbhrbnla") - .withDisplayName("xmyskp") - .withRefreshInterval(RefreshInterval.PT2H) - .withDataUnit("btkcxywnytnrsyn") - .withEvaluationRules(new EvaluationRule().withUnhealthyRule( - new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL))), - new LogAnalyticsSignal().withName("bhqwalmuzyoxa") - .withSignalDefinitionName("dkzjancuxrh") - .withQueryText("hsucoc") - .withTimeGrain("yyazttbt") - .withValueColumnName("rq") - .withDisplayName("edckzywbiexzfey") - .withRefreshInterval(RefreshInterval.PT30M) - .withDataUnit("ibx") - .withEvaluationRules(new EvaluationRule() - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN))), - new LogAnalyticsSignal().withName("bbovplwzbhvgyugu") - .withSignalDefinitionName("vmkfssxqu") - .withQueryText("avxbniwdjswztsdb") - .withTimeGrain("nxytxh") - .withValueColumnName("xbzpfzab") - .withDisplayName("cuh") - .withRefreshInterval(RefreshInterval.PT15M) - .withDataUnit("tyq") - .withEvaluationRules(new EvaluationRule() - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN))), - new LogAnalyticsSignal().withName("ckhsmtxpsieb") - .withSignalDefinitionName("hvpesapskrdqm") - .withQueryText("plgmgsxnk") - .withTimeGrain("kde") - .withValueColumnName("pvlopwiyighxpkd") - .withDisplayName("baiuebbaumny") - .withRefreshInterval(RefreshInterval.PT2H) - .withDataUnit("deoj") - .withEvaluationRules(new EvaluationRule() - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC)))))) - .withAzureMonitorWorkspace(new AzureMonitorWorkspaceSignals().withAuthenticationSetting("dhtldwkyz") - .withAzureMonitorWorkspaceResourceId("uutkncw") - .withSignals(Arrays.asList( - new PrometheusMetricsSignal().withName("nv") - .withSignalDefinitionName("oqnermclfpl") - .withQueryText("vlxotogtwrupqsx") - .withTimeGrain("micykvceoveilo") - .withDisplayName("oty") - .withRefreshInterval(RefreshInterval.PT15M) - .withDataUnit("njbkcnxdhbttkph") - .withEvaluationRules(new EvaluationRule() - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL))), - new PrometheusMetricsSignal().withName("aocqxtccmgy") - .withSignalDefinitionName("xy") - .withQueryText("xus") - .withTimeGrain("pabgyeps") - .withDisplayName("tazqugxywpmueefj") - .withRefreshInterval(RefreshInterval.PT1M) - .withDataUnit("kqujidsuyono") - .withEvaluationRules(new EvaluationRule() - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN))), - new PrometheusMetricsSignal().withName("uwbc") - .withSignalDefinitionName("wbme") - .withQueryText("oyrxvwfudwpzntxh") - .withTimeGrain("hl") - .withDisplayName("jbhckfrlhr") - .withRefreshInterval(RefreshInterval.PT5M) - .withDataUnit("yvpycanuzbpzk") - .withEvaluationRules(new EvaluationRule().withUnhealthyRule( - new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL))), - new PrometheusMetricsSignal().withName("qpv") - .withSignalDefinitionName("dmwsrcrgvxpvgomz") - .withQueryText("eyvjusrtslhspkde") - .withTimeGrain("aofmxagkvtme") - .withDisplayName("qkrhahvljua") - .withRefreshInterval(RefreshInterval.PT10M) - .withDataUnit("hcdhmdual") - .withEvaluationRules(new EvaluationRule() - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN)))))) - .withDependencies( - new DependenciesSignalGroupV2().withAggregationType(DependenciesAggregationType.WORST_OF) - .withDegradedThreshold(17.03214376444202D) - .withUnhealthyThreshold(41.629207197030425D) - .withUnit(DependenciesAggregationUnit.ABSOLUTE) - .withIgnoreUnknown(true))) - .withAlerts(new EntityAlerts() - .withUnhealthy(new AlertConfiguration().withSeverity(AlertSeverity.SEV2) - .withDescription("djeb") - .withActionGroupIds(Arrays.asList("cwwfvovbvme"))) - .withDegraded(new AlertConfiguration().withSeverity(AlertSeverity.SEV0) - .withDescription("vyhzceuojgjrwj") - .withActionGroupIds(Arrays.asList("otwmcdyt", "x", "it", "nrjawgqwg"))))); + EntityInner model + = new EntityInner() + .withProperties( + new EntityProperties().withDisplayName("de") + .withCanvasPosition(new EntityCoordinates().withX(59.38436104206891).withY(50.02161595332478)) + .withIcon(new IconDefinition().withIconName("ifsjttgzfbishcb").withCustomData("ajdeyeamdphaga")) + .withHealthObjective(42.4135126427612D) + .withImpact(EntityImpact.STANDARD) + .withTags(mapOf("hwankixzbinjepu", "pwhonowkg", "uzoqft", "tmryw", "zlsico", "yqzrnkcqvyxlw")) + .withSignalGroups(new SignalGroups() + .withAzureResource(new AzureResourceSignals().withAuthenticationSetting("qnwvlrya") + .withAzureResourceId("w") + .withAzureResourceKind("eun") + .withSignals(Arrays.asList( + new AzureResourceSignal().withName("kaet") + .withSignalDefinitionName("tvfcivfsn") + .withMetricNamespace("gyxzk") + .withMetricName("ocukoklyax") + .withTimeGrain("onuq") + .withAggregationType(MetricAggregationType.AVERAGE) + .withDimensionFilter("beypewrmjmw") + .withDisplayName("jektcxsenh") + .withRefreshInterval(RefreshInterval.PT1M) + .withDataUnit("ffrzpwvlqdqgbiqy") + .withEvaluationRules(new EvaluationRule().withUnhealthyRule( + new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL))), + new AzureResourceSignal().withName("cltbgsncghkjesz") + .withSignalDefinitionName("bijhtxfvgxbf") + .withMetricNamespace("uctqhjfbe") + .withMetricName("jcxerfuwu") + .withTimeGrain("txfvjrbirph") + .withAggregationType(MetricAggregationType.MAXIMUM) + .withDimensionFilter("yva") + .withDisplayName("nljky") + .withRefreshInterval(RefreshInterval.PT1H) + .withDataUnit("uujqgidokgjljyo") + .withEvaluationRules(new EvaluationRule().withUnhealthyRule( + new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL))), + new AzureResourceSignal().withName("n") + .withSignalDefinitionName("ynhijggme") + .withMetricNamespace("nehmpvecx") + .withMetricName("debfqkkrbmpukgri") + .withTimeGrain("lzlfbxzpuz") + .withAggregationType(MetricAggregationType.MAXIMUM) + .withDimensionFilter("pnq") + .withDisplayName("hmgkbrpyy") + .withRefreshInterval(RefreshInterval.PT5M) + .withDataUnit("nuqqkpikadrgvt") + .withEvaluationRules(new EvaluationRule().withUnhealthyRule( + new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN))), + new AzureResourceSignal().withName("dybyxczfclhaa") + .withSignalDefinitionName("babphlwrqlfk") + .withMetricNamespace("iarbutrcvpna") + .withMetricName("mhjrunmpxttdbhr") + .withTimeGrain("l") + .withAggregationType(MetricAggregationType.TOTAL) + .withDimensionFilter("myskpbhenbtkcxy") + .withDisplayName("y") + .withRefreshInterval(RefreshInterval.PT1M) + .withDataUnit("yn") + .withEvaluationRules(new EvaluationRule().withUnhealthyRule( + new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL))))) + .withResourceHealth(new AzureResourceHealthSignal() + .withEnabled(ResourceHealthAvailabilityStateSignalBehavior.DISABLED))) + .withAzureLogAnalytics(new LogAnalyticsSignals().withAuthenticationSetting("cuxrhdwbavx") + .withLogAnalyticsWorkspaceResourceId("niwdjsw") + .withSignals(Arrays.asList(new LogAnalyticsSignal().withName("bbovplwzbhvgyugu") + .withSignalDefinitionName("vmkfssxqu") + .withQueryText("bpg") + .withTimeGrain("ytxhp") + .withValueColumnName("bzpfzab") + .withDisplayName("cuh") + .withRefreshInterval(RefreshInterval.PT15M) + .withDataUnit("tyq") + .withEvaluationRules(new EvaluationRule().withUnhealthyRule( + new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN)))))) + .withAzureMonitorWorkspace( + new AzureMonitorWorkspaceSignals().withAuthenticationSetting("plgmgsxnk") + .withAzureMonitorWorkspaceResourceId("zkd") + .withSignals(Arrays.asList( + new PrometheusMetricsSignal().withName("smtxpsieb") + .withSignalDefinitionName("hvpesapskrdqm") + .withQueryText("vlopwiyighx") + .withTimeGrain("dwzbaiue") + .withDisplayName("a") + .withRefreshInterval(RefreshInterval.PT5M) + .withDataUnit("qupedeojnab") + .withEvaluationRules(new EvaluationRule().withUnhealthyRule( + new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN))), + new PrometheusMetricsSignal().withName("eoveilovnotyf") + .withSignalDefinitionName("cnjbkcnxdhbt") + .withQueryText("dhtldwkyz") + .withTimeGrain("utknc") + .withDisplayName("cwsvlxotog") + .withRefreshInterval(RefreshInterval.PT15M) + .withDataUnit("pqsxvnmicy") + .withEvaluationRules(new EvaluationRule().withUnhealthyRule( + new ThresholdRuleV2().withOperator(SignalOperator.EQUAL)))))) + .withDependencies( + new DependenciesSignalGroupV2().withAggregationType(AggregationType.WORST_OF) + .withDegradedThreshold(18.372621908329123D) + .withUnhealthyThreshold(79.91289841285625D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(false))) + .withSignalAggregationGroups(Arrays.asList( + new SignalAggregationGroup().withName("ntxhdzhlrqjbhck") + .withDisplayName("lhrxsbkyvpyc") + .withAggregationType(AggregationType.MIN_HEALTHY) + .withMembers(Arrays.asList("bpzkafkuwbc")) + .withDegradedThreshold(22.04260275174391D) + .withUnhealthyThreshold(79.50020038945053D) + .withUnit(AggregationUnit.ABSOLUTE) + .withIgnoreUnknown(true), + new SignalAggregationGroup().withName("ljuahaquhcdh") + .withDisplayName("ualaexqpvfadmw") + .withAggregationType(AggregationType.MIN_HEALTHY) + .withMembers(Arrays.asList("gvxp")) + .withDegradedThreshold(43.749611952732714D) + .withUnhealthyThreshold(8.818243833224171D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(false))) + .withAlerts(new EntityAlerts() + .withUnhealthy(new AlertConfiguration().withSeverity(AlertSeverity.SEV1) + .withDescription("gicjooxdjeb") + .withActionGroupIds(Arrays.asList("cwwfvovbvme"))) + .withDegraded(new AlertConfiguration().withSeverity(AlertSeverity.SEV0) + .withDescription("vyhzceuojgjrwj") + .withActionGroupIds(Arrays.asList("otwmcdyt", "x", "it", "nrjawgqwg"))))); model = BinaryData.fromObject(model).toObject(EntityInner.class); - Assertions.assertEquals("hxmzsbbzoggig", model.properties().displayName()); - Assertions.assertEquals(96.82645603036897, model.properties().canvasPosition().x()); - Assertions.assertEquals(6.638036963167782, model.properties().canvasPosition().y()); - Assertions.assertEquals("jx", model.properties().icon().iconName()); - Assertions.assertEquals("nspydptkoenkoukn", model.properties().icon().customData()); - Assertions.assertEquals(79.01164968162665D, model.properties().healthObjective()); + Assertions.assertEquals("de", model.properties().displayName()); + Assertions.assertEquals(59.38436104206891, model.properties().canvasPosition().x()); + Assertions.assertEquals(50.02161595332478, model.properties().canvasPosition().y()); + Assertions.assertEquals("ifsjttgzfbishcb", model.properties().icon().iconName()); + Assertions.assertEquals("ajdeyeamdphaga", model.properties().icon().customData()); + Assertions.assertEquals(42.4135126427612D, model.properties().healthObjective()); Assertions.assertEquals(EntityImpact.STANDARD, model.properties().impact()); - Assertions.assertEquals("bldngkpoc", model.properties().tags().get("pazyxoegukg")); - Assertions.assertEquals("eyeam", model.properties().signalGroups().azureResource().authenticationSetting()); - Assertions.assertEquals("p", model.properties().signalGroups().azureResource().azureResourceId()); - Assertions.assertEquals("g", model.properties().signalGroups().azureResource().azureResourceKind()); - Assertions.assertEquals("vwhheunmmqhgyx", - model.properties().signalGroups().azureResource().signals().get(0).name()); - Assertions.assertEquals("onocukok", + Assertions.assertEquals("pwhonowkg", model.properties().tags().get("hwankixzbinjepu")); + Assertions.assertEquals("qnwvlrya", model.properties().signalGroups().azureResource().authenticationSetting()); + Assertions.assertEquals("w", model.properties().signalGroups().azureResource().azureResourceId()); + Assertions.assertEquals("eun", model.properties().signalGroups().azureResource().azureResourceKind()); + Assertions.assertEquals("kaet", model.properties().signalGroups().azureResource().signals().get(0).name()); + Assertions.assertEquals("tvfcivfsn", model.properties().signalGroups().azureResource().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("uxwgipwho", + Assertions.assertEquals("gyxzk", model.properties().signalGroups().azureResource().signals().get(0).metricNamespace()); - Assertions.assertEquals("wkgshwa", + Assertions.assertEquals("ocukoklyax", model.properties().signalGroups().azureResource().signals().get(0).metricName()); - Assertions.assertEquals("ixzbinjeputtmryw", - model.properties().signalGroups().azureResource().signals().get(0).timeGrain()); - Assertions.assertEquals(MetricAggregationType.MAXIMUM, + Assertions.assertEquals("onuq", model.properties().signalGroups().azureResource().signals().get(0).timeGrain()); + Assertions.assertEquals(MetricAggregationType.AVERAGE, model.properties().signalGroups().azureResource().signals().get(0).aggregationType()); - Assertions.assertEquals("qftiy", + Assertions.assertEquals("beypewrmjmw", model.properties().signalGroups().azureResource().signals().get(0).dimensionFilter()); - Assertions.assertEquals("rnkcqvyxlw", + Assertions.assertEquals("jektcxsenh", model.properties().signalGroups().azureResource().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT1H, + Assertions.assertEquals(RefreshInterval.PT1M, model.properties().signalGroups().azureResource().signals().get(0).refreshInterval()); - Assertions.assertEquals("icohoqqnwvl", + Assertions.assertEquals("ffrzpwvlqdqgbiqy", model.properties().signalGroups().azureResource().signals().get(0).dataUnit()); Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.properties() @@ -345,26 +336,27 @@ public void testSerialize() throws Exception { .operator()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.DISABLED, model.properties().signalGroups().azureResource().resourceHealth().enabled()); - Assertions.assertEquals("bfs", model.properties().signalGroups().azureLogAnalytics().authenticationSetting()); - Assertions.assertEquals("arbu", + Assertions.assertEquals("cuxrhdwbavx", + model.properties().signalGroups().azureLogAnalytics().authenticationSetting()); + Assertions.assertEquals("niwdjsw", model.properties().signalGroups().azureLogAnalytics().logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("dybyxczfclhaa", + Assertions.assertEquals("bbovplwzbhvgyugu", model.properties().signalGroups().azureLogAnalytics().signals().get(0).name()); - Assertions.assertEquals("babphlwrqlfk", + Assertions.assertEquals("vmkfssxqu", model.properties().signalGroups().azureLogAnalytics().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("pnazzm", + Assertions.assertEquals("bpg", model.properties().signalGroups().azureLogAnalytics().signals().get(0).queryText()); - Assertions.assertEquals("runmp", + Assertions.assertEquals("ytxhp", model.properties().signalGroups().azureLogAnalytics().signals().get(0).timeGrain()); - Assertions.assertEquals("tdbhrbnla", + Assertions.assertEquals("bzpfzab", model.properties().signalGroups().azureLogAnalytics().signals().get(0).valueColumnName()); - Assertions.assertEquals("xmyskp", + Assertions.assertEquals("cuh", model.properties().signalGroups().azureLogAnalytics().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT2H, + Assertions.assertEquals(RefreshInterval.PT15M, model.properties().signalGroups().azureLogAnalytics().signals().get(0).refreshInterval()); - Assertions.assertEquals("btkcxywnytnrsyn", + Assertions.assertEquals("tyq", model.properties().signalGroups().azureLogAnalytics().signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.LESS_THAN, model.properties() .signalGroups() .azureLogAnalytics() @@ -373,25 +365,25 @@ public void testSerialize() throws Exception { .evaluationRules() .unhealthyRule() .operator()); - Assertions.assertEquals("dhtldwkyz", + Assertions.assertEquals("plgmgsxnk", model.properties().signalGroups().azureMonitorWorkspace().authenticationSetting()); - Assertions.assertEquals("uutkncw", + Assertions.assertEquals("zkd", model.properties().signalGroups().azureMonitorWorkspace().azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("nv", + Assertions.assertEquals("smtxpsieb", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).name()); - Assertions.assertEquals("oqnermclfpl", + Assertions.assertEquals("hvpesapskrdqm", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("vlxotogtwrupqsx", + Assertions.assertEquals("vlopwiyighx", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).queryText()); - Assertions.assertEquals("micykvceoveilo", + Assertions.assertEquals("dwzbaiue", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).timeGrain()); - Assertions.assertEquals("oty", + Assertions.assertEquals("a", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT15M, + Assertions.assertEquals(RefreshInterval.PT5M, model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).refreshInterval()); - Assertions.assertEquals("njbkcnxdhbttkph", + Assertions.assertEquals("qupedeojnab", model.properties().signalGroups().azureMonitorWorkspace().signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.EQUAL, + Assertions.assertEquals(SignalOperator.LESS_THAN, model.properties() .signalGroups() .azureMonitorWorkspace() @@ -400,17 +392,27 @@ public void testSerialize() throws Exception { .evaluationRules() .unhealthyRule() .operator()); - Assertions.assertEquals(DependenciesAggregationType.WORST_OF, + Assertions.assertEquals(AggregationType.WORST_OF, model.properties().signalGroups().dependencies().aggregationType()); - Assertions.assertEquals(17.03214376444202D, + Assertions.assertEquals(18.372621908329123D, model.properties().signalGroups().dependencies().degradedThreshold()); - Assertions.assertEquals(41.629207197030425D, + Assertions.assertEquals(79.91289841285625D, model.properties().signalGroups().dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.ABSOLUTE, - model.properties().signalGroups().dependencies().unit()); - Assertions.assertTrue(model.properties().signalGroups().dependencies().ignoreUnknown()); - Assertions.assertEquals(AlertSeverity.SEV2, model.properties().alerts().unhealthy().severity()); - Assertions.assertEquals("djeb", model.properties().alerts().unhealthy().description()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, model.properties().signalGroups().dependencies().unit()); + Assertions.assertFalse(model.properties().signalGroups().dependencies().ignoreUnknown()); + Assertions.assertEquals("ntxhdzhlrqjbhck", model.properties().signalAggregationGroups().get(0).name()); + Assertions.assertEquals("lhrxsbkyvpyc", model.properties().signalAggregationGroups().get(0).displayName()); + Assertions.assertEquals(AggregationType.MIN_HEALTHY, + model.properties().signalAggregationGroups().get(0).aggregationType()); + Assertions.assertEquals("bpzkafkuwbc", model.properties().signalAggregationGroups().get(0).members().get(0)); + Assertions.assertEquals(22.04260275174391D, + model.properties().signalAggregationGroups().get(0).degradedThreshold()); + Assertions.assertEquals(79.50020038945053D, + model.properties().signalAggregationGroups().get(0).unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, model.properties().signalAggregationGroups().get(0).unit()); + Assertions.assertTrue(model.properties().signalAggregationGroups().get(0).ignoreUnknown()); + Assertions.assertEquals(AlertSeverity.SEV1, model.properties().alerts().unhealthy().severity()); + Assertions.assertEquals("gicjooxdjeb", model.properties().alerts().unhealthy().description()); Assertions.assertEquals("cwwfvovbvme", model.properties().alerts().unhealthy().actionGroupIds().get(0)); Assertions.assertEquals(AlertSeverity.SEV0, model.properties().alerts().degraded().severity()); Assertions.assertEquals("vyhzceuojgjrwj", model.properties().alerts().degraded().description()); diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityListResultTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityListResultTests.java index 708f268aba70..c248c7e2e488 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityListResultTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityListResultTests.java @@ -6,9 +6,9 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.implementation.models.EntityListResult; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.AlertSeverity; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; import com.azure.resourcemanager.cloudhealth.models.EntityImpact; import org.junit.jupiter.api.Assertions; @@ -16,53 +16,66 @@ public final class EntityListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EntityListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"grvk\",\"canvasPosition\":{\"x\":91.58869914271483,\"y\":80.33415237986642},\"icon\":{\"iconName\":\"pjbi\",\"customData\":\"jmfxumvf\"},\"healthObjective\":28.257113791107002,\"impact\":\"Limited\",\"tags\":{\"wzdgirujbzbo\":\"nbkfezzxscy\",\"pniyujviyl\":\"vzzbtdcq\",\"snrbgyefrymsgao\":\"dshf\",\"rctym\":\"fmwncotmrfh\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"ftpipiwyczu\",\"azureResourceId\":\"xacpqjli\",\"azureResourceKind\":\"yuspskas\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"mfwdgzxu\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"ucvpamrs\"}],\"resourceHealth\":{}},\"azureLogAnalytics\":{\"authenticationSetting\":\"zvxurisjnhny\",\"logAnalyticsWorkspaceResourceId\":\"xifqjzgxm\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"blwpcesutrgj\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"pauutpw\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"qhih\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"qg\",\"azureMonitorWorkspaceResourceId\":\"zpnfqntcypsxj\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"imwkslircizj\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"vydfceacvlhvygdy\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"t\"}]},\"dependencies\":{\"aggregationType\":\"WorstOf\",\"degradedThreshold\":58.87913091547584,\"unhealthyThreshold\":89.6766531561927,\"unit\":\"Absolute\",\"ignoreUnknown\":false},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"jgcyztsfmznba\"},{\"signalKind\":\"External\",\"name\":\"qphchqnrnrpxehuw\"}]}},\"discoveredBy\":\"k\",\"healthState\":\"Unknown\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev0\",\"description\":\"iklbydvkhb\",\"actionGroupIds\":[\"znxcvds\"]},\"degraded\":{\"severity\":\"Sev2\",\"description\":\"iv\",\"actionGroupIds\":[\"tnovqfzgemjdftul\"]}}},\"id\":\"tduceamt\",\"name\":\"czu\",\"type\":\"m\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"wqiok\",\"canvasPosition\":{\"x\":8.696123421943359,\"y\":86.40250544808026},\"icon\":{\"iconName\":\"msvpkjpr\",\"customData\":\"wcfzqljyxgt\"},\"healthObjective\":22.856469986922967,\"impact\":\"Limited\",\"tags\":{\"ripltf\":\"dshmkxmaehvbbx\",\"kgxywr\":\"htba\",\"uodpv\":\"kpyklyhp\",\"zibt\":\"uudl\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"tgk\",\"azureResourceId\":\"stvdxeclz\",\"azureResourceKind\":\"qbcvhzlhplod\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"lwwqfbumlkxtrqj\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"smlmbtxhwgfwsrta\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"coezbrhubskh\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"dyg\"}],\"resourceHealth\":{}},\"azureLogAnalytics\":{\"authenticationSetting\":\"kkqfqjbvle\",\"logAnalyticsWorkspaceResourceId\":\"rfmluiqtq\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"vyvnqqyb\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"ryeu\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"yjkqabqgzslesjcb\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"rnntiewdjcv\",\"azureMonitorWorkspaceResourceId\":\"quwrbehwag\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"uffkmrqemvvh\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"xtdr\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"futacoebjvewzc\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"znmwcp\"}]},\"dependencies\":{\"aggregationType\":\"MaxNotHealthy\",\"degradedThreshold\":85.80135798668631,\"unhealthyThreshold\":96.21674912550934,\"unit\":\"Percentage\",\"ignoreUnknown\":false},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"zov\"},{\"signalKind\":\"External\",\"name\":\"jjziuxxpsh\"}]}},\"discoveredBy\":\"e\",\"healthState\":\"Unhealthy\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev4\",\"description\":\"qubkw\",\"actionGroupIds\":[\"nrdsutujbazpjuoh\"]},\"degraded\":{\"severity\":\"Sev3\",\"description\":\"flnorwmduvwp\",\"actionGroupIds\":[\"xwmygdxpgpqc\",\"isze\"]}}},\"id\":\"nb\",\"name\":\"crxgibb\",\"type\":\"axconfozauo\"},{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"kwbqplhlvnuu\",\"canvasPosition\":{\"x\":44.719090537373305,\"y\":4.684066674841492},\"icon\":{\"iconName\":\"wzsoldweyuqdunv\",\"customData\":\"nrwrbiork\"},\"healthObjective\":33.80598367891427,\"impact\":\"Standard\",\"tags\":{\"omi\":\"gdnhxmsiv\",\"gdufiqnd\":\"ox\",\"chvcyyysfgdo\":\"euzaof\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"biipuip\",\"azureResourceId\":\"oqonma\",\"azureResourceKind\":\"ekni\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"qvci\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"pevf\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"mblrrilbywd\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"smiccwrwfscj\"}],\"resourceHealth\":{}},\"azureLogAnalytics\":{\"authenticationSetting\":\"nszqujiz\",\"logAnalyticsWorkspaceResourceId\":\"voqyt\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"owbb\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"yavutpthjoxois\",\"azureMonitorWorkspaceResourceId\":\"sks\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"mlqoljx\"}]},\"dependencies\":{\"aggregationType\":\"WorstOf\",\"degradedThreshold\":14.004819563229576,\"unhealthyThreshold\":64.92222473111579,\"unit\":\"Percentage\",\"ignoreUnknown\":false},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"zdwlvwlyoupfgfb\"},{\"signalKind\":\"External\",\"name\":\"jub\"},{\"signalKind\":\"External\",\"name\":\"yhgk\"}]}},\"discoveredBy\":\"in\",\"healthState\":\"Healthy\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev2\",\"description\":\"tsttktlahbq\",\"actionGroupIds\":[\"xtgzukxitmmqtgqq\"]},\"degraded\":{\"severity\":\"Sev2\",\"description\":\"n\",\"actionGroupIds\":[\"cpjuisa\",\"okqdzfvaz\",\"vjlfrqtt\",\"ajlkatnw\"]}}},\"id\":\"iopid\",\"name\":\"qqfkuv\",\"type\":\"cxkdmligovi\"}],\"nextLink\":\"xk\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"sofbshrn\",\"canvasPosition\":{\"x\":50.1137574162187,\"y\":76.60402708936608},\"icon\":{\"iconName\":\"vz\",\"customData\":\"bycnunvjsrtkf\"},\"healthObjective\":75.99895589854292,\"impact\":\"Suppressed\",\"tags\":{\"ejnt\":\"kyzirtxdyux\",\"dxtqmieoxo\":\"sewgioilqukr\",\"hhavgrvkffovjz\":\"ggufhyaomtb\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"bibgjmfxumv\",\"azureResourceId\":\"cluyovwxnbkf\",\"azureResourceKind\":\"zxscyhwzdgirujb\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"name\":\"mvzzbtdcqvp\"},{\"signalKind\":\"AzureResourceMetric\",\"name\":\"iyujviylwdshfs\"}],\"resourceHealth\":{}},\"azureLogAnalytics\":{\"authenticationSetting\":\"bgye\",\"logAnalyticsWorkspaceResourceId\":\"rymsgaojfmw\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"tmr\"},{\"signalKind\":\"LogAnalyticsQuery\",\"name\":\"hirctymoxoftpipi\"}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"czuhxacpqjlihh\",\"azureMonitorWorkspaceResourceId\":\"usps\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"dvlmfwdgzxul\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"cvpa\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"rsre\"},{\"signalKind\":\"PrometheusMetricsQuery\",\"name\":\"zvxurisjnhny\"}]},\"dependencies\":{\"aggregationType\":\"BestOf\",\"degradedThreshold\":72.63359985985156,\"unhealthyThreshold\":58.192265439894506,\"unit\":\"Percentage\",\"ignoreUnknown\":true},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"name\":\"pcesutrg\"}]}},\"signalAggregationGroups\":[{\"name\":\"auutpwoqhihe\",\"displayName\":\"g\",\"aggregationType\":\"MinHealthy\",\"members\":[\"fqntcyp\"],\"degradedThreshold\":7.693428694095539,\"unhealthyThreshold\":60.56714318164573,\"unit\":\"Absolute\",\"ignoreUnknown\":false,\"aggregatedHealthState\":\"Unhealthy\",\"unresolvedMembers\":[\"izjx\",\"ydfce\",\"cvlhv\",\"gdyftumrtwna\"]},{\"name\":\"jslb\",\"displayName\":\"kojgcyzts\",\"aggregationType\":\"WorstOf\",\"members\":[\"baeqphc\",\"qnrnrpxehuwryk\",\"gaifmvik\"],\"degradedThreshold\":15.228066092335435,\"unhealthyThreshold\":56.45422632667645,\"unit\":\"Absolute\",\"ignoreUnknown\":false,\"aggregatedHealthState\":\"Deleted\",\"unresolvedMembers\":[\"vdsrhnjiv\",\"lvtno\"]}],\"discoveredBy\":\"fzg\",\"healthState\":\"Deleted\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev3\",\"description\":\"ljltduceam\",\"actionGroupIds\":[\"zuo\"]},\"degraded\":{\"severity\":\"Sev4\",\"description\":\"cwwqiokn\",\"actionGroupIds\":[\"mojmsvpkjprvkw\",\"fz\",\"ljyxgtczhe\"]}}},\"id\":\"bsdshmkxmaehvbbx\",\"name\":\"ripltf\",\"type\":\"htba\"}],\"nextLink\":\"gx\"}") .toObject(EntityListResult.class); - Assertions.assertEquals("grvk", model.value().get(0).properties().displayName()); - Assertions.assertEquals(91.58869914271483, model.value().get(0).properties().canvasPosition().x()); - Assertions.assertEquals(80.33415237986642, model.value().get(0).properties().canvasPosition().y()); - Assertions.assertEquals("pjbi", model.value().get(0).properties().icon().iconName()); - Assertions.assertEquals("jmfxumvf", model.value().get(0).properties().icon().customData()); - Assertions.assertEquals(28.257113791107002D, model.value().get(0).properties().healthObjective()); - Assertions.assertEquals(EntityImpact.LIMITED, model.value().get(0).properties().impact()); - Assertions.assertEquals("nbkfezzxscy", model.value().get(0).properties().tags().get("wzdgirujbzbo")); - Assertions.assertEquals("ftpipiwyczu", + Assertions.assertEquals("sofbshrn", model.value().get(0).properties().displayName()); + Assertions.assertEquals(50.1137574162187, model.value().get(0).properties().canvasPosition().x()); + Assertions.assertEquals(76.60402708936608, model.value().get(0).properties().canvasPosition().y()); + Assertions.assertEquals("vz", model.value().get(0).properties().icon().iconName()); + Assertions.assertEquals("bycnunvjsrtkf", model.value().get(0).properties().icon().customData()); + Assertions.assertEquals(75.99895589854292D, model.value().get(0).properties().healthObjective()); + Assertions.assertEquals(EntityImpact.SUPPRESSED, model.value().get(0).properties().impact()); + Assertions.assertEquals("kyzirtxdyux", model.value().get(0).properties().tags().get("ejnt")); + Assertions.assertEquals("bibgjmfxumv", model.value().get(0).properties().signalGroups().azureResource().authenticationSetting()); - Assertions.assertEquals("xacpqjli", + Assertions.assertEquals("cluyovwxnbkf", model.value().get(0).properties().signalGroups().azureResource().azureResourceId()); - Assertions.assertEquals("yuspskas", + Assertions.assertEquals("zxscyhwzdgirujb", model.value().get(0).properties().signalGroups().azureResource().azureResourceKind()); - Assertions.assertEquals("mfwdgzxu", + Assertions.assertEquals("mvzzbtdcqvp", model.value().get(0).properties().signalGroups().azureResource().signals().get(0).name()); - Assertions.assertEquals("zvxurisjnhny", + Assertions.assertEquals("bgye", model.value().get(0).properties().signalGroups().azureLogAnalytics().authenticationSetting()); - Assertions.assertEquals("xifqjzgxm", + Assertions.assertEquals("rymsgaojfmw", model.value().get(0).properties().signalGroups().azureLogAnalytics().logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("blwpcesutrgj", + Assertions.assertEquals("tmr", model.value().get(0).properties().signalGroups().azureLogAnalytics().signals().get(0).name()); - Assertions.assertEquals("qg", + Assertions.assertEquals("czuhxacpqjlihh", model.value().get(0).properties().signalGroups().azureMonitorWorkspace().authenticationSetting()); - Assertions.assertEquals("zpnfqntcypsxj", + Assertions.assertEquals("usps", model.value().get(0).properties().signalGroups().azureMonitorWorkspace().azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("imwkslircizj", + Assertions.assertEquals("dvlmfwdgzxul", model.value().get(0).properties().signalGroups().azureMonitorWorkspace().signals().get(0).name()); - Assertions.assertEquals(DependenciesAggregationType.WORST_OF, + Assertions.assertEquals(AggregationType.BEST_OF, model.value().get(0).properties().signalGroups().dependencies().aggregationType()); - Assertions.assertEquals(58.87913091547584D, + Assertions.assertEquals(72.63359985985156D, model.value().get(0).properties().signalGroups().dependencies().degradedThreshold()); - Assertions.assertEquals(89.6766531561927D, + Assertions.assertEquals(58.192265439894506D, model.value().get(0).properties().signalGroups().dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.ABSOLUTE, + Assertions.assertEquals(AggregationUnit.PERCENTAGE, model.value().get(0).properties().signalGroups().dependencies().unit()); - Assertions.assertFalse(model.value().get(0).properties().signalGroups().dependencies().ignoreUnknown()); - Assertions.assertEquals(AlertSeverity.SEV0, model.value().get(0).properties().alerts().unhealthy().severity()); - Assertions.assertEquals("iklbydvkhb", model.value().get(0).properties().alerts().unhealthy().description()); - Assertions.assertEquals("znxcvds", - model.value().get(0).properties().alerts().unhealthy().actionGroupIds().get(0)); - Assertions.assertEquals(AlertSeverity.SEV2, model.value().get(0).properties().alerts().degraded().severity()); - Assertions.assertEquals("iv", model.value().get(0).properties().alerts().degraded().description()); - Assertions.assertEquals("tnovqfzgemjdftul", + Assertions.assertTrue(model.value().get(0).properties().signalGroups().dependencies().ignoreUnknown()); + Assertions.assertEquals("auutpwoqhihe", + model.value().get(0).properties().signalAggregationGroups().get(0).name()); + Assertions.assertEquals("g", model.value().get(0).properties().signalAggregationGroups().get(0).displayName()); + Assertions.assertEquals(AggregationType.MIN_HEALTHY, + model.value().get(0).properties().signalAggregationGroups().get(0).aggregationType()); + Assertions.assertEquals("fqntcyp", + model.value().get(0).properties().signalAggregationGroups().get(0).members().get(0)); + Assertions.assertEquals(7.693428694095539D, + model.value().get(0).properties().signalAggregationGroups().get(0).degradedThreshold()); + Assertions.assertEquals(60.56714318164573D, + model.value().get(0).properties().signalAggregationGroups().get(0).unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, + model.value().get(0).properties().signalAggregationGroups().get(0).unit()); + Assertions.assertFalse(model.value().get(0).properties().signalAggregationGroups().get(0).ignoreUnknown()); + Assertions.assertEquals(AlertSeverity.SEV3, model.value().get(0).properties().alerts().unhealthy().severity()); + Assertions.assertEquals("ljltduceam", model.value().get(0).properties().alerts().unhealthy().description()); + Assertions.assertEquals("zuo", model.value().get(0).properties().alerts().unhealthy().actionGroupIds().get(0)); + Assertions.assertEquals(AlertSeverity.SEV4, model.value().get(0).properties().alerts().degraded().severity()); + Assertions.assertEquals("cwwqiokn", model.value().get(0).properties().alerts().degraded().description()); + Assertions.assertEquals("mojmsvpkjprvkw", model.value().get(0).properties().alerts().degraded().actionGroupIds().get(0)); - Assertions.assertEquals("xk", model.nextLink()); + Assertions.assertEquals("gx", model.nextLink()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityPropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityPropertiesTests.java index ee24a70cd31f..c7915162ae83 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityPropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EntityPropertiesTests.java @@ -5,14 +5,14 @@ package com.azure.resourcemanager.cloudhealth.generated; import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.AlertConfiguration; import com.azure.resourcemanager.cloudhealth.models.AlertSeverity; import com.azure.resourcemanager.cloudhealth.models.AzureMonitorWorkspaceSignals; import com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignals; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; import com.azure.resourcemanager.cloudhealth.models.DependenciesSignalGroupV2; import com.azure.resourcemanager.cloudhealth.models.EntityAlerts; import com.azure.resourcemanager.cloudhealth.models.EntityCoordinates; @@ -26,6 +26,7 @@ import com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.ResourceHealthAvailabilityStateSignalBehavior; +import com.azure.resourcemanager.cloudhealth.models.SignalAggregationGroup; import com.azure.resourcemanager.cloudhealth.models.SignalGroups; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; @@ -38,7 +39,7 @@ public final class EntityPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EntityProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Deleting\",\"displayName\":\"tdhxujznbmpowuwp\",\"canvasPosition\":{\"x\":76.77146967165868,\"y\":30.283586181098855},\"icon\":{\"iconName\":\"alupjm\",\"customData\":\"fxobbcsws\"},\"healthObjective\":87.88039495370906,\"impact\":\"Suppressed\",\"tags\":{\"c\":\"bpbewtghfgb\",\"gibtnm\":\"wxzvlvqhjkb\",\"j\":\"iebwwaloayqcgwrt\",\"yzm\":\"zg\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"ongmtsa\",\"azureResourceId\":\"jcbpwxqpsrknft\",\"azureResourceKind\":\"vriuhprwmdyvx\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"riwwroy\",\"metricName\":\"exrmcqibycnojvk\",\"timeGrain\":\"e\",\"aggregationType\":\"Maximum\",\"dimensionFilter\":\"zvahapjy\",\"displayName\":\"pvgqzcjrvxdjzlm\",\"refreshInterval\":\"PT15M\",\"dataUnit\":\"vu\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\"},\"unhealthyRule\":{\"operator\":\"Equal\"}},\"name\":\"vawjvzunlu\",\"signalDefinitionName\":\"nnprn\",\"status\":{\"healthState\":\"Healthy\",\"value\":64.19828273331724,\"reportedAt\":\"2021-07-12T01:35:59Z\",\"error\":\"aejxd\",\"additionalContext\":\"tskzbbtdzumveek\"}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"wozuhkf\",\"metricName\":\"sjyofdx\",\"timeGrain\":\"us\",\"aggregationType\":\"Minimum\",\"dimensionFilter\":\"uwaboekqvke\",\"displayName\":\"smv\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"jsflhhcaalnjix\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\"}},\"name\":\"wjo\",\"signalDefinitionName\":\"qcslyjpkiid\",\"status\":{\"healthState\":\"Unknown\",\"value\":74.82713926733436,\"reportedAt\":\"2021-03-22T16:15:27Z\",\"error\":\"hnrztfol\",\"additionalContext\":\"nxknalaulp\"}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"gdtpnapnyiro\",\"metricName\":\"hpigv\",\"timeGrain\":\"ylgqgitxmedjvcsl\",\"aggregationType\":\"Minimum\",\"dimensionFilter\":\"wncwzzhxgktrmg\",\"displayName\":\"napkteoellw\",\"refreshInterval\":\"PT1H\",\"dataUnit\":\"ygpfqb\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\"}},\"name\":\"pzfqrhhuaoppp\",\"signalDefinitionName\":\"eqx\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":25.949784288541856,\"reportedAt\":\"2021-03-29T10:43:19Z\",\"error\":\"obgbkdmoizp\",\"additionalContext\":\"tmgrcfbun\"}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"fqjhhkxbpvjymj\",\"metricName\":\"xjyngudivk\",\"timeGrain\":\"swbxqz\",\"aggregationType\":\"Count\",\"dimensionFilter\":\"fauvjfdxx\",\"displayName\":\"e\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"qaqtdoqmcbxvwvxy\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\"}},\"name\":\"sfxobl\",\"signalDefinitionName\":\"k\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":43.17963103026587,\"reportedAt\":\"2021-04-28T11:36:58Z\",\"error\":\"krvrns\",\"additionalContext\":\"hqjohxcrsbfova\"}}],\"resourceHealth\":{\"enabled\":\"Disabled\",\"signalName\":\"wbhsqfsub\",\"status\":{\"healthState\":\"Deleted\",\"value\":32.114768124397884,\"reportedAt\":\"2021-09-05T10:31:13Z\",\"error\":\"bsrfbj\",\"additionalContext\":\"twss\",\"availabilityState\":\"Degraded\",\"category\":\"Planned\",\"detailedStatus\":\"jzbexilzznfq\",\"summary\":\"vwpm\",\"reasonType\":\"Unplanned\",\"reasonChronicity\":\"Transient\",\"availabilityReportedTime\":\"2021-08-18T10:48:38Z\"}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"mkcjhwqytjrybn\",\"logAnalyticsWorkspaceResourceId\":\"jewgdrjerv\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"qp\",\"timeGrain\":\"indoygmifthnzd\",\"valueColumnName\":\"sl\",\"displayName\":\"ayqigynduhav\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"thuma\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\"},\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"ycduier\",\"signalDefinitionName\":\"ccymvaolpsslql\",\"status\":{\"healthState\":\"Healthy\",\"value\":76.73665651224995,\"reportedAt\":\"2021-06-14T21:23:08Z\",\"error\":\"pswiydmcwyh\",\"additionalContext\":\"xssadbzmnvdf\"}}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"ud\",\"azureMonitorWorkspaceResourceId\":\"od\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"ncblylpst\",\"timeGrain\":\"hh\",\"displayName\":\"rzdzucerscdnt\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"iwjmygtdssls\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\"},\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"riofzpyqse\",\"signalDefinitionName\":\"abnetshh\",\"status\":{\"healthState\":\"Unknown\",\"value\":83.1289050402311,\"reportedAt\":\"2021-10-13T23:51:57Z\",\"error\":\"wubmwmbesldn\",\"additionalContext\":\"wtppjflcxogaoko\"}}]},\"dependencies\":{\"aggregationType\":\"MinHealthy\",\"degradedThreshold\":92.21938649142393,\"unhealthyThreshold\":46.45543688403541,\"unit\":\"Percentage\",\"ignoreUnknown\":true},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\"},\"unhealthyRule\":{\"operator\":\"Dynamic\"}},\"name\":\"zxmhhvhgu\",\"signalDefinitionName\":\"odkwobd\",\"status\":{\"healthState\":\"Deleted\",\"value\":36.85828956669111,\"reportedAt\":\"2021-03-08T21:58:17Z\",\"error\":\"xwak\",\"additionalContext\":\"gqxndlkzgxhuripl\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\"},\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"unkbebx\",\"signalDefinitionName\":\"byyntwlrbqt\",\"status\":{\"healthState\":\"Unknown\",\"value\":61.803901560896,\"reportedAt\":\"2021-12-03T04:31:52Z\",\"error\":\"q\",\"additionalContext\":\"ltmuwlauwzizx\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Dynamic\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\"}},\"name\":\"jefuzmuvpbttdumo\",\"signalDefinitionName\":\"pxebmnzbt\",\"status\":{\"healthState\":\"Degraded\",\"value\":21.28773423734217,\"reportedAt\":\"2021-06-12T04:27:19Z\",\"error\":\"hdneuelfph\",\"additionalContext\":\"yhtozfikdowwqu\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\"},\"unhealthyRule\":{\"operator\":\"Equal\"}},\"name\":\"clvit\",\"signalDefinitionName\":\"qzonosggbhcohf\",\"status\":{\"healthState\":\"Unknown\",\"value\":10.708622124516086,\"reportedAt\":\"2021-06-21T07:46:59Z\",\"error\":\"tiiswacffg\",\"additionalContext\":\"zzewkfvhqcrai\"}}]}},\"discoveredBy\":\"pnppfuf\",\"healthState\":\"Unknown\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev3\",\"description\":\"lxyjr\",\"actionGroupIds\":[\"gafcnihgwqapnedg\",\"bcvkcvqvpkeq\",\"cvdrhvoodsot\",\"obzdopcjwvnhdl\"]},\"degraded\":{\"severity\":\"Sev0\",\"description\":\"xcxrsl\",\"actionGroupIds\":[\"twuoegrpkhjwni\"]}}}") + "{\"provisioningState\":\"Deleting\",\"displayName\":\"tdhxujznbmpowuwp\",\"canvasPosition\":{\"x\":76.77146967165868,\"y\":30.283586181098855},\"icon\":{\"iconName\":\"alupjm\",\"customData\":\"fxobbcsws\"},\"healthObjective\":87.88039495370906,\"impact\":\"Suppressed\",\"tags\":{\"c\":\"bpbewtghfgb\",\"gibtnm\":\"wxzvlvqhjkb\",\"j\":\"iebwwaloayqcgwrt\",\"yzm\":\"zg\"},\"signalGroups\":{\"azureResource\":{\"authenticationSetting\":\"ongmtsa\",\"azureResourceId\":\"jcbpwxqpsrknft\",\"azureResourceKind\":\"vriuhprwmdyvx\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"riwwroy\",\"metricName\":\"exrmcqibycnojvk\",\"timeGrain\":\"e\",\"aggregationType\":\"Maximum\",\"dimensionFilter\":\"zvahapjy\",\"displayName\":\"pvgqzcjrvxdjzlm\",\"refreshInterval\":\"PT15M\",\"dataUnit\":\"vu\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\"},\"unhealthyRule\":{\"operator\":\"Equal\"}},\"name\":\"vawjvzunlu\",\"signalDefinitionName\":\"nnprn\",\"status\":{\"healthState\":\"Healthy\",\"value\":64.19828273331724,\"reportedAt\":\"2021-07-12T01:35:59Z\",\"error\":\"aejxd\",\"additionalContext\":\"tskzbbtdzumveek\"}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"wozuhkf\",\"metricName\":\"sjyofdx\",\"timeGrain\":\"us\",\"aggregationType\":\"Minimum\",\"dimensionFilter\":\"uwaboekqvke\",\"displayName\":\"smv\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"jsflhhcaalnjix\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\"}},\"name\":\"wjo\",\"signalDefinitionName\":\"qcslyjpkiid\",\"status\":{\"healthState\":\"Unknown\",\"value\":74.82713926733436,\"reportedAt\":\"2021-03-22T16:15:27Z\",\"error\":\"hnrztfol\",\"additionalContext\":\"nxknalaulp\"}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"gdtpnapnyiro\",\"metricName\":\"hpigv\",\"timeGrain\":\"ylgqgitxmedjvcsl\",\"aggregationType\":\"Minimum\",\"dimensionFilter\":\"wncwzzhxgktrmg\",\"displayName\":\"napkteoellw\",\"refreshInterval\":\"PT1H\",\"dataUnit\":\"ygpfqb\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\"}},\"name\":\"pzfqrhhuaoppp\",\"signalDefinitionName\":\"eqx\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":25.949784288541856,\"reportedAt\":\"2021-03-29T10:43:19Z\",\"error\":\"obgbkdmoizp\",\"additionalContext\":\"tmgrcfbun\"}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"fqjhhkxbpvjymj\",\"metricName\":\"xjyngudivk\",\"timeGrain\":\"swbxqz\",\"aggregationType\":\"Count\",\"dimensionFilter\":\"fauvjfdxx\",\"displayName\":\"e\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"qaqtdoqmcbxvwvxy\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\"}},\"name\":\"sfxobl\",\"signalDefinitionName\":\"k\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":43.17963103026587,\"reportedAt\":\"2021-04-28T11:36:58Z\",\"error\":\"krvrns\",\"additionalContext\":\"hqjohxcrsbfova\"}}],\"resourceHealth\":{\"enabled\":\"Disabled\",\"signalName\":\"wbhsqfsub\",\"status\":{\"healthState\":\"Deleted\",\"value\":32.114768124397884,\"reportedAt\":\"2021-09-05T10:31:13Z\",\"error\":\"bsrfbj\",\"additionalContext\":\"twss\",\"availabilityState\":\"Degraded\",\"category\":\"Planned\",\"detailedStatus\":\"jzbexilzznfq\",\"summary\":\"vwpm\",\"reasonType\":\"Unplanned\",\"reasonChronicity\":\"Transient\",\"availabilityReportedTime\":\"2021-08-18T10:48:38Z\"}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"mkcjhwqytjrybn\",\"logAnalyticsWorkspaceResourceId\":\"jewgdrjerv\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"qp\",\"timeGrain\":\"indoygmifthnzd\",\"valueColumnName\":\"sl\",\"displayName\":\"ayqigynduhav\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"thuma\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\"},\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"ycduier\",\"signalDefinitionName\":\"ccymvaolpsslql\",\"status\":{\"healthState\":\"Healthy\",\"value\":76.73665651224995,\"reportedAt\":\"2021-06-14T21:23:08Z\",\"error\":\"pswiydmcwyh\",\"additionalContext\":\"xssadbzmnvdf\"}}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"ud\",\"azureMonitorWorkspaceResourceId\":\"od\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"ncblylpst\",\"timeGrain\":\"hh\",\"displayName\":\"rzdzucerscdnt\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"iwjmygtdssls\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\"},\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"riofzpyqse\",\"signalDefinitionName\":\"abnetshh\",\"status\":{\"healthState\":\"Unknown\",\"value\":83.1289050402311,\"reportedAt\":\"2021-10-13T23:51:57Z\",\"error\":\"wubmwmbesldn\",\"additionalContext\":\"wtppjflcxogaoko\"}}]},\"dependencies\":{\"aggregationType\":\"WorstOf\",\"degradedThreshold\":92.21938649142393,\"unhealthyThreshold\":46.45543688403541,\"unit\":\"Percentage\",\"ignoreUnknown\":true},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\"},\"unhealthyRule\":{\"operator\":\"Dynamic\"}},\"name\":\"zxmhhvhgu\",\"signalDefinitionName\":\"odkwobd\",\"status\":{\"healthState\":\"Deleted\",\"value\":36.85828956669111,\"reportedAt\":\"2021-03-08T21:58:17Z\",\"error\":\"xwak\",\"additionalContext\":\"gqxndlkzgxhuripl\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\"},\"unhealthyRule\":{\"operator\":\"LessThan\"}},\"name\":\"unkbebx\",\"signalDefinitionName\":\"byyntwlrbqt\",\"status\":{\"healthState\":\"Unknown\",\"value\":61.803901560896,\"reportedAt\":\"2021-12-03T04:31:52Z\",\"error\":\"q\",\"additionalContext\":\"ltmuwlauwzizx\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Dynamic\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\"}},\"name\":\"jefuzmuvpbttdumo\",\"signalDefinitionName\":\"pxebmnzbt\",\"status\":{\"healthState\":\"Degraded\",\"value\":21.28773423734217,\"reportedAt\":\"2021-06-12T04:27:19Z\",\"error\":\"hdneuelfph\",\"additionalContext\":\"yhtozfikdowwqu\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\"},\"unhealthyRule\":{\"operator\":\"Equal\"}},\"name\":\"clvit\",\"signalDefinitionName\":\"qzonosggbhcohf\",\"status\":{\"healthState\":\"Unknown\",\"value\":10.708622124516086,\"reportedAt\":\"2021-06-21T07:46:59Z\",\"error\":\"tiiswacffg\",\"additionalContext\":\"zzewkfvhqcrai\"}}]}},\"signalAggregationGroups\":[{\"name\":\"n\",\"displayName\":\"fuflrwdmhdlx\",\"aggregationType\":\"MaxNotHealthy\",\"members\":[\"sag\",\"fcnihgwq\"],\"degradedThreshold\":43.218610655640596,\"unhealthyThreshold\":46.67684749028038,\"unit\":\"Percentage\",\"ignoreUnknown\":false,\"aggregatedHealthState\":\"Deleted\",\"unresolvedMembers\":[\"pkeqdcvdrhvoo\"]},{\"name\":\"sotbob\",\"displayName\":\"opcjwvnhd\",\"aggregationType\":\"MinHealthy\",\"members\":[\"gx\",\"xrslpm\",\"twuoegrpkhjwni\"],\"degradedThreshold\":74.33615028226781,\"unhealthyThreshold\":6.015914461048011,\"unit\":\"Percentage\",\"ignoreUnknown\":false,\"aggregatedHealthState\":\"Healthy\",\"unresolvedMembers\":[\"vmbmp\",\"xmodf\",\"uefywsbpfvmwy\",\"rfouyftaakcpw\"]}],\"discoveredBy\":\"zvqtmnubexkp\",\"healthState\":\"Unknown\",\"alerts\":{\"unhealthy\":{\"severity\":\"Sev3\",\"description\":\"jmquxvypomgk\",\"actionGroupIds\":[\"whojvp\",\"jqg\",\"ysmocmbqfqvmkcxo\"]},\"degraded\":{\"severity\":\"Sev4\",\"description\":\"helxprglya\",\"actionGroupIds\":[\"ckcb\",\"uejrjxgc\"]}}}") .toObject(EntityProperties.class); Assertions.assertEquals("tdhxujznbmpowuwp", model.displayName()); Assertions.assertEquals(76.77146967165868, model.canvasPosition().x()); @@ -105,18 +106,26 @@ public void testDeserialize() throws Exception { model.signalGroups().azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().operator()); Assertions.assertEquals(SignalOperator.LESS_THAN, model.signalGroups().azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(DependenciesAggregationType.MIN_HEALTHY, - model.signalGroups().dependencies().aggregationType()); + Assertions.assertEquals(AggregationType.WORST_OF, model.signalGroups().dependencies().aggregationType()); Assertions.assertEquals(92.21938649142393D, model.signalGroups().dependencies().degradedThreshold()); Assertions.assertEquals(46.45543688403541D, model.signalGroups().dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.PERCENTAGE, model.signalGroups().dependencies().unit()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, model.signalGroups().dependencies().unit()); Assertions.assertTrue(model.signalGroups().dependencies().ignoreUnknown()); + Assertions.assertEquals("n", model.signalAggregationGroups().get(0).name()); + Assertions.assertEquals("fuflrwdmhdlx", model.signalAggregationGroups().get(0).displayName()); + Assertions.assertEquals(AggregationType.MAX_NOT_HEALTHY, + model.signalAggregationGroups().get(0).aggregationType()); + Assertions.assertEquals("sag", model.signalAggregationGroups().get(0).members().get(0)); + Assertions.assertEquals(43.218610655640596D, model.signalAggregationGroups().get(0).degradedThreshold()); + Assertions.assertEquals(46.67684749028038D, model.signalAggregationGroups().get(0).unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, model.signalAggregationGroups().get(0).unit()); + Assertions.assertFalse(model.signalAggregationGroups().get(0).ignoreUnknown()); Assertions.assertEquals(AlertSeverity.SEV3, model.alerts().unhealthy().severity()); - Assertions.assertEquals("lxyjr", model.alerts().unhealthy().description()); - Assertions.assertEquals("gafcnihgwqapnedg", model.alerts().unhealthy().actionGroupIds().get(0)); - Assertions.assertEquals(AlertSeverity.SEV0, model.alerts().degraded().severity()); - Assertions.assertEquals("xcxrsl", model.alerts().degraded().description()); - Assertions.assertEquals("twuoegrpkhjwni", model.alerts().degraded().actionGroupIds().get(0)); + Assertions.assertEquals("jmquxvypomgk", model.alerts().unhealthy().description()); + Assertions.assertEquals("whojvp", model.alerts().unhealthy().actionGroupIds().get(0)); + Assertions.assertEquals(AlertSeverity.SEV4, model.alerts().degraded().severity()); + Assertions.assertEquals("helxprglya", model.alerts().degraded().description()); + Assertions.assertEquals("ckcb", model.alerts().degraded().actionGroupIds().get(0)); } @org.junit.jupiter.api.Test @@ -221,22 +230,35 @@ public void testSerialize() throws Exception { .withEvaluationRules(new EvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN)))))) - .withDependencies( - new DependenciesSignalGroupV2().withAggregationType(DependenciesAggregationType.MIN_HEALTHY) - .withDegradedThreshold(92.21938649142393D) - .withUnhealthyThreshold(46.45543688403541D) - .withUnit(DependenciesAggregationUnit.PERCENTAGE) - .withIgnoreUnknown(true))) - .withAlerts( - new EntityAlerts() - .withUnhealthy( - new AlertConfiguration().withSeverity(AlertSeverity.SEV3) - .withDescription("lxyjr") - .withActionGroupIds(Arrays.asList("gafcnihgwqapnedg", "bcvkcvqvpkeq", "cvdrhvoodsot", - "obzdopcjwvnhdl"))) - .withDegraded(new AlertConfiguration().withSeverity(AlertSeverity.SEV0) - .withDescription("xcxrsl") - .withActionGroupIds(Arrays.asList("twuoegrpkhjwni")))); + .withDependencies(new DependenciesSignalGroupV2().withAggregationType(AggregationType.WORST_OF) + .withDegradedThreshold(92.21938649142393D) + .withUnhealthyThreshold(46.45543688403541D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(true))) + .withSignalAggregationGroups(Arrays.asList( + new SignalAggregationGroup().withName("n") + .withDisplayName("fuflrwdmhdlx") + .withAggregationType(AggregationType.MAX_NOT_HEALTHY) + .withMembers(Arrays.asList("sag", "fcnihgwq")) + .withDegradedThreshold(43.218610655640596D) + .withUnhealthyThreshold(46.67684749028038D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(false), + new SignalAggregationGroup().withName("sotbob") + .withDisplayName("opcjwvnhd") + .withAggregationType(AggregationType.MIN_HEALTHY) + .withMembers(Arrays.asList("gx", "xrslpm", "twuoegrpkhjwni")) + .withDegradedThreshold(74.33615028226781D) + .withUnhealthyThreshold(6.015914461048011D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(false))) + .withAlerts(new EntityAlerts() + .withUnhealthy(new AlertConfiguration().withSeverity(AlertSeverity.SEV3) + .withDescription("jmquxvypomgk") + .withActionGroupIds(Arrays.asList("whojvp", "jqg", "ysmocmbqfqvmkcxo"))) + .withDegraded(new AlertConfiguration().withSeverity(AlertSeverity.SEV4) + .withDescription("helxprglya") + .withActionGroupIds(Arrays.asList("ckcb", "uejrjxgc")))); model = BinaryData.fromObject(model).toObject(EntityProperties.class); Assertions.assertEquals("tdhxujznbmpowuwp", model.displayName()); Assertions.assertEquals(76.77146967165868, model.canvasPosition().x()); @@ -303,18 +325,26 @@ public void testSerialize() throws Exception { model.signalGroups().azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().operator()); Assertions.assertEquals(SignalOperator.LESS_THAN, model.signalGroups().azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(DependenciesAggregationType.MIN_HEALTHY, - model.signalGroups().dependencies().aggregationType()); + Assertions.assertEquals(AggregationType.WORST_OF, model.signalGroups().dependencies().aggregationType()); Assertions.assertEquals(92.21938649142393D, model.signalGroups().dependencies().degradedThreshold()); Assertions.assertEquals(46.45543688403541D, model.signalGroups().dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.PERCENTAGE, model.signalGroups().dependencies().unit()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, model.signalGroups().dependencies().unit()); Assertions.assertTrue(model.signalGroups().dependencies().ignoreUnknown()); + Assertions.assertEquals("n", model.signalAggregationGroups().get(0).name()); + Assertions.assertEquals("fuflrwdmhdlx", model.signalAggregationGroups().get(0).displayName()); + Assertions.assertEquals(AggregationType.MAX_NOT_HEALTHY, + model.signalAggregationGroups().get(0).aggregationType()); + Assertions.assertEquals("sag", model.signalAggregationGroups().get(0).members().get(0)); + Assertions.assertEquals(43.218610655640596D, model.signalAggregationGroups().get(0).degradedThreshold()); + Assertions.assertEquals(46.67684749028038D, model.signalAggregationGroups().get(0).unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, model.signalAggregationGroups().get(0).unit()); + Assertions.assertFalse(model.signalAggregationGroups().get(0).ignoreUnknown()); Assertions.assertEquals(AlertSeverity.SEV3, model.alerts().unhealthy().severity()); - Assertions.assertEquals("lxyjr", model.alerts().unhealthy().description()); - Assertions.assertEquals("gafcnihgwqapnedg", model.alerts().unhealthy().actionGroupIds().get(0)); - Assertions.assertEquals(AlertSeverity.SEV0, model.alerts().degraded().severity()); - Assertions.assertEquals("xcxrsl", model.alerts().degraded().description()); - Assertions.assertEquals("twuoegrpkhjwni", model.alerts().degraded().actionGroupIds().get(0)); + Assertions.assertEquals("jmquxvypomgk", model.alerts().unhealthy().description()); + Assertions.assertEquals("whojvp", model.alerts().unhealthy().actionGroupIds().get(0)); + Assertions.assertEquals(AlertSeverity.SEV4, model.alerts().degraded().severity()); + Assertions.assertEquals("helxprglya", model.alerts().degraded().description()); + Assertions.assertEquals("ckcb", model.alerts().degraded().actionGroupIds().get(0)); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EvaluationRuleTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EvaluationRuleTests.java index e41b77d00f39..f3fd636b1764 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EvaluationRuleTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/EvaluationRuleTests.java @@ -7,7 +7,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; import org.junit.jupiter.api.Assertions; @@ -16,37 +15,31 @@ public final class EvaluationRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EvaluationRule model = BinaryData.fromString( - "{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":85.22443283052007,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":15.683771184024254,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"}}") + "{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":89.54885021656311,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":72.30050635322169,\"sensitivity\":\"High\"}}") .toObject(EvaluationRule.class); - Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.degradedRule().operator()); - Assertions.assertEquals(85.22443283052007D, model.degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.unhealthyRule().operator()); - Assertions.assertEquals(15.683771184024254D, model.unhealthyRule().threshold()); + Assertions.assertEquals(SignalOperator.GREATER_THAN, model.degradedRule().operator()); + Assertions.assertEquals(89.54885021656311D, model.degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.unhealthyRule().operator()); + Assertions.assertEquals(72.30050635322169D, model.unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.unhealthyRule().lookBackWindow()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EvaluationRule model = new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) - .withThreshold(85.22443283052007D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(15.683771184024254D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT5M)); + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) + .withThreshold(89.54885021656311D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) + .withThreshold(72.30050635322169D) + .withSensitivity(DynamicThresholdSensitivity.HIGH)); model = BinaryData.fromObject(model).toObject(EvaluationRule.class); - Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.degradedRule().operator()); - Assertions.assertEquals(85.22443283052007D, model.degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.unhealthyRule().operator()); - Assertions.assertEquals(15.683771184024254D, model.unhealthyRule().threshold()); + Assertions.assertEquals(SignalOperator.GREATER_THAN, model.degradedRule().operator()); + Assertions.assertEquals(89.54885021656311D, model.degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.unhealthyRule().operator()); + Assertions.assertEquals(72.30050635322169D, model.unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ExternalSignalGroupTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ExternalSignalGroupTests.java index 04ad80bf2937..83eba078e2cb 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ExternalSignalGroupTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ExternalSignalGroupTests.java @@ -11,7 +11,7 @@ public final class ExternalSignalGroupTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExternalSignalGroup model = BinaryData.fromString( - "{\"signals\":[{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":97.63993583337299,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":84.63764695021342,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"fcdmqnrojlpijn\",\"signalDefinitionName\":\"xfrdd\",\"status\":{\"healthState\":\"Unknown\",\"value\":98.63851736367654,\"reportedAt\":\"2021-03-09T16:30:01Z\",\"error\":\"nasx\",\"additionalContext\":\"tozqyzhftwesgo\"}}]}") + "{\"signals\":[{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":67.77955282003107,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":6.5758100321716695,\"sensitivity\":\"Low\"}},\"name\":\"rnjwmw\",\"signalDefinitionName\":\"nbsazejjoqkag\",\"status\":{\"healthState\":\"Healthy\",\"value\":57.31438231060064,\"reportedAt\":\"2021-02-15T19:14Z\",\"error\":\"xnfaazpxdtnk\",\"additionalContext\":\"kqjjlwuenvrkp\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":13.595698149098478,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":90.03241035521266,\"sensitivity\":\"High\"}},\"name\":\"kixqtnqtt\",\"signalDefinitionName\":\"lwfffi\",\"status\":{\"healthState\":\"Deleted\",\"value\":70.54587923482035,\"reportedAt\":\"2021-10-12T22:21:14Z\",\"error\":\"d\",\"additionalContext\":\"mmji\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":76.85100973304463,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"Dynamic\",\"threshold\":1.2310290251609013,\"sensitivity\":\"Medium\"}},\"name\":\"ygupkv\",\"signalDefinitionName\":\"mdscwxqupev\",\"status\":{\"healthState\":\"Deleted\",\"value\":56.8025581094299,\"reportedAt\":\"2021-05-26T09:52:45Z\",\"error\":\"jujbypelmcuvhixb\",\"additionalContext\":\"yfwnylr\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":94.85870866309173,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":28.288330662176953,\"sensitivity\":\"Medium\"}},\"name\":\"ujrywvtyl\",\"signalDefinitionName\":\"pncur\",\"status\":{\"healthState\":\"Unknown\",\"value\":43.22556321267572,\"reportedAt\":\"2021-09-30T15:07:39Z\",\"error\":\"wubxc\",\"additionalContext\":\"h\"}}]}") .toObject(ExternalSignalGroup.class); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ExternalSignalTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ExternalSignalTests.java index 130e9aaaf59b..aa3b391bfd35 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ExternalSignalTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ExternalSignalTests.java @@ -8,7 +8,6 @@ import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; import com.azure.resourcemanager.cloudhealth.models.ExternalSignal; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; import org.junit.jupiter.api.Assertions; @@ -17,45 +16,39 @@ public final class ExternalSignalTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExternalSignal model = BinaryData.fromString( - "{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":85.24879619390303,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":7.776737881638674,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT15M\"}},\"name\":\"ujxukndxd\",\"signalDefinitionName\":\"rjguufzdmsyqtf\",\"status\":{\"healthState\":\"Deleted\",\"value\":22.60072330795513,\"reportedAt\":\"2021-08-12T19:36:43Z\",\"error\":\"gamv\",\"additionalContext\":\"ho\"}}") + "{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":63.41765038451496,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":48.94204394065626,\"sensitivity\":\"Medium\"}},\"name\":\"o\",\"signalDefinitionName\":\"hjjklff\",\"status\":{\"healthState\":\"Healthy\",\"value\":66.63313011749618,\"reportedAt\":\"2021-01-26T12:14:58Z\",\"error\":\"fzeeyebizik\",\"additionalContext\":\"uhqlbjbsybbqwrvt\"}}") .toObject(ExternalSignal.class); - Assertions.assertEquals("ujxukndxd", model.name()); - Assertions.assertEquals("rjguufzdmsyqtf", model.signalDefinitionName()); + Assertions.assertEquals("o", model.name()); + Assertions.assertEquals("hjjklff", model.signalDefinitionName()); Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(85.24879619390303D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().degradedRule().lookBackWindow()); + Assertions.assertEquals(63.41765038451496D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(7.776737881638674D, model.evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(48.94204394065626D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().unhealthyRule().lookBackWindow()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExternalSignal model = new ExternalSignal().withName("ujxukndxd") - .withSignalDefinitionName("rjguufzdmsyqtf") + ExternalSignal model = new ExternalSignal().withName("o") + .withSignalDefinitionName("hjjklff") .withEvaluationRules(new EvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) - .withThreshold(85.24879619390303D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT1H)) + .withThreshold(63.41765038451496D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) - .withThreshold(7.776737881638674D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT15M))); + .withThreshold(48.94204394065626D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))); model = BinaryData.fromObject(model).toObject(ExternalSignal.class); - Assertions.assertEquals("ujxukndxd", model.name()); - Assertions.assertEquals("rjguufzdmsyqtf", model.signalDefinitionName()); + Assertions.assertEquals("o", model.name()); + Assertions.assertEquals("hjjklff", model.signalDefinitionName()); Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(85.24879619390303D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().degradedRule().lookBackWindow()); + Assertions.assertEquals(63.41765038451496D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(7.776737881638674D, model.evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(48.94204394065626D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetDataAnnotationsRequestTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetDataAnnotationsRequestTests.java index 8ce54c5c91f6..c61aeb7ad777 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetDataAnnotationsRequestTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetDataAnnotationsRequestTests.java @@ -13,25 +13,25 @@ public final class GetDataAnnotationsRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GetDataAnnotationsRequest model = BinaryData.fromString( - "{\"startAt\":\"2021-06-03T02:39:16Z\",\"endAt\":\"2021-10-26T15:15:39Z\",\"top\":1042377929,\"nextMarker\":\"vdwxfzwi\"}") + "{\"startAt\":\"2021-02-28T14:54:18Z\",\"endAt\":\"2021-07-22T12:33Z\",\"top\":1371763092,\"nextMarker\":\"hhg\"}") .toObject(GetDataAnnotationsRequest.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T02:39:16Z"), model.startAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-26T15:15:39Z"), model.endAt()); - Assertions.assertEquals(1042377929, model.top()); - Assertions.assertEquals("vdwxfzwi", model.nextMarker()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T14:54:18Z"), model.startAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-22T12:33Z"), model.endAt()); + Assertions.assertEquals(1371763092, model.top()); + Assertions.assertEquals("hhg", model.nextMarker()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { GetDataAnnotationsRequest model - = new GetDataAnnotationsRequest().withStartAt(OffsetDateTime.parse("2021-06-03T02:39:16Z")) - .withEndAt(OffsetDateTime.parse("2021-10-26T15:15:39Z")) - .withTop(1042377929) - .withNextMarker("vdwxfzwi"); + = new GetDataAnnotationsRequest().withStartAt(OffsetDateTime.parse("2021-02-28T14:54:18Z")) + .withEndAt(OffsetDateTime.parse("2021-07-22T12:33Z")) + .withTop(1371763092) + .withNextMarker("hhg"); model = BinaryData.fromObject(model).toObject(GetDataAnnotationsRequest.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T02:39:16Z"), model.startAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-26T15:15:39Z"), model.endAt()); - Assertions.assertEquals(1042377929, model.top()); - Assertions.assertEquals("vdwxfzwi", model.nextMarker()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T14:54:18Z"), model.startAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-22T12:33Z"), model.endAt()); + Assertions.assertEquals(1371763092, model.top()); + Assertions.assertEquals("hhg", model.nextMarker()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetDataAnnotationsResponseInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetDataAnnotationsResponseInnerTests.java index 05b26f5cd058..9f6afaf14765 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetDataAnnotationsResponseInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetDataAnnotationsResponseInnerTests.java @@ -12,11 +12,11 @@ public final class GetDataAnnotationsResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GetDataAnnotationsResponseInner model = BinaryData.fromString( - "{\"entityName\":\"vwzjbhyz\",\"annotations\":[{\"annotationId\":\"rkambt\",\"createdAt\":\"2021-03-11T10:38:35Z\",\"annotationDetails\":{\"eqvldspast\":\"vmnvu\",\"flvestmjlxrrilo\":\"bkkd\",\"kuziycsle\":\"apeewchpxlkt\"},\"description\":\"f\"}],\"nextMarker\":\"tcktyhjtqedcgzu\"}") + "{\"entityName\":\"nhxmsi\",\"annotations\":[{\"annotationId\":\"miloxggdufiqndie\",\"createdAt\":\"2021-06-22T17:00:53Z\",\"annotationDetails\":{\"yysfgdot\":\"fjchvc\",\"jeknizshq\":\"ubiipuipwoqonma\",\"b\":\"cimpevfg\"},\"description\":\"rilbywdx\"},{\"annotationId\":\"icc\",\"createdAt\":\"2020-12-26T20:12:03Z\",\"annotationDetails\":{\"qujizdvo\":\"scjfnyns\",\"blgyavutpthj\":\"ytibyow\",\"msksbp\":\"xoi\",\"cgxxlxs\":\"mlqoljx\"},\"description\":\"gcvizqzdwlvwlyou\"},{\"annotationId\":\"gfbkjubdyh\",\"createdAt\":\"2021-12-06T06:26:32Z\",\"annotationDetails\":{\"g\":\"in\",\"tsttktlahbq\":\"wzf\",\"mmqtgqqqxhr\":\"ctxtgzukxi\"},\"description\":\"rxcpjuisavo\"}],\"nextMarker\":\"dzf\"}") .toObject(GetDataAnnotationsResponseInner.class); - Assertions.assertEquals("vwzjbhyz", model.entityName()); - Assertions.assertEquals("vmnvu", model.annotations().get(0).annotationDetails().get("eqvldspast")); - Assertions.assertEquals("f", model.annotations().get(0).description()); - Assertions.assertEquals("tcktyhjtqedcgzu", model.nextMarker()); + Assertions.assertEquals("nhxmsi", model.entityName()); + Assertions.assertEquals("fjchvc", model.annotations().get(0).annotationDetails().get("yysfgdot")); + Assertions.assertEquals("rilbywdx", model.annotations().get(0).description()); + Assertions.assertEquals("dzf", model.nextMarker()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetSignalRecommendationsResponseInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetSignalRecommendationsResponseInnerTests.java index 53eff341f3c9..c39fbcfda293 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetSignalRecommendationsResponseInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/GetSignalRecommendationsResponseInnerTests.java @@ -7,7 +7,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.fluent.models.GetSignalRecommendationsResponseInner; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import org.junit.jupiter.api.Assertions; @@ -16,53 +15,46 @@ public final class GetSignalRecommendationsResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GetSignalRecommendationsResponseInner model = BinaryData.fromString( - "{\"recommendedSignals\":[{\"signalId\":\"mmrqz\",\"metricNamespace\":\"rjvpglydzgkrvqee\",\"metricName\":\"oepry\",\"aggregationType\":\"Average\",\"unit\":\"ytp\",\"timeGrain\":\"mov\",\"dimensionFilter\":\"fvaawzqa\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":7.41119746224509,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"Dynamic\",\"threshold\":95.88043135076997,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT15M\"}}},{\"signalId\":\"okpvzm\",\"metricNamespace\":\"t\",\"metricName\":\"dgxobfircl\",\"aggregationType\":\"Minimum\",\"unit\":\"iayz\",\"timeGrain\":\"ykhyawfvjlboxqvk\",\"dimensionFilter\":\"mxho\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Dynamic\",\"threshold\":48.65698040013442,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":42.60607577558919,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT5M\"}}}],\"recommendedConfigurations\":[{\"signalId\":\"p\",\"metricNamespace\":\"a\",\"metricName\":\"sdzhezww\",\"aggregationType\":\"None\",\"unit\":\"yuvvfonkp\",\"timeGrain\":\"qyikvy\",\"dimensionFilter\":\"uyav\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":89.05603672748985,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":93.5287746137057,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT15M\"}}},{\"signalId\":\"rsg\",\"metricNamespace\":\"b\",\"metricName\":\"uzqgnjdgkynsc\",\"aggregationType\":\"None\",\"unit\":\"zvhxnk\",\"timeGrain\":\"tkubotppn\",\"dimensionFilter\":\"xz\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":43.69918280258318,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":44.57062893078121,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT30M\"}}},{\"signalId\":\"lfkqojpy\",\"metricNamespace\":\"gtrd\",\"metricName\":\"ifmzzsd\",\"aggregationType\":\"Maximum\",\"unit\":\"nysuxmprafwgckh\",\"timeGrain\":\"xvd\",\"dimensionFilter\":\"fwafqrouda\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":1.8671842874156686,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":18.57995999456683,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT30M\"}}}]}") + "{\"recommendedSignals\":[{\"signalId\":\"zivj\",\"metricNamespace\":\"rqttbajlkatnw\",\"metricName\":\"iopid\",\"aggregationType\":\"Maximum\",\"unit\":\"kuvscxkdm\",\"timeGrain\":\"govibrxkpmloazu\",\"dimensionFilter\":\"ocbgoorbteoyb\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":94.24029215995002,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":94.29850569183385,\"sensitivity\":\"Low\"}}},{\"signalId\":\"il\",\"metricNamespace\":\"wwtkg\",\"metricName\":\"nye\",\"aggregationType\":\"Count\",\"unit\":\"yvudtjuewbci\",\"timeGrain\":\"uuwhcjyxcc\",\"dimensionFilter\":\"vpayakkudzpx\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":16.411699648967215,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":98.8252906927025,\"sensitivity\":\"Medium\"}}},{\"signalId\":\"fkyrk\",\"metricNamespace\":\"dg\",\"metricName\":\"gsj\",\"aggregationType\":\"Count\",\"unit\":\"qjnobaiyhddviac\",\"timeGrain\":\"fnmntfpmvmemfn\",\"dimensionFilter\":\"dwvvba\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":15.777579665359697,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":77.99745293298962,\"sensitivity\":\"Low\"}}},{\"signalId\":\"rdnhfuku\",\"metricNamespace\":\"jcswsmys\",\"metricName\":\"luqypfcvlerch\",\"aggregationType\":\"Maximum\",\"unit\":\"f\",\"timeGrain\":\"babwidfcxss\",\"dimensionFilter\":\"unnoxyhk\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":48.13591398474999,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":80.76145919049176,\"sensitivity\":\"Medium\"}}}],\"recommendedConfigurations\":[{\"signalId\":\"ewda\",\"metricNamespace\":\"djvlpj\",\"metricName\":\"kzbrmsgeivsiy\",\"aggregationType\":\"Average\",\"unit\":\"ncj\",\"timeGrain\":\"onbzoggculapzwy\",\"dimensionFilter\":\"gogtqxepnylbf\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":87.99665917910454,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":19.535648644305248,\"sensitivity\":\"Medium\"}}}]}") .toObject(GetSignalRecommendationsResponseInner.class); - Assertions.assertEquals("mmrqz", model.recommendedSignals().get(0).signalId()); - Assertions.assertEquals("rjvpglydzgkrvqee", model.recommendedSignals().get(0).metricNamespace()); - Assertions.assertEquals("oepry", model.recommendedSignals().get(0).metricName()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, model.recommendedSignals().get(0).aggregationType()); - Assertions.assertEquals("ytp", model.recommendedSignals().get(0).unit()); - Assertions.assertEquals("mov", model.recommendedSignals().get(0).timeGrain()); - Assertions.assertEquals("fvaawzqa", model.recommendedSignals().get(0).dimensionFilter()); - Assertions.assertEquals(SignalOperator.NOT_EQUAL, + Assertions.assertEquals("zivj", model.recommendedSignals().get(0).signalId()); + Assertions.assertEquals("rqttbajlkatnw", model.recommendedSignals().get(0).metricNamespace()); + Assertions.assertEquals("iopid", model.recommendedSignals().get(0).metricName()); + Assertions.assertEquals(MetricAggregationType.MAXIMUM, model.recommendedSignals().get(0).aggregationType()); + Assertions.assertEquals("kuvscxkdm", model.recommendedSignals().get(0).unit()); + Assertions.assertEquals("govibrxkpmloazu", model.recommendedSignals().get(0).timeGrain()); + Assertions.assertEquals("ocbgoorbteoyb", model.recommendedSignals().get(0).dimensionFilter()); + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.recommendedSignals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(7.41119746224509D, + Assertions.assertEquals(94.24029215995002D, model.recommendedSignals().get(0).evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.recommendedSignals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - model.recommendedSignals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.DYNAMIC, + Assertions.assertEquals(SignalOperator.EQUAL, model.recommendedSignals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(95.88043135076997D, + Assertions.assertEquals(94.29850569183385D, model.recommendedSignals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.recommendedSignals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, - model.recommendedSignals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("p", model.recommendedConfigurations().get(0).signalId()); - Assertions.assertEquals("a", model.recommendedConfigurations().get(0).metricNamespace()); - Assertions.assertEquals("sdzhezww", model.recommendedConfigurations().get(0).metricName()); - Assertions.assertEquals(MetricAggregationType.NONE, model.recommendedConfigurations().get(0).aggregationType()); - Assertions.assertEquals("yuvvfonkp", model.recommendedConfigurations().get(0).unit()); - Assertions.assertEquals("qyikvy", model.recommendedConfigurations().get(0).timeGrain()); - Assertions.assertEquals("uyav", model.recommendedConfigurations().get(0).dimensionFilter()); - Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, + Assertions.assertEquals("ewda", model.recommendedConfigurations().get(0).signalId()); + Assertions.assertEquals("djvlpj", model.recommendedConfigurations().get(0).metricNamespace()); + Assertions.assertEquals("kzbrmsgeivsiy", model.recommendedConfigurations().get(0).metricName()); + Assertions.assertEquals(MetricAggregationType.AVERAGE, + model.recommendedConfigurations().get(0).aggregationType()); + Assertions.assertEquals("ncj", model.recommendedConfigurations().get(0).unit()); + Assertions.assertEquals("onbzoggculapzwy", model.recommendedConfigurations().get(0).timeGrain()); + Assertions.assertEquals("gogtqxepnylbf", model.recommendedConfigurations().get(0).dimensionFilter()); + Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.recommendedConfigurations().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(89.05603672748985D, + Assertions.assertEquals(87.99665917910454D, model.recommendedConfigurations().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.recommendedConfigurations().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.recommendedConfigurations().get(0).evaluationRules().degradedRule().lookBackWindow()); Assertions.assertEquals(SignalOperator.LESS_THAN, model.recommendedConfigurations().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(93.5287746137057D, + Assertions.assertEquals(19.535648644305248D, model.recommendedConfigurations().get(0).evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.recommendedConfigurations().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, - model.recommendedConfigurations().get(0).evaluationRules().unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsCreateMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsCreateMockTests.java index 99c883c8fa34..8fdc451ff7fd 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsCreateMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsCreateMockTests.java @@ -27,7 +27,7 @@ public final class HealthModelsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"or\",\"tenantId\":\"wjlvizbfhfov\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"cwyhahno\":{\"principalId\":\"btuodxeszabbel\",\"clientId\":\"umuaslzkwrrwoycq\"},\"rzpgep\":{\"principalId\":\"rkywuhpsvfuu\",\"clientId\":\"tlwexxwlalniexz\"},\"hzyvlixqnrkcx\":{\"principalId\":\"yb\",\"clientId\":\"wpgdak\"}}},\"location\":\"ibn\",\"tags\":{\"ttexoqqpwcyyufmh\":\"suxswqrntvlwijp\"},\"id\":\"uncuw\",\"name\":\"qspkcdqzhlctd\",\"type\":\"unqndyfpchrqb\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"cd\",\"tenantId\":\"qbw\",\"type\":\"None\",\"userAssignedIdentities\":{\"ud\":{\"principalId\":\"gsfjac\",\"clientId\":\"lhhxudbxvodhtnsi\"}}},\"location\":\"m\",\"tags\":{\"rcxfailcfxwmdb\":\"ckdlpag\",\"lnacgcc\":\"xdfgsftufqobr\"},\"id\":\"knh\",\"name\":\"kizvytn\",\"type\":\"zvulj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,19 +37,19 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); HealthModel response = manager.healthModels() - .define("hcz") - .withRegion("vidizozsdb") - .withExistingResourceGroup("ivfcdisyirnx") - .withTags(mapOf("n", "jmonfdgn", "keifzzhmkdasv", "ypuuwwltvuqjctze")) + .define("yxkyxvx") + .withRegion("doj") + .withExistingResourceGroup("jjidjk") + .withTags(mapOf("ecuijpxtxs", "vavrefdees")) .withProperties(new HealthModelProperties()) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) + .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) .withUserAssignedIdentities( - mapOf("ofizehtdhgbj", new UserAssignedIdentity(), "mjerbdk", new UserAssignedIdentity()))) + mapOf("zg", new UserAssignedIdentity(), "qiekkkzddrt", new UserAssignedIdentity()))) .create(); - Assertions.assertEquals("ibn", response.location()); - Assertions.assertEquals("suxswqrntvlwijp", response.tags().get("ttexoqqpwcyyufmh")); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("m", response.location()); + Assertions.assertEquals("ckdlpag", response.tags().get("rcxfailcfxwmdb")); + Assertions.assertEquals(ManagedServiceIdentityType.NONE, response.identity().type()); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsGetByResourceGroupWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsGetByResourceGroupWithResponseMockTests.java index da80a3be9f4b..8a259f166608 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsGetByResourceGroupWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsGetByResourceGroupWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class HealthModelsGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\"},\"identity\":{\"principalId\":\"cbslhhx\",\"tenantId\":\"bxv\",\"type\":\"None\",\"userAssignedIdentities\":{\"dfgsftufqobrj\":{\"principalId\":\"sirudhzmmesckdlp\",\"clientId\":\"zrcxfailcfxwmdbo\"}}},\"location\":\"acgcckknhx\",\"tags\":{\"tnrzvuljra\":\"v\",\"roylaxxu\":\"eranokqgukkjqnv\",\"sfjbjsvg\":\"cdisd\",\"lxgccknfnwmbtm\":\"rwhryvycytd\"},\"id\":\"pdvjdhttzaefedx\",\"name\":\"hchrphkmcrjdqn\",\"type\":\"dfzpbgtgkylkdg\"}"; + = "{\"properties\":{\"provisioningState\":\"Creating\"},\"identity\":{\"principalId\":\"ftjuh\",\"tenantId\":\"azkmtgguwp\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"wrxgkneuvy\":{\"principalId\":\"civmmg\",\"clientId\":\"cf\"}}},\"location\":\"zqodfvpgshox\",\"tags\":{\"xvzflbqv\":\"bpfgzdj\",\"vetnwsdtutn\":\"aqvlgafcqusr\"},\"id\":\"lduycv\",\"name\":\"zhyrmewipmve\",\"type\":\"dxukuqgsjjxundxg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); HealthModel response = manager.healthModels() - .getByResourceGroupWithResponse("ecdmdqbwpy", "q", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("orxvxcjzhqiz", "fpxtg", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("acgcckknhx", response.location()); - Assertions.assertEquals("v", response.tags().get("tnrzvuljra")); - Assertions.assertEquals(ManagedServiceIdentityType.NONE, response.identity().type()); + Assertions.assertEquals("zqodfvpgshox", response.location()); + Assertions.assertEquals("bpfgzdj", response.tags().get("xvzflbqv")); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.identity().type()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListByResourceGroupMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListByResourceGroupMockTests.java index be62da8edac5..34db066645e1 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListByResourceGroupMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListByResourceGroupMockTests.java @@ -23,7 +23,7 @@ public final class HealthModelsListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"zhokvbwnhh\",\"tenantId\":\"lgehg\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"tugsresmkssjh\":{\"principalId\":\"fhpfeoajvgcxtx\",\"clientId\":\"sheafid\"},\"ptil\":{\"principalId\":\"ftxfkf\",\"clientId\":\"gpr\"},\"lllibph\":{\"principalId\":\"cbiqtgdqoh\",\"clientId\":\"wsldrizetpwbr\"},\"n\":{\"principalId\":\"zmizakakan\",\"clientId\":\"p\"}}},\"location\":\"ha\",\"tags\":{\"opteecj\":\"lhjlmuoyxprimr\",\"zaum\":\"eislstvasylwx\"},\"id\":\"eoohguufuzboyj\",\"name\":\"thwtzol\",\"type\":\"a\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\"},\"identity\":{\"principalId\":\"f\",\"tenantId\":\"hvvmuvgpmun\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"ypoh\":{\"principalId\":\"mhfbuzjy\",\"clientId\":\"sasbhu\"},\"msjnygqdnfw\":{\"principalId\":\"emslynsqyrp\",\"clientId\":\"obrltt\"}}},\"location\":\"dzgtil\",\"tags\":{\"oyzunbixxr\":\"nfhqlyvijouwivk\",\"clrcivtsox\":\"ikvcpwp\",\"m\":\"rkenx\",\"ao\":\"yefrpmpdnqqska\"},\"id\":\"vmm\",\"name\":\"npqfrtqlkzmeg\",\"type\":\"itgvkx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.healthModels().listByResourceGroup("rjeuut", com.azure.core.util.Context.NONE); + = manager.healthModels().listByResourceGroup("etw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ha", response.iterator().next().location()); - Assertions.assertEquals("lhjlmuoyxprimr", response.iterator().next().tags().get("opteecj")); + Assertions.assertEquals("dzgtil", response.iterator().next().location()); + Assertions.assertEquals("nfhqlyvijouwivk", response.iterator().next().tags().get("oyzunbixxr")); Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type()); } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListMockTests.java index d469adfcba1b..03070f68d716 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthModelsListMockTests.java @@ -23,7 +23,7 @@ public final class HealthModelsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"mebwjscjpah\",\"tenantId\":\"veabfqxnmwmqtib\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"aeukm\":{\"principalId\":\"dt\",\"clientId\":\"cttadi\"},\"yxeb\":{\"principalId\":\"ieekpndzaa\",\"clientId\":\"udqmeqwigpibudq\"}}},\"location\":\"bpmzzn\",\"tags\":{\"heioqa\":\"fyaqitm\"},\"id\":\"hvseufuqyrx\",\"name\":\"dlcgqlsismjqfr\",\"type\":\"dgamquhiosrsj\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"identity\":{\"principalId\":\"fegcea\",\"tenantId\":\"xwh\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"omfaj\":{\"principalId\":\"moy\",\"clientId\":\"lwigdivbkbx\"},\"guxak\":{\"principalId\":\"asqvd\",\"clientId\":\"y\"}}},\"location\":\"qzhzbezkgimsi\",\"tags\":{\"skgfmocwahpq\":\"sicddyvv\"},\"id\":\"atjeaahh\",\"name\":\"jhhn\",\"type\":\"kzyb\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,9 +34,9 @@ public void testList() throws Exception { PagedIterable response = manager.healthModels().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("bpmzzn", response.iterator().next().location()); - Assertions.assertEquals("fyaqitm", response.iterator().next().tags().get("heioqa")); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, + Assertions.assertEquals("qzhzbezkgimsi", response.iterator().next().location()); + Assertions.assertEquals("sicddyvv", response.iterator().next().tags().get("skgfmocwahpq")); + Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, response.iterator().next().identity().type()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthReportEvaluationRuleTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthReportEvaluationRuleTests.java index d17ca215b551..0249e9f75574 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthReportEvaluationRuleTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthReportEvaluationRuleTests.java @@ -7,7 +7,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.HealthReportEvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; import org.junit.jupiter.api.Assertions; @@ -16,37 +15,31 @@ public final class HealthReportEvaluationRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HealthReportEvaluationRule model = BinaryData.fromString( - "{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":95.67658997616351,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT5M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":59.279467855313925,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"}}") + "{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":1.712224893962122,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":84.77880809674335,\"sensitivity\":\"Medium\"}}") .toObject(HealthReportEvaluationRule.class); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.degradedRule().operator()); - Assertions.assertEquals(95.67658997616351D, model.degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.degradedRule().lookBackWindow()); + Assertions.assertEquals(SignalOperator.EQUAL, model.degradedRule().operator()); + Assertions.assertEquals(1.712224893962122D, model.degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.degradedRule().sensitivity()); Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, model.unhealthyRule().operator()); - Assertions.assertEquals(59.279467855313925D, model.unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.unhealthyRule().lookBackWindow()); + Assertions.assertEquals(84.77880809674335D, model.unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.unhealthyRule().sensitivity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { HealthReportEvaluationRule model = new HealthReportEvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(95.67658997616351D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT5M)) + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) + .withThreshold(1.712224893962122D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) - .withThreshold(59.279467855313925D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT5M)); + .withThreshold(84.77880809674335D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM)); model = BinaryData.fromObject(model).toObject(HealthReportEvaluationRule.class); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.degradedRule().operator()); - Assertions.assertEquals(95.67658997616351D, model.degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.degradedRule().lookBackWindow()); + Assertions.assertEquals(SignalOperator.EQUAL, model.degradedRule().operator()); + Assertions.assertEquals(1.712224893962122D, model.degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.degradedRule().sensitivity()); Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, model.unhealthyRule().operator()); - Assertions.assertEquals(59.279467855313925D, model.unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.unhealthyRule().lookBackWindow()); + Assertions.assertEquals(84.77880809674335D, model.unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.unhealthyRule().sensitivity()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthReportRequestTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthReportRequestTests.java index 0a555aebf872..51a5512bc614 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthReportRequestTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthReportRequestTests.java @@ -9,7 +9,6 @@ import com.azure.resourcemanager.cloudhealth.models.HealthReportEvaluationRule; import com.azure.resourcemanager.cloudhealth.models.HealthReportRequest; import com.azure.resourcemanager.cloudhealth.models.HealthState; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; import org.junit.jupiter.api.Assertions; @@ -18,54 +17,48 @@ public final class HealthReportRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HealthReportRequest model = BinaryData.fromString( - "{\"signalName\":\"vvbalx\",\"healthState\":\"Healthy\",\"value\":15.777579665359697,\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":77.99745293298962,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":99.92283619919733,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT1H\"}},\"expiresInMinutes\":437386763,\"additionalContext\":\"wsmystuluqypf\"}") + "{\"signalName\":\"vhmxtdrjfu\",\"healthState\":\"Deleted\",\"value\":8.029576619540357,\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":86.45937853448686,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":2.2461130053014755,\"sensitivity\":\"Medium\"}},\"expiresInMinutes\":2030279992,\"additionalContext\":\"aadraufactkahz\"}") .toObject(HealthReportRequest.class); - Assertions.assertEquals("vvbalx", model.signalName()); - Assertions.assertEquals(HealthState.HEALTHY, model.healthState()); - Assertions.assertEquals(15.777579665359697D, model.value()); + Assertions.assertEquals("vhmxtdrjfu", model.signalName()); + Assertions.assertEquals(HealthState.DELETED, model.healthState()); + Assertions.assertEquals(8.029576619540357D, model.value()); Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(77.99745293298962D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(86.45937853448686D, model.evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(99.92283619919733D, model.evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(2.2461130053014755D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals(437386763, model.expiresInMinutes()); - Assertions.assertEquals("wsmystuluqypf", model.additionalContext()); + Assertions.assertEquals(2030279992, model.expiresInMinutes()); + Assertions.assertEquals("aadraufactkahz", model.additionalContext()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - HealthReportRequest model = new HealthReportRequest().withSignalName("vvbalx") - .withHealthState(HealthState.HEALTHY) - .withValue(15.777579665359697D) + HealthReportRequest model = new HealthReportRequest().withSignalName("vhmxtdrjfu") + .withHealthState(HealthState.DELETED) + .withValue(8.029576619540357D) .withEvaluationRules(new HealthReportEvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) - .withThreshold(77.99745293298962D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT15M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(99.92283619919733D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT1H))) - .withExpiresInMinutes(437386763) - .withAdditionalContext("wsmystuluqypf"); + .withThreshold(86.45937853448686D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) + .withThreshold(2.2461130053014755D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))) + .withExpiresInMinutes(2030279992) + .withAdditionalContext("aadraufactkahz"); model = BinaryData.fromObject(model).toObject(HealthReportRequest.class); - Assertions.assertEquals("vvbalx", model.signalName()); - Assertions.assertEquals(HealthState.HEALTHY, model.healthState()); - Assertions.assertEquals(15.777579665359697D, model.value()); + Assertions.assertEquals("vhmxtdrjfu", model.signalName()); + Assertions.assertEquals(HealthState.DELETED, model.healthState()); + Assertions.assertEquals(8.029576619540357D, model.value()); Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(77.99745293298962D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(86.45937853448686D, model.evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(99.92283619919733D, model.evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(2.2461130053014755D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals(437386763, model.expiresInMinutes()); - Assertions.assertEquals("wsmystuluqypf", model.additionalContext()); + Assertions.assertEquals(2030279992, model.expiresInMinutes()); + Assertions.assertEquals("aadraufactkahz", model.additionalContext()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthStateTransitionTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthStateTransitionTests.java index 7daf692b2e40..702e08d2b2fb 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthStateTransitionTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/HealthStateTransitionTests.java @@ -14,11 +14,11 @@ public final class HealthStateTransitionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HealthStateTransition model = BinaryData.fromString( - "{\"previousState\":\"Deleted\",\"newState\":\"Degraded\",\"occurredAt\":\"2021-12-03T21:15:41Z\",\"reason\":\"wwtkg\"}") + "{\"previousState\":\"Degraded\",\"newState\":\"Deleted\",\"occurredAt\":\"2021-09-21T02:12:50Z\",\"reason\":\"ookk\"}") .toObject(HealthStateTransition.class); - Assertions.assertEquals(HealthState.DELETED, model.previousState()); - Assertions.assertEquals(HealthState.DEGRADED, model.newState()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-03T21:15:41Z"), model.occurredAt()); - Assertions.assertEquals("wwtkg", model.reason()); + Assertions.assertEquals(HealthState.DEGRADED, model.previousState()); + Assertions.assertEquals(HealthState.DELETED, model.newState()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-21T02:12:50Z"), model.occurredAt()); + Assertions.assertEquals("ookk", model.reason()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/IconDefinitionTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/IconDefinitionTests.java index 6d09c7929fb9..393a4986204d 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/IconDefinitionTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/IconDefinitionTests.java @@ -11,17 +11,17 @@ public final class IconDefinitionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IconDefinition model = BinaryData.fromString("{\"iconName\":\"i\",\"customData\":\"dggkzzlvmbmpa\"}") + IconDefinition model = BinaryData.fromString("{\"iconName\":\"hos\",\"customData\":\"dqrhzoymib\"}") .toObject(IconDefinition.class); - Assertions.assertEquals("i", model.iconName()); - Assertions.assertEquals("dggkzzlvmbmpa", model.customData()); + Assertions.assertEquals("hos", model.iconName()); + Assertions.assertEquals("dqrhzoymib", model.customData()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IconDefinition model = new IconDefinition().withIconName("i").withCustomData("dggkzzlvmbmpa"); + IconDefinition model = new IconDefinition().withIconName("hos").withCustomData("dqrhzoymib"); model = BinaryData.fromObject(model).toObject(IconDefinition.class); - Assertions.assertEquals("i", model.iconName()); - Assertions.assertEquals("dggkzzlvmbmpa", model.customData()); + Assertions.assertEquals("hos", model.iconName()); + Assertions.assertEquals("dqrhzoymib", model.customData()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsQuerySignalDefinitionPropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsQuerySignalDefinitionPropertiesTests.java index e9deaf022343..b04f713d4488 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsQuerySignalDefinitionPropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsQuerySignalDefinitionPropertiesTests.java @@ -8,7 +8,6 @@ import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; import com.azure.resourcemanager.cloudhealth.models.LogAnalyticsQuerySignalDefinitionProperties; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; @@ -20,62 +19,56 @@ public final class LogAnalyticsQuerySignalDefinitionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsQuerySignalDefinitionProperties model = BinaryData.fromString( - "{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"lfh\",\"timeGrain\":\"wmc\",\"valueColumnName\":\"pwlbjnpg\",\"provisioningState\":\"Deleting\",\"displayName\":\"adehxnltyfsopp\",\"refreshInterval\":\"PT10M\",\"tags\":{\"orxzdmohctbqvud\":\"nzwdejba\",\"nvowgujju\":\"xdn\"},\"dataUnit\":\"dkcglhsl\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":50.55987266337174,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"Dynamic\",\"threshold\":59.57869744076928,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT30M\"}}}") + "{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"umasxazjpq\",\"timeGrain\":\"gual\",\"valueColumnName\":\"xxhejjzzvd\",\"provisioningState\":\"Succeeded\",\"displayName\":\"dslfhotwmcy\",\"refreshInterval\":\"PT2H\",\"tags\":{\"cftadeh\":\"jnpg\",\"dejbavo\":\"nltyfsoppusuesnz\"},\"dataUnit\":\"zdmohctbqvu\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Dynamic\",\"threshold\":28.467563312548407,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"Dynamic\",\"threshold\":79.28500582682689,\"sensitivity\":\"High\"}}}") .toObject(LogAnalyticsQuerySignalDefinitionProperties.class); - Assertions.assertEquals("adehxnltyfsopp", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT10M, model.refreshInterval()); - Assertions.assertEquals("nzwdejba", model.tags().get("orxzdmohctbqvud")); - Assertions.assertEquals("dkcglhsl", model.dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(50.55987266337174D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().degradedRule().lookBackWindow()); + Assertions.assertEquals("dslfhotwmcy", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT2H, model.refreshInterval()); + Assertions.assertEquals("jnpg", model.tags().get("cftadeh")); + Assertions.assertEquals("zdmohctbqvu", model.dataUnit()); + Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(28.467563312548407D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(59.57869744076928D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(79.28500582682689D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, model.evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("lfh", model.queryText()); - Assertions.assertEquals("wmc", model.timeGrain()); - Assertions.assertEquals("pwlbjnpg", model.valueColumnName()); + Assertions.assertEquals("umasxazjpq", model.queryText()); + Assertions.assertEquals("gual", model.timeGrain()); + Assertions.assertEquals("xxhejjzzvd", model.valueColumnName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { LogAnalyticsQuerySignalDefinitionProperties model - = new LogAnalyticsQuerySignalDefinitionProperties().withDisplayName("adehxnltyfsopp") - .withRefreshInterval(RefreshInterval.PT10M) - .withTags(mapOf("orxzdmohctbqvud", "nzwdejba", "nvowgujju", "xdn")) - .withDataUnit("dkcglhsl") + = new LogAnalyticsQuerySignalDefinitionProperties().withDisplayName("dslfhotwmcy") + .withRefreshInterval(RefreshInterval.PT2H) + .withTags(mapOf("cftadeh", "jnpg", "dejbavo", "nltyfsoppusuesnz")) + .withDataUnit("zdmohctbqvu") .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(50.55987266337174D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT15M)) + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) + .withThreshold(28.467563312548407D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) - .withThreshold(59.57869744076928D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT30M))) - .withQueryText("lfh") - .withTimeGrain("wmc") - .withValueColumnName("pwlbjnpg"); + .withThreshold(79.28500582682689D) + .withSensitivity(DynamicThresholdSensitivity.HIGH))) + .withQueryText("umasxazjpq") + .withTimeGrain("gual") + .withValueColumnName("xxhejjzzvd"); model = BinaryData.fromObject(model).toObject(LogAnalyticsQuerySignalDefinitionProperties.class); - Assertions.assertEquals("adehxnltyfsopp", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT10M, model.refreshInterval()); - Assertions.assertEquals("nzwdejba", model.tags().get("orxzdmohctbqvud")); - Assertions.assertEquals("dkcglhsl", model.dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(50.55987266337174D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().degradedRule().lookBackWindow()); + Assertions.assertEquals("dslfhotwmcy", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT2H, model.refreshInterval()); + Assertions.assertEquals("jnpg", model.tags().get("cftadeh")); + Assertions.assertEquals("zdmohctbqvu", model.dataUnit()); + Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(28.467563312548407D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(59.57869744076928D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(79.28500582682689D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, model.evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("lfh", model.queryText()); - Assertions.assertEquals("wmc", model.timeGrain()); - Assertions.assertEquals("pwlbjnpg", model.valueColumnName()); + Assertions.assertEquals("umasxazjpq", model.queryText()); + Assertions.assertEquals("gual", model.timeGrain()); + Assertions.assertEquals("xxhejjzzvd", model.valueColumnName()); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsSignalTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsSignalTests.java index d48c72c82f89..617bc9d1ca44 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsSignalTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsSignalTests.java @@ -8,7 +8,6 @@ import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; import com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignal; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; @@ -18,63 +17,57 @@ public final class LogAnalyticsSignalTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsSignal model = BinaryData.fromString( - "{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"cjabudurgkakmo\",\"timeGrain\":\"hjjklff\",\"valueColumnName\":\"ouw\",\"displayName\":\"gzrf\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"ebizikayuh\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":38.363659968911456,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":3.4124668252141888,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"}},\"name\":\"pgvmpipaslthaqfx\",\"signalDefinitionName\":\"mwutwbdsre\",\"status\":{\"healthState\":\"Deleted\",\"value\":36.09617122072962,\"reportedAt\":\"2021-09-27T12:02:20Z\",\"error\":\"wqkdwytisibi\",\"additionalContext\":\"gpikpzimejza\"}}") + "{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"raehtwdwrft\",\"timeGrain\":\"iby\",\"valueColumnName\":\"dl\",\"displayName\":\"shfwpracstwity\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"xccedcpnmdyodn\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":8.705975984944104,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":53.24514164282552,\"sensitivity\":\"High\"}},\"name\":\"cxnavv\",\"signalDefinitionName\":\"qiby\",\"status\":{\"healthState\":\"Unknown\",\"value\":78.46077447584362,\"reportedAt\":\"2021-10-30T22:05:26Z\",\"error\":\"djrkvfgbvfvpd\",\"additionalContext\":\"daciz\"}}") .toObject(LogAnalyticsSignal.class); - Assertions.assertEquals("pgvmpipaslthaqfx", model.name()); - Assertions.assertEquals("mwutwbdsre", model.signalDefinitionName()); - Assertions.assertEquals("cjabudurgkakmo", model.queryText()); - Assertions.assertEquals("hjjklff", model.timeGrain()); - Assertions.assertEquals("ouw", model.valueColumnName()); - Assertions.assertEquals("gzrf", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT1M, model.refreshInterval()); - Assertions.assertEquals("ebizikayuh", model.dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(38.363659968911456D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(3.4124668252141888D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals("cxnavv", model.name()); + Assertions.assertEquals("qiby", model.signalDefinitionName()); + Assertions.assertEquals("raehtwdwrft", model.queryText()); + Assertions.assertEquals("iby", model.timeGrain()); + Assertions.assertEquals("dl", model.valueColumnName()); + Assertions.assertEquals("shfwpracstwity", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT10M, model.refreshInterval()); + Assertions.assertEquals("xccedcpnmdyodn", model.dataUnit()); + Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(8.705975984944104D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(53.24514164282552D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.evaluationRules().unhealthyRule().lookBackWindow()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LogAnalyticsSignal model = new LogAnalyticsSignal().withName("pgvmpipaslthaqfx") - .withSignalDefinitionName("mwutwbdsre") - .withQueryText("cjabudurgkakmo") - .withTimeGrain("hjjklff") - .withValueColumnName("ouw") - .withDisplayName("gzrf") - .withRefreshInterval(RefreshInterval.PT1M) - .withDataUnit("ebizikayuh") + LogAnalyticsSignal model = new LogAnalyticsSignal().withName("cxnavv") + .withSignalDefinitionName("qiby") + .withQueryText("raehtwdwrft") + .withTimeGrain("iby") + .withValueColumnName("dl") + .withDisplayName("shfwpracstwity") + .withRefreshInterval(RefreshInterval.PT10M) + .withDataUnit("xccedcpnmdyodn") .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(38.363659968911456D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT5M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(3.4124668252141888D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT5M))); + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) + .withThreshold(8.705975984944104D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) + .withThreshold(53.24514164282552D) + .withSensitivity(DynamicThresholdSensitivity.HIGH))); model = BinaryData.fromObject(model).toObject(LogAnalyticsSignal.class); - Assertions.assertEquals("pgvmpipaslthaqfx", model.name()); - Assertions.assertEquals("mwutwbdsre", model.signalDefinitionName()); - Assertions.assertEquals("cjabudurgkakmo", model.queryText()); - Assertions.assertEquals("hjjklff", model.timeGrain()); - Assertions.assertEquals("ouw", model.valueColumnName()); - Assertions.assertEquals("gzrf", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT1M, model.refreshInterval()); - Assertions.assertEquals("ebizikayuh", model.dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(38.363659968911456D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(3.4124668252141888D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals("cxnavv", model.name()); + Assertions.assertEquals("qiby", model.signalDefinitionName()); + Assertions.assertEquals("raehtwdwrft", model.queryText()); + Assertions.assertEquals("iby", model.timeGrain()); + Assertions.assertEquals("dl", model.valueColumnName()); + Assertions.assertEquals("shfwpracstwity", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT10M, model.refreshInterval()); + Assertions.assertEquals("xccedcpnmdyodn", model.dataUnit()); + Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(8.705975984944104D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(53.24514164282552D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.evaluationRules().unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsSignalsTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsSignalsTests.java index 6ab9ca488d57..b05bdaf9ae90 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsSignalsTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/LogAnalyticsSignalsTests.java @@ -9,7 +9,6 @@ import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; import com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignal; import com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignals; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; @@ -20,83 +19,102 @@ public final class LogAnalyticsSignalsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogAnalyticsSignals model = BinaryData.fromString( - "{\"authenticationSetting\":\"qatmtdhtmdvy\",\"logAnalyticsWorkspaceResourceId\":\"gikdgsz\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"irryuzhlh\",\"timeGrain\":\"oqrvqqaatjin\",\"valueColumnName\":\"goupmfiibfg\",\"displayName\":\"ioolvrwxkvtkkgll\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"gvjayvblmh\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":40.10149123391532,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":72.21456414771232,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT1H\"}},\"name\":\"u\",\"signalDefinitionName\":\"g\",\"status\":{\"healthState\":\"Unknown\",\"value\":16.887695080757048,\"reportedAt\":\"2021-03-16T15:12:59Z\",\"error\":\"mctlpdngitv\",\"additionalContext\":\"mhrixkwmyijejve\"}}]}") + "{\"authenticationSetting\":\"gofel\",\"logAnalyticsWorkspaceResourceId\":\"a\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"qhl\",\"timeGrain\":\"riiiojnalghfkv\",\"valueColumnName\":\"sexso\",\"displayName\":\"el\",\"refreshInterval\":\"PT1H\",\"dataUnit\":\"ahhxvrh\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":72.5395023833847,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":47.46988846523759,\"sensitivity\":\"Medium\"}},\"name\":\"tqs\",\"signalDefinitionName\":\"qxujxukndxd\",\"status\":{\"healthState\":\"Deleted\",\"value\":87.25114238241228,\"reportedAt\":\"2021-02-16T11:30:47Z\",\"error\":\"msyqtfi\",\"additionalContext\":\"hbotzingamvppho\"}},{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"qzudphq\",\"timeGrain\":\"vdkfwynwcvtbvk\",\"valueColumnName\":\"hmtnvy\",\"displayName\":\"atkzwpcnpw\",\"refreshInterval\":\"PT30M\",\"dataUnit\":\"esgvvsccyaj\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":92.17927923376674,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":29.091371702503245,\"sensitivity\":\"Medium\"}},\"name\":\"xu\",\"signalDefinitionName\":\"mdwzrmuhapfcqdps\",\"status\":{\"healthState\":\"Healthy\",\"value\":21.00833391590665,\"reportedAt\":\"2021-04-21T12:11:06Z\",\"error\":\"mgccelvezrypq\",\"additionalContext\":\"feo\"}},{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"rqwky\",\"timeGrain\":\"ob\",\"valueColumnName\":\"gxedkow\",\"displayName\":\"bqpc\",\"refreshInterval\":\"PT15M\",\"dataUnit\":\"wccsnjvcdwxlpqek\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Dynamic\",\"threshold\":32.08662672458716,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":46.93975968650875,\"sensitivity\":\"High\"}},\"name\":\"atmtdhtmdvy\",\"signalDefinitionName\":\"ikdgszywkbir\",\"status\":{\"healthState\":\"Healthy\",\"value\":59.80492579486288,\"reportedAt\":\"2021-02-26T15:24:40Z\",\"error\":\"qrvqq\",\"additionalContext\":\"t\"}}]}") .toObject(LogAnalyticsSignals.class); - Assertions.assertEquals("qatmtdhtmdvy", model.authenticationSetting()); - Assertions.assertEquals("gikdgsz", model.logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("u", model.signals().get(0).name()); - Assertions.assertEquals("g", model.signals().get(0).signalDefinitionName()); - Assertions.assertEquals("irryuzhlh", model.signals().get(0).queryText()); - Assertions.assertEquals("oqrvqqaatjin", model.signals().get(0).timeGrain()); - Assertions.assertEquals("goupmfiibfg", model.signals().get(0).valueColumnName()); - Assertions.assertEquals("ioolvrwxkvtkkgll", model.signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT1M, model.signals().get(0).refreshInterval()); - Assertions.assertEquals("gvjayvblmh", model.signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.NOT_EQUAL, + Assertions.assertEquals("gofel", model.authenticationSetting()); + Assertions.assertEquals("a", model.logAnalyticsWorkspaceResourceId()); + Assertions.assertEquals("tqs", model.signals().get(0).name()); + Assertions.assertEquals("qxujxukndxd", model.signals().get(0).signalDefinitionName()); + Assertions.assertEquals("qhl", model.signals().get(0).queryText()); + Assertions.assertEquals("riiiojnalghfkv", model.signals().get(0).timeGrain()); + Assertions.assertEquals("sexso", model.signals().get(0).valueColumnName()); + Assertions.assertEquals("el", model.signals().get(0).displayName()); + Assertions.assertEquals(RefreshInterval.PT1H, model.signals().get(0).refreshInterval()); + Assertions.assertEquals("ahhxvrh", model.signals().get(0).dataUnit()); + Assertions.assertEquals(SignalOperator.GREATER_THAN, model.signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(40.10149123391532D, - model.signals().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(72.5395023833847D, model.signals().get(0).evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, model.signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(72.21456414771232D, + Assertions.assertEquals(47.46988846523759D, model.signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LogAnalyticsSignals model = new LogAnalyticsSignals().withAuthenticationSetting("qatmtdhtmdvy") - .withLogAnalyticsWorkspaceResourceId("gikdgsz") - .withSignals(Arrays.asList(new LogAnalyticsSignal().withName("u") - .withSignalDefinitionName("g") - .withQueryText("irryuzhlh") - .withTimeGrain("oqrvqqaatjin") - .withValueColumnName("goupmfiibfg") - .withDisplayName("ioolvrwxkvtkkgll") - .withRefreshInterval(RefreshInterval.PT1M) - .withDataUnit("gvjayvblmh") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) - .withThreshold(40.10149123391532D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(72.21456414771232D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT1H))))); + LogAnalyticsSignals model = new LogAnalyticsSignals().withAuthenticationSetting("gofel") + .withLogAnalyticsWorkspaceResourceId("a") + .withSignals(Arrays.asList( + new LogAnalyticsSignal().withName("tqs") + .withSignalDefinitionName("qxujxukndxd") + .withQueryText("qhl") + .withTimeGrain("riiiojnalghfkv") + .withValueColumnName("sexso") + .withDisplayName("el") + .withRefreshInterval(RefreshInterval.PT1H) + .withDataUnit("ahhxvrh") + .withEvaluationRules(new EvaluationRule() + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) + .withThreshold(72.5395023833847D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) + .withThreshold(47.46988846523759D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))), + new LogAnalyticsSignal().withName("xu") + .withSignalDefinitionName("mdwzrmuhapfcqdps") + .withQueryText("qzudphq") + .withTimeGrain("vdkfwynwcvtbvk") + .withValueColumnName("hmtnvy") + .withDisplayName("atkzwpcnpw") + .withRefreshInterval(RefreshInterval.PT30M) + .withDataUnit("esgvvsccyaj") + .withEvaluationRules(new EvaluationRule() + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) + .withThreshold(92.17927923376674D) + .withSensitivity(DynamicThresholdSensitivity.HIGH)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) + .withThreshold(29.091371702503245D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))), + new LogAnalyticsSignal().withName("atmtdhtmdvy") + .withSignalDefinitionName("ikdgszywkbir") + .withQueryText("rqwky") + .withTimeGrain("ob") + .withValueColumnName("gxedkow") + .withDisplayName("bqpc") + .withRefreshInterval(RefreshInterval.PT15M) + .withDataUnit("wccsnjvcdwxlpqek") + .withEvaluationRules(new EvaluationRule() + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) + .withThreshold(32.08662672458716D) + .withSensitivity(DynamicThresholdSensitivity.HIGH)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) + .withThreshold(46.93975968650875D) + .withSensitivity(DynamicThresholdSensitivity.HIGH))))); model = BinaryData.fromObject(model).toObject(LogAnalyticsSignals.class); - Assertions.assertEquals("qatmtdhtmdvy", model.authenticationSetting()); - Assertions.assertEquals("gikdgsz", model.logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("u", model.signals().get(0).name()); - Assertions.assertEquals("g", model.signals().get(0).signalDefinitionName()); - Assertions.assertEquals("irryuzhlh", model.signals().get(0).queryText()); - Assertions.assertEquals("oqrvqqaatjin", model.signals().get(0).timeGrain()); - Assertions.assertEquals("goupmfiibfg", model.signals().get(0).valueColumnName()); - Assertions.assertEquals("ioolvrwxkvtkkgll", model.signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT1M, model.signals().get(0).refreshInterval()); - Assertions.assertEquals("gvjayvblmh", model.signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.NOT_EQUAL, + Assertions.assertEquals("gofel", model.authenticationSetting()); + Assertions.assertEquals("a", model.logAnalyticsWorkspaceResourceId()); + Assertions.assertEquals("tqs", model.signals().get(0).name()); + Assertions.assertEquals("qxujxukndxd", model.signals().get(0).signalDefinitionName()); + Assertions.assertEquals("qhl", model.signals().get(0).queryText()); + Assertions.assertEquals("riiiojnalghfkv", model.signals().get(0).timeGrain()); + Assertions.assertEquals("sexso", model.signals().get(0).valueColumnName()); + Assertions.assertEquals("el", model.signals().get(0).displayName()); + Assertions.assertEquals(RefreshInterval.PT1H, model.signals().get(0).refreshInterval()); + Assertions.assertEquals("ahhxvrh", model.signals().get(0).dataUnit()); + Assertions.assertEquals(SignalOperator.GREATER_THAN, model.signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(40.10149123391532D, - model.signals().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(72.5395023833847D, model.signals().get(0).evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, model.signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(72.21456414771232D, + Assertions.assertEquals(47.46988846523759D, model.signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ManagedIdentityAuthenticationSettingPropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ManagedIdentityAuthenticationSettingPropertiesTests.java index 72e854f8125d..853c32331650 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ManagedIdentityAuthenticationSettingPropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ManagedIdentityAuthenticationSettingPropertiesTests.java @@ -12,19 +12,19 @@ public final class ManagedIdentityAuthenticationSettingPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedIdentityAuthenticationSettingProperties model = BinaryData.fromString( - "{\"authenticationKind\":\"ManagedIdentity\",\"managedIdentityName\":\"mjmvxieduugidyjr\",\"provisioningState\":\"Succeeded\",\"displayName\":\"aos\"}") + "{\"authenticationKind\":\"ManagedIdentity\",\"managedIdentityName\":\"eduugi\",\"provisioningState\":\"Canceled\",\"displayName\":\"rfbyaosvexcso\"}") .toObject(ManagedIdentityAuthenticationSettingProperties.class); - Assertions.assertEquals("aos", model.displayName()); - Assertions.assertEquals("mjmvxieduugidyjr", model.managedIdentityName()); + Assertions.assertEquals("rfbyaosvexcso", model.displayName()); + Assertions.assertEquals("eduugi", model.managedIdentityName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedIdentityAuthenticationSettingProperties model - = new ManagedIdentityAuthenticationSettingProperties().withDisplayName("aos") - .withManagedIdentityName("mjmvxieduugidyjr"); + = new ManagedIdentityAuthenticationSettingProperties().withDisplayName("rfbyaosvexcso") + .withManagedIdentityName("eduugi"); model = BinaryData.fromObject(model).toObject(ManagedIdentityAuthenticationSettingProperties.class); - Assertions.assertEquals("aos", model.displayName()); - Assertions.assertEquals("mjmvxieduugidyjr", model.managedIdentityName()); + Assertions.assertEquals("rfbyaosvexcso", model.displayName()); + Assertions.assertEquals("eduugi", model.managedIdentityName()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/OperationsListMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/OperationsListMockTests.java index 7736ea07bf86..14031f2eada6 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/OperationsListMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"efdeesve\",\"isDataAction\":false,\"display\":{\"provider\":\"xtxsuwprtujw\",\"resource\":\"wddji\",\"operation\":\"bxv\",\"description\":\"itvtzeexavo\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"ethwwnpjhlfz\",\"isDataAction\":false,\"display\":{\"provider\":\"wahfbousnfepgfew\",\"resource\":\"wlyxgncxyk\",\"operation\":\"djhlimm\",\"description\":\"x\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/PrometheusMetricsSignalDefinitionPropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/PrometheusMetricsSignalDefinitionPropertiesTests.java index ec47ffaebda0..06f806708826 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/PrometheusMetricsSignalDefinitionPropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/PrometheusMetricsSignalDefinitionPropertiesTests.java @@ -7,7 +7,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignalDefinitionProperties; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; @@ -20,59 +19,55 @@ public final class PrometheusMetricsSignalDefinitionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrometheusMetricsSignalDefinitionProperties model = BinaryData.fromString( - "{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"qweykhmenev\",\"timeGrain\":\"exfwhy\",\"provisioningState\":\"Succeeded\",\"displayName\":\"vyvdcs\",\"refreshInterval\":\"PT30M\",\"tags\":{\"hfiqscjeypvhe\":\"aamdect\",\"gm\":\"rkgqhcjrefo\"},\"dataUnit\":\"sle\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":50.57474212645342,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":90.09296445411387,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT5M\"}}}") + "{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"ugw\",\"timeGrain\":\"cglhslazjdyggdt\",\"provisioningState\":\"Creating\",\"displayName\":\"b\",\"refreshInterval\":\"PT15M\",\"tags\":{\"hmenevfyexfwhybc\":\"wey\",\"naamde\":\"bvyvdcsity\",\"zrkgqhcjrefovg\":\"tehfiqscjeypvh\"},\"dataUnit\":\"qsl\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":24.898805477838827,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":90.60616172507916,\"sensitivity\":\"Medium\"}}}") .toObject(PrometheusMetricsSignalDefinitionProperties.class); - Assertions.assertEquals("vyvdcs", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT30M, model.refreshInterval()); - Assertions.assertEquals("aamdect", model.tags().get("hfiqscjeypvhe")); - Assertions.assertEquals("sle", model.dataUnit()); + Assertions.assertEquals("b", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT15M, model.refreshInterval()); + Assertions.assertEquals("wey", model.tags().get("hmenevfyexfwhybc")); + Assertions.assertEquals("qsl", model.dataUnit()); Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(50.57474212645342D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(90.09296445411387D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(24.898805477838827D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(90.60616172507916D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("qweykhmenev", model.queryText()); - Assertions.assertEquals("exfwhy", model.timeGrain()); + Assertions.assertEquals("ugw", model.queryText()); + Assertions.assertEquals("cglhslazjdyggdt", model.timeGrain()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrometheusMetricsSignalDefinitionProperties model - = new PrometheusMetricsSignalDefinitionProperties().withDisplayName("vyvdcs") - .withRefreshInterval(RefreshInterval.PT30M) - .withTags(mapOf("hfiqscjeypvhe", "aamdect", "gm", "rkgqhcjrefo")) - .withDataUnit("sle") + = new PrometheusMetricsSignalDefinitionProperties().withDisplayName("b") + .withRefreshInterval(RefreshInterval.PT15M) + .withTags(mapOf("hmenevfyexfwhybc", "wey", "naamde", "bvyvdcsity", "zrkgqhcjrefovg", "tehfiqscjeypvh")) + .withDataUnit("qsl") .withEvaluationRules(new EvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) - .withThreshold(50.57474212645342D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT1H)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(90.09296445411387D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT5M))) - .withQueryText("qweykhmenev") - .withTimeGrain("exfwhy"); + .withThreshold(24.898805477838827D) + .withSensitivity(DynamicThresholdSensitivity.HIGH)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) + .withThreshold(90.60616172507916D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))) + .withQueryText("ugw") + .withTimeGrain("cglhslazjdyggdt"); model = BinaryData.fromObject(model).toObject(PrometheusMetricsSignalDefinitionProperties.class); - Assertions.assertEquals("vyvdcs", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT30M, model.refreshInterval()); - Assertions.assertEquals("aamdect", model.tags().get("hfiqscjeypvhe")); - Assertions.assertEquals("sle", model.dataUnit()); + Assertions.assertEquals("b", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT15M, model.refreshInterval()); + Assertions.assertEquals("wey", model.tags().get("hmenevfyexfwhybc")); + Assertions.assertEquals("qsl", model.dataUnit()); Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(50.57474212645342D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(90.09296445411387D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(24.898805477838827D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(90.60616172507916D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("qweykhmenev", model.queryText()); - Assertions.assertEquals("exfwhy", model.timeGrain()); + Assertions.assertEquals("ugw", model.queryText()); + Assertions.assertEquals("cglhslazjdyggdt", model.timeGrain()); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/PrometheusMetricsSignalTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/PrometheusMetricsSignalTests.java index 25fa6bcfd338..2c12e5300148 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/PrometheusMetricsSignalTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/PrometheusMetricsSignalTests.java @@ -7,7 +7,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; @@ -18,60 +17,54 @@ public final class PrometheusMetricsSignalTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrometheusMetricsSignal model = BinaryData.fromString( - "{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"fzxiavrmb\",\"timeGrain\":\"nokixrjqcirgz\",\"displayName\":\"rlazszrnw\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"dfpwpjylwbtlhfls\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":59.38092895528562,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"Dynamic\",\"threshold\":51.03911200635596,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"rqmq\",\"signalDefinitionName\":\"dvriiiojnal\",\"status\":{\"healthState\":\"Degraded\",\"value\":67.77281713101189,\"reportedAt\":\"2021-09-14T16:01:44Z\",\"error\":\"sowueluqhhahhx\",\"additionalContext\":\"hmzk\"}}") + "{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"q\",\"timeGrain\":\"krribdeibqi\",\"displayName\":\"kghv\",\"refreshInterval\":\"PT30M\",\"dataUnit\":\"wm\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":77.75329452118753,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":30.854982610858293,\"sensitivity\":\"Low\"}},\"name\":\"hgbijt\",\"signalDefinitionName\":\"vfxzsjab\",\"status\":{\"healthState\":\"Degraded\",\"value\":69.51650373857628,\"reportedAt\":\"2021-05-13T21:12:04Z\",\"error\":\"djpvkvpbjxbkz\",\"additionalContext\":\"kd\"}}") .toObject(PrometheusMetricsSignal.class); - Assertions.assertEquals("rqmq", model.name()); - Assertions.assertEquals("dvriiiojnal", model.signalDefinitionName()); - Assertions.assertEquals("fzxiavrmb", model.queryText()); - Assertions.assertEquals("nokixrjqcirgz", model.timeGrain()); - Assertions.assertEquals("rlazszrnw", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT1M, model.refreshInterval()); - Assertions.assertEquals("dfpwpjylwbtlhfls", model.dataUnit()); - Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(59.38092895528562D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(51.03911200635596D, model.evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, - model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, model.evaluationRules().unhealthyRule().lookBackWindow()); + Assertions.assertEquals("hgbijt", model.name()); + Assertions.assertEquals("vfxzsjab", model.signalDefinitionName()); + Assertions.assertEquals("q", model.queryText()); + Assertions.assertEquals("krribdeibqi", model.timeGrain()); + Assertions.assertEquals("kghv", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT30M, model.refreshInterval()); + Assertions.assertEquals("wm", model.dataUnit()); + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(77.75329452118753D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(30.854982610858293D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().unhealthyRule().sensitivity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrometheusMetricsSignal model = new PrometheusMetricsSignal().withName("rqmq") - .withSignalDefinitionName("dvriiiojnal") - .withQueryText("fzxiavrmb") - .withTimeGrain("nokixrjqcirgz") - .withDisplayName("rlazszrnw") - .withRefreshInterval(RefreshInterval.PT1M) - .withDataUnit("dfpwpjylwbtlhfls") + PrometheusMetricsSignal model = new PrometheusMetricsSignal().withName("hgbijt") + .withSignalDefinitionName("vfxzsjab") + .withQueryText("q") + .withTimeGrain("krribdeibqi") + .withDisplayName("kghv") + .withRefreshInterval(RefreshInterval.PT30M) + .withDataUnit("wm") .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) - .withThreshold(59.38092895528562D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT30M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) - .withThreshold(51.03911200635596D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT30M))); + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) + .withThreshold(77.75329452118753D) + .withSensitivity(DynamicThresholdSensitivity.HIGH)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) + .withThreshold(30.854982610858293D) + .withSensitivity(DynamicThresholdSensitivity.LOW))); model = BinaryData.fromObject(model).toObject(PrometheusMetricsSignal.class); - Assertions.assertEquals("rqmq", model.name()); - Assertions.assertEquals("dvriiiojnal", model.signalDefinitionName()); - Assertions.assertEquals("fzxiavrmb", model.queryText()); - Assertions.assertEquals("nokixrjqcirgz", model.timeGrain()); - Assertions.assertEquals("rlazszrnw", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT1M, model.refreshInterval()); - Assertions.assertEquals("dfpwpjylwbtlhfls", model.dataUnit()); - Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(59.38092895528562D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(51.03911200635596D, model.evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, - model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, model.evaluationRules().unhealthyRule().lookBackWindow()); + Assertions.assertEquals("hgbijt", model.name()); + Assertions.assertEquals("vfxzsjab", model.signalDefinitionName()); + Assertions.assertEquals("q", model.queryText()); + Assertions.assertEquals("krribdeibqi", model.timeGrain()); + Assertions.assertEquals("kghv", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT30M, model.refreshInterval()); + Assertions.assertEquals("wm", model.dataUnit()); + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(77.75329452118753D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.EQUAL, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(30.854982610858293D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().unhealthyRule().sensitivity()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipInnerTests.java index a7f37dd5c8a8..aefaa82459d9 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipInnerTests.java @@ -15,26 +15,26 @@ public final class RelationshipInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RelationshipInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"ycavodggxdbees\",\"parentEntityName\":\"ieknl\",\"childEntityName\":\"ariaawi\",\"tags\":{\"iagtc\":\"ydwqfbylyrf\"},\"discoveredBy\":\"ocqwogfnzjvus\"},\"id\":\"ld\",\"name\":\"ozuxylfsbtkadpys\",\"type\":\"wn\"}") + "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"chpxlktwku\",\"parentEntityName\":\"iycslevuf\",\"childEntityName\":\"ztcktyh\",\"tags\":{\"ulwm\":\"edcg\",\"rjvpglydzgkrvqee\":\"rqzz\",\"nwy\":\"toepryu\"},\"discoveredBy\":\"zdmovzv\"},\"id\":\"aawzqadfl\",\"name\":\"z\",\"type\":\"riglaec\"}") .toObject(RelationshipInner.class); - Assertions.assertEquals("ycavodggxdbees", model.properties().displayName()); - Assertions.assertEquals("ieknl", model.properties().parentEntityName()); - Assertions.assertEquals("ariaawi", model.properties().childEntityName()); - Assertions.assertEquals("ydwqfbylyrf", model.properties().tags().get("iagtc")); + Assertions.assertEquals("chpxlktwku", model.properties().displayName()); + Assertions.assertEquals("iycslevuf", model.properties().parentEntityName()); + Assertions.assertEquals("ztcktyh", model.properties().childEntityName()); + Assertions.assertEquals("edcg", model.properties().tags().get("ulwm")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RelationshipInner model - = new RelationshipInner().withProperties(new RelationshipProperties().withDisplayName("ycavodggxdbees") - .withParentEntityName("ieknl") - .withChildEntityName("ariaawi") - .withTags(mapOf("iagtc", "ydwqfbylyrf"))); + = new RelationshipInner().withProperties(new RelationshipProperties().withDisplayName("chpxlktwku") + .withParentEntityName("iycslevuf") + .withChildEntityName("ztcktyh") + .withTags(mapOf("ulwm", "edcg", "rjvpglydzgkrvqee", "rqzz", "nwy", "toepryu"))); model = BinaryData.fromObject(model).toObject(RelationshipInner.class); - Assertions.assertEquals("ycavodggxdbees", model.properties().displayName()); - Assertions.assertEquals("ieknl", model.properties().parentEntityName()); - Assertions.assertEquals("ariaawi", model.properties().childEntityName()); - Assertions.assertEquals("ydwqfbylyrf", model.properties().tags().get("iagtc")); + Assertions.assertEquals("chpxlktwku", model.properties().displayName()); + Assertions.assertEquals("iycslevuf", model.properties().parentEntityName()); + Assertions.assertEquals("ztcktyh", model.properties().childEntityName()); + Assertions.assertEquals("edcg", model.properties().tags().get("ulwm")); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipListResultTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipListResultTests.java index 339a4b8731e6..ef5c44acdf7a 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipListResultTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipListResultTests.java @@ -12,12 +12,12 @@ public final class RelationshipListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RelationshipListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"ekqvgqouwif\",\"parentEntityName\":\"mpjw\",\"childEntityName\":\"ivqikfxcvhr\",\"tags\":{\"kvyklxubyjaffmm\":\"huagrttikteusqc\",\"qcuubgqibrta\":\"bl\",\"lqxihhrmooiz\":\"metttwgd\",\"y\":\"seypxiutcxapz\"},\"discoveredBy\":\"etoge\"},\"id\":\"oxslh\",\"name\":\"nhl\",\"type\":\"brqnkkzjcjb\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"hvv\",\"parentEntityName\":\"brxjjsto\",\"childEntityName\":\"beitpkx\",\"tags\":{\"pimaqxzhemjyh\":\"oobklftidgfcwq\"},\"discoveredBy\":\"uj\"},\"id\":\"t\",\"name\":\"kozzwculkb\",\"type\":\"wpfaj\"},{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"lwtjjguktalh\",\"parentEntityName\":\"nvkcdmxzrpoa\",\"childEntityName\":\"mlnwiaaomylweazu\",\"tags\":{\"wpchwahf\":\"ethwwnpjhlfz\",\"wlyxgncxyk\":\"ousnfepgfewe\"},\"discoveredBy\":\"djhlimm\"},\"id\":\"x\",\"name\":\"h\",\"type\":\"cporxvxcjz\"}],\"nextLink\":\"izxfpxt\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"ysdzhez\",\"parentEntityName\":\"wva\",\"childEntityName\":\"qyuvvfonkp\",\"tags\":{\"y\":\"yik\",\"vluwmncsttij\":\"auy\"},\"discoveredBy\":\"bvpoekrsgsgbdhu\"},\"id\":\"gnjdgkynscliqhz\",\"name\":\"h\",\"type\":\"nk\"}],\"nextLink\":\"tkubotppn\"}") .toObject(RelationshipListResult.class); - Assertions.assertEquals("ekqvgqouwif", model.value().get(0).properties().displayName()); - Assertions.assertEquals("mpjw", model.value().get(0).properties().parentEntityName()); - Assertions.assertEquals("ivqikfxcvhr", model.value().get(0).properties().childEntityName()); - Assertions.assertEquals("huagrttikteusqc", model.value().get(0).properties().tags().get("kvyklxubyjaffmm")); - Assertions.assertEquals("izxfpxt", model.nextLink()); + Assertions.assertEquals("ysdzhez", model.value().get(0).properties().displayName()); + Assertions.assertEquals("wva", model.value().get(0).properties().parentEntityName()); + Assertions.assertEquals("qyuvvfonkp", model.value().get(0).properties().childEntityName()); + Assertions.assertEquals("yik", model.value().get(0).properties().tags().get("y")); + Assertions.assertEquals("tkubotppn", model.nextLink()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipPropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipPropertiesTests.java index 3510e37c541d..7415f8e2b69b 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipPropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipPropertiesTests.java @@ -14,25 +14,25 @@ public final class RelationshipPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RelationshipProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Deleting\",\"displayName\":\"bugrj\",\"parentEntityName\":\"cto\",\"childEntityName\":\"cmisofie\",\"tags\":{\"qdhcu\":\"foj\",\"khihihlhzds\":\"lcplc\",\"mvec\":\"tzbsrgnowcjhf\"},\"discoveredBy\":\"txmwoteyow\"}") + "{\"provisioningState\":\"Canceled\",\"displayName\":\"icokpv\",\"parentEntityName\":\"mlqtmldgxob\",\"childEntityName\":\"irclnpk\",\"tags\":{\"wf\":\"yzriykhy\",\"xqvkjlmxhomdyn\":\"jlb\"},\"discoveredBy\":\"wdigumbnraauz\"}") .toObject(RelationshipProperties.class); - Assertions.assertEquals("bugrj", model.displayName()); - Assertions.assertEquals("cto", model.parentEntityName()); - Assertions.assertEquals("cmisofie", model.childEntityName()); - Assertions.assertEquals("foj", model.tags().get("qdhcu")); + Assertions.assertEquals("icokpv", model.displayName()); + Assertions.assertEquals("mlqtmldgxob", model.parentEntityName()); + Assertions.assertEquals("irclnpk", model.childEntityName()); + Assertions.assertEquals("yzriykhy", model.tags().get("wf")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RelationshipProperties model = new RelationshipProperties().withDisplayName("bugrj") - .withParentEntityName("cto") - .withChildEntityName("cmisofie") - .withTags(mapOf("qdhcu", "foj", "khihihlhzds", "lcplc", "mvec", "tzbsrgnowcjhf")); + RelationshipProperties model = new RelationshipProperties().withDisplayName("icokpv") + .withParentEntityName("mlqtmldgxob") + .withChildEntityName("irclnpk") + .withTags(mapOf("wf", "yzriykhy", "xqvkjlmxhomdyn", "jlb")); model = BinaryData.fromObject(model).toObject(RelationshipProperties.class); - Assertions.assertEquals("bugrj", model.displayName()); - Assertions.assertEquals("cto", model.parentEntityName()); - Assertions.assertEquals("cmisofie", model.childEntityName()); - Assertions.assertEquals("foj", model.tags().get("qdhcu")); + Assertions.assertEquals("icokpv", model.displayName()); + Assertions.assertEquals("mlqtmldgxob", model.parentEntityName()); + Assertions.assertEquals("irclnpk", model.childEntityName()); + Assertions.assertEquals("yzriykhy", model.tags().get("wf")); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsCreateOrUpdateMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsCreateOrUpdateMockTests.java index d9beda7c821f..10efb3e307c7 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsCreateOrUpdateMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsCreateOrUpdateMockTests.java @@ -24,7 +24,7 @@ public final class RelationshipsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"cfdmmcpugmehqe\",\"parentEntityName\":\"vufhbzehewhoq\",\"childEntityName\":\"nlbqnbldxeaclg\",\"tags\":{\"rsrrmoucsofldp\":\"orim\",\"mxuq\":\"viyfcaabeolhbhlv\"},\"discoveredBy\":\"s\"},\"id\":\"kcudfbsfarfsiowl\",\"name\":\"jxnqp\",\"type\":\"wgfstmhqykizm\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"uyzlw\",\"parentEntityName\":\"hmem\",\"childEntityName\":\"ooclutnp\",\"tags\":{\"ykyujxsg\":\"mczjkm\"},\"discoveredBy\":\"srrryejylmbkzu\"},\"id\":\"igrfihotjewl\",\"name\":\"xuzzjgnrefq\",\"type\":\"hqo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,18 +34,18 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Relationship response = manager.relationships() - .define("zqcyknap") - .withExistingHealthmodel("d", "dtfgxqbawpcbb") - .withProperties(new RelationshipProperties().withDisplayName("icdhz") - .withParentEntityName("dyb") - .withChildEntityName("wgbdvibidmhmwffp") - .withTags(mapOf("apckccrrvw", "u", "ukphaimmoiroq", "yoxoy"))) + .define("saoafcluqvox") + .withExistingHealthmodel("tmhqykiz", "d") + .withProperties(new RelationshipProperties().withDisplayName("mr") + .withParentEntityName("vwg") + .withChildEntityName("wwpbmzgwesyd") + .withTags(mapOf("cbvopwndyqleallk", "efoh", "fjmzsyzfho", "mtkhlowkxxpvbr", "pjrtws", "lhikcyychunsj"))) .create(); - Assertions.assertEquals("cfdmmcpugmehqe", response.properties().displayName()); - Assertions.assertEquals("vufhbzehewhoq", response.properties().parentEntityName()); - Assertions.assertEquals("nlbqnbldxeaclg", response.properties().childEntityName()); - Assertions.assertEquals("orim", response.properties().tags().get("rsrrmoucsofldp")); + Assertions.assertEquals("uyzlw", response.properties().displayName()); + Assertions.assertEquals("hmem", response.properties().parentEntityName()); + Assertions.assertEquals("ooclutnp", response.properties().childEntityName()); + Assertions.assertEquals("mczjkm", response.properties().tags().get("ykyujxsg")); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsGetWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsGetWithResponseMockTests.java index 68da8057014e..64d6a16ef33c 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsGetWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class RelationshipsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"jcpeogkhnmg\",\"parentEntityName\":\"ro\",\"childEntityName\":\"xddbhfhpfpaz\",\"tags\":{\"dulontacn\":\"ywjxh\",\"rljyoogwxhnsdu\":\"qwtehtuevr\",\"kfuarenlv\":\"gwbsreurf\",\"nafvvkyfedev\":\"htkln\"},\"discoveredBy\":\"oslc\"},\"id\":\"y\",\"name\":\"okkhminq\",\"type\":\"ymc\"}"; + = "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"xqbawpc\",\"parentEntityName\":\"bnzqcyknapq\",\"childEntityName\":\"fyuicdh\",\"tags\":{\"bdvibidmhmwffpl\":\"ybww\"},\"discoveredBy\":\"u\"},\"id\":\"pckc\",\"name\":\"rrvwey\",\"type\":\"xoy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Relationship response = manager.relationships() - .getWithResponse("khgb", "qtanarfdlpuk", "py", com.azure.core.util.Context.NONE) + .getWithResponse("vfxzopjh", "zxlioh", "d", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("jcpeogkhnmg", response.properties().displayName()); - Assertions.assertEquals("ro", response.properties().parentEntityName()); - Assertions.assertEquals("xddbhfhpfpaz", response.properties().childEntityName()); - Assertions.assertEquals("ywjxh", response.properties().tags().get("dulontacn")); + Assertions.assertEquals("xqbawpc", response.properties().displayName()); + Assertions.assertEquals("bnzqcyknapq", response.properties().parentEntityName()); + Assertions.assertEquals("fyuicdh", response.properties().childEntityName()); + Assertions.assertEquals("ybww", response.properties().tags().get("bdvibidmhmwffpl")); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsListByHealthModelMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsListByHealthModelMockTests.java index 489dabc648ab..d35255a83f35 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsListByHealthModelMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/RelationshipsListByHealthModelMockTests.java @@ -22,7 +22,7 @@ public final class RelationshipsListByHealthModelMockTests { @Test public void testListByHealthModel() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"ct\",\"parentEntityName\":\"xxdtddmflh\",\"childEntityName\":\"ytxzvtznapxbanno\",\"tags\":{\"ytprwnwvroev\":\"xc\",\"rrrouuxvnsa\":\"tlyo\"},\"discoveredBy\":\"crymodizrxklobd\"},\"id\":\"azpmkmlmv\",\"name\":\"vfxzopjh\",\"type\":\"zxlioh\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"pavbo\",\"parentEntityName\":\"fppdbwnu\",\"childEntityName\":\"gahxkumasjcaa\",\"tags\":{\"ehqepvufhbzehe\":\"mmcpug\",\"qnbldxe\":\"hoqhnl\",\"orim\":\"clgsc\",\"viyfcaabeolhbhlv\":\"rsrrmoucsofldp\"},\"discoveredBy\":\"xuqibsxtkcudf\"},\"id\":\"farfs\",\"name\":\"owlkjxnqpv\",\"type\":\"gf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,12 @@ public void testListByHealthModel() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.relationships() - .listByHealthModel("ngnbdxxew", "ninvudbchaqdt", OffsetDateTime.parse("2021-06-19T09:08:45Z"), + .listByHealthModel("ukphaimmoiroq", "oshbragapyy", OffsetDateTime.parse("2021-10-01T15:47:11Z"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("ct", response.iterator().next().properties().displayName()); - Assertions.assertEquals("xxdtddmflh", response.iterator().next().properties().parentEntityName()); - Assertions.assertEquals("ytxzvtznapxbanno", response.iterator().next().properties().childEntityName()); - Assertions.assertEquals("xc", response.iterator().next().properties().tags().get("ytprwnwvroev")); + Assertions.assertEquals("pavbo", response.iterator().next().properties().displayName()); + Assertions.assertEquals("fppdbwnu", response.iterator().next().properties().parentEntityName()); + Assertions.assertEquals("gahxkumasjcaa", response.iterator().next().properties().childEntityName()); + Assertions.assertEquals("mmcpug", response.iterator().next().properties().tags().get("ehqepvufhbzehe")); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ResourceGraphQuerySpecificationTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ResourceGraphQuerySpecificationTests.java index 8e04c0504377..c6b38ffd9d45 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ResourceGraphQuerySpecificationTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ResourceGraphQuerySpecificationTests.java @@ -12,16 +12,16 @@ public final class ResourceGraphQuerySpecificationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceGraphQuerySpecification model - = BinaryData.fromString("{\"kind\":\"ResourceGraphQuery\",\"resourceGraphQuery\":\"ynsqyrpfoobr\"}") + = BinaryData.fromString("{\"kind\":\"ResourceGraphQuery\",\"resourceGraphQuery\":\"lefaxvxilcbtgn\"}") .toObject(ResourceGraphQuerySpecification.class); - Assertions.assertEquals("ynsqyrpfoobr", model.resourceGraphQuery()); + Assertions.assertEquals("lefaxvxilcbtgn", model.resourceGraphQuery()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ResourceGraphQuerySpecification model - = new ResourceGraphQuerySpecification().withResourceGraphQuery("ynsqyrpfoobr"); + = new ResourceGraphQuerySpecification().withResourceGraphQuery("lefaxvxilcbtgn"); model = BinaryData.fromObject(model).toObject(ResourceGraphQuerySpecification.class); - Assertions.assertEquals("ynsqyrpfoobr", model.resourceGraphQuery()); + Assertions.assertEquals("lefaxvxilcbtgn", model.resourceGraphQuery()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ResourceMetricSignalDefinitionPropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ResourceMetricSignalDefinitionPropertiesTests.java index 19f2492b0ee0..1804fe036d82 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ResourceMetricSignalDefinitionPropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ResourceMetricSignalDefinitionPropertiesTests.java @@ -7,7 +7,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.ResourceMetricSignalDefinitionProperties; @@ -21,68 +20,64 @@ public final class ResourceMetricSignalDefinitionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceMetricSignalDefinitionProperties model = BinaryData.fromString( - "{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"acfi\",\"metricName\":\"nlebxetqgtzxd\",\"timeGrain\":\"nqbqqwxr\",\"aggregationType\":\"Average\",\"dimensionFilter\":\"al\",\"provisioningState\":\"Failed\",\"displayName\":\"ubisnjampmng\",\"refreshInterval\":\"PT2H\",\"tags\":{\"ochcbonqvpkvl\":\"aqw\",\"ase\":\"xnj\",\"enjbdlwtgrhp\":\"pheoflokeyy\",\"umasxazjpq\":\"jp\"},\"dataUnit\":\"gual\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":27.095671003388745,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":61.968004063723214,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT15M\"}}}") + "{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"nfnbacfionlebxe\",\"metricName\":\"qgtz\",\"timeGrain\":\"dpnqbq\",\"aggregationType\":\"Maximum\",\"dimensionFilter\":\"rjfeallnwsubisnj\",\"provisioningState\":\"Canceled\",\"displayName\":\"ngnzscxaqwoochc\",\"refreshInterval\":\"PT10M\",\"tags\":{\"ea\":\"pkvlrxn\"},\"dataUnit\":\"ipheoflokeyyien\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Dynamic\",\"threshold\":58.73643875160292,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":83.06355934286418,\"sensitivity\":\"Medium\"}}}") .toObject(ResourceMetricSignalDefinitionProperties.class); - Assertions.assertEquals("ubisnjampmng", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT2H, model.refreshInterval()); - Assertions.assertEquals("aqw", model.tags().get("ochcbonqvpkvl")); - Assertions.assertEquals("gual", model.dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, - model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(27.095671003388745D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(61.968004063723214D, model.evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("acfi", model.metricNamespace()); - Assertions.assertEquals("nlebxetqgtzxd", model.metricName()); - Assertions.assertEquals("nqbqqwxr", model.timeGrain()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, model.aggregationType()); - Assertions.assertEquals("al", model.dimensionFilter()); + Assertions.assertEquals("ngnzscxaqwoochc", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT10M, model.refreshInterval()); + Assertions.assertEquals("pkvlrxn", model.tags().get("ea")); + Assertions.assertEquals("ipheoflokeyyien", model.dataUnit()); + Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(58.73643875160292D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.LESS_THAN, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(83.06355934286418D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + model.evaluationRules().unhealthyRule().sensitivity()); + Assertions.assertEquals("nfnbacfionlebxe", model.metricNamespace()); + Assertions.assertEquals("qgtz", model.metricName()); + Assertions.assertEquals("dpnqbq", model.timeGrain()); + Assertions.assertEquals(MetricAggregationType.MAXIMUM, model.aggregationType()); + Assertions.assertEquals("rjfeallnwsubisnj", model.dimensionFilter()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceMetricSignalDefinitionProperties model = new ResourceMetricSignalDefinitionProperties() - .withDisplayName("ubisnjampmng") - .withRefreshInterval(RefreshInterval.PT2H) - .withTags(mapOf("ochcbonqvpkvl", "aqw", "ase", "xnj", "enjbdlwtgrhp", "pheoflokeyy", "umasxazjpq", "jp")) - .withDataUnit("gual") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) - .withThreshold(27.095671003388745D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT1H)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(61.968004063723214D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT15M))) - .withMetricNamespace("acfi") - .withMetricName("nlebxetqgtzxd") - .withTimeGrain("nqbqqwxr") - .withAggregationType(MetricAggregationType.AVERAGE) - .withDimensionFilter("al"); + ResourceMetricSignalDefinitionProperties model + = new ResourceMetricSignalDefinitionProperties().withDisplayName("ngnzscxaqwoochc") + .withRefreshInterval(RefreshInterval.PT10M) + .withTags(mapOf("ea", "pkvlrxn")) + .withDataUnit("ipheoflokeyyien") + .withEvaluationRules(new EvaluationRule() + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) + .withThreshold(58.73643875160292D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) + .withThreshold(83.06355934286418D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))) + .withMetricNamespace("nfnbacfionlebxe") + .withMetricName("qgtz") + .withTimeGrain("dpnqbq") + .withAggregationType(MetricAggregationType.MAXIMUM) + .withDimensionFilter("rjfeallnwsubisnj"); model = BinaryData.fromObject(model).toObject(ResourceMetricSignalDefinitionProperties.class); - Assertions.assertEquals("ubisnjampmng", model.displayName()); - Assertions.assertEquals(RefreshInterval.PT2H, model.refreshInterval()); - Assertions.assertEquals("aqw", model.tags().get("ochcbonqvpkvl")); - Assertions.assertEquals("gual", model.dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, - model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(27.095671003388745D, model.evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(61.968004063723214D, model.evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("acfi", model.metricNamespace()); - Assertions.assertEquals("nlebxetqgtzxd", model.metricName()); - Assertions.assertEquals("nqbqqwxr", model.timeGrain()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, model.aggregationType()); - Assertions.assertEquals("al", model.dimensionFilter()); + Assertions.assertEquals("ngnzscxaqwoochc", model.displayName()); + Assertions.assertEquals(RefreshInterval.PT10M, model.refreshInterval()); + Assertions.assertEquals("pkvlrxn", model.tags().get("ea")); + Assertions.assertEquals("ipheoflokeyyien", model.dataUnit()); + Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(58.73643875160292D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + model.evaluationRules().degradedRule().sensitivity()); + Assertions.assertEquals(SignalOperator.LESS_THAN, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(83.06355934286418D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + model.evaluationRules().unhealthyRule().sensitivity()); + Assertions.assertEquals("nfnbacfionlebxe", model.metricNamespace()); + Assertions.assertEquals("qgtz", model.metricName()); + Assertions.assertEquals("dpnqbq", model.timeGrain()); + Assertions.assertEquals(MetricAggregationType.MAXIMUM, model.aggregationType()); + Assertions.assertEquals("rjfeallnwsubisnj", model.dimensionFilter()); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalAggregationGroupTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalAggregationGroupTests.java new file mode 100644 index 000000000000..d11f699220c4 --- /dev/null +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalAggregationGroupTests.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cloudhealth.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; +import com.azure.resourcemanager.cloudhealth.models.SignalAggregationGroup; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class SignalAggregationGroupTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SignalAggregationGroup model = BinaryData.fromString( + "{\"name\":\"qknfd\",\"displayName\":\"wjchrdg\",\"aggregationType\":\"MinHealthy\",\"members\":[\"umwctondz\"],\"degradedThreshold\":12.066323297007042,\"unhealthyThreshold\":29.80984280542085,\"unit\":\"Percentage\",\"ignoreUnknown\":true,\"aggregatedHealthState\":\"Unhealthy\",\"unresolvedMembers\":[\"wtovvtgsein\",\"fiufx\",\"knpirgnepttwq\",\"sniffc\"]}") + .toObject(SignalAggregationGroup.class); + Assertions.assertEquals("qknfd", model.name()); + Assertions.assertEquals("wjchrdg", model.displayName()); + Assertions.assertEquals(AggregationType.MIN_HEALTHY, model.aggregationType()); + Assertions.assertEquals("umwctondz", model.members().get(0)); + Assertions.assertEquals(12.066323297007042D, model.degradedThreshold()); + Assertions.assertEquals(29.80984280542085D, model.unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, model.unit()); + Assertions.assertTrue(model.ignoreUnknown()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SignalAggregationGroup model = new SignalAggregationGroup().withName("qknfd") + .withDisplayName("wjchrdg") + .withAggregationType(AggregationType.MIN_HEALTHY) + .withMembers(Arrays.asList("umwctondz")) + .withDegradedThreshold(12.066323297007042D) + .withUnhealthyThreshold(29.80984280542085D) + .withUnit(AggregationUnit.PERCENTAGE) + .withIgnoreUnknown(true); + model = BinaryData.fromObject(model).toObject(SignalAggregationGroup.class); + Assertions.assertEquals("qknfd", model.name()); + Assertions.assertEquals("wjchrdg", model.displayName()); + Assertions.assertEquals(AggregationType.MIN_HEALTHY, model.aggregationType()); + Assertions.assertEquals("umwctondz", model.members().get(0)); + Assertions.assertEquals(12.066323297007042D, model.degradedThreshold()); + Assertions.assertEquals(29.80984280542085D, model.unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.PERCENTAGE, model.unit()); + Assertions.assertTrue(model.ignoreUnknown()); + } +} diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalConfigurationTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalConfigurationTests.java index f34132f0c46d..19aff35dc2ca 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalConfigurationTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalConfigurationTests.java @@ -6,7 +6,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.SignalConfiguration; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; @@ -16,23 +15,23 @@ public final class SignalConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalConfiguration model = BinaryData.fromString( - "{\"signalId\":\"cxgkmoyxcdyui\",\"metricNamespace\":\"mfdn\",\"metricName\":\"ydvfvfcjnae\",\"aggregationType\":\"Maximum\",\"unit\":\"vhmgorffukis\",\"timeGrain\":\"w\",\"dimensionFilter\":\"hwplefaxvx\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":48.790855017350346,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":85.43154326324877,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT15M\"}}}") + "{\"signalId\":\"fcibyfmowuxrkj\",\"metricNamespace\":\"dwxf\",\"metricName\":\"iivwzjbhyzsxjrka\",\"aggregationType\":\"Minimum\",\"unit\":\"negvmnvuqe\",\"timeGrain\":\"lds\",\"dimensionFilter\":\"stjbkkdmfl\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":20.24513643760253,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":85.26994794444605,\"sensitivity\":\"Medium\"}}}") .toObject(SignalConfiguration.class); - Assertions.assertEquals("cxgkmoyxcdyui", model.signalId()); - Assertions.assertEquals("mfdn", model.metricNamespace()); - Assertions.assertEquals("ydvfvfcjnae", model.metricName()); - Assertions.assertEquals(MetricAggregationType.MAXIMUM, model.aggregationType()); - Assertions.assertEquals("vhmgorffukis", model.unit()); - Assertions.assertEquals("w", model.timeGrain()); - Assertions.assertEquals("hwplefaxvx", model.dimensionFilter()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, model.evaluationRules().degradedRule().operator()); - Assertions.assertEquals(48.790855017350346D, model.evaluationRules().degradedRule().threshold()); + Assertions.assertEquals("fcibyfmowuxrkj", model.signalId()); + Assertions.assertEquals("dwxf", model.metricNamespace()); + Assertions.assertEquals("iivwzjbhyzsxjrka", model.metricName()); + Assertions.assertEquals(MetricAggregationType.MINIMUM, model.aggregationType()); + Assertions.assertEquals("negvmnvuqe", model.unit()); + Assertions.assertEquals("lds", model.timeGrain()); + Assertions.assertEquals("stjbkkdmfl", model.dimensionFilter()); + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + model.evaluationRules().degradedRule().operator()); + Assertions.assertEquals(20.24513643760253D, model.evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(85.43154326324877D, model.evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().unhealthyRule().lookBackWindow()); + Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(85.26994794444605D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + model.evaluationRules().unhealthyRule().sensitivity()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionInnerTests.java index 080f0733e97a..07477ce2b95b 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionInnerTests.java @@ -8,7 +8,6 @@ import com.azure.resourcemanager.cloudhealth.fluent.models.SignalDefinitionInner; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalDefinitionProperties; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; @@ -21,7 +20,7 @@ public final class SignalDefinitionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalDefinitionInner model = BinaryData.fromString( - "{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Failed\",\"displayName\":\"khixuigdtopbo\",\"refreshInterval\":\"PT1H\",\"tags\":{\"w\":\"m\"},\"dataUnit\":\"m\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":5.773117540744533,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":44.39629372031098,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"}}},\"id\":\"kftutqxlngxlefg\",\"name\":\"gnxkrxdqmidtth\",\"type\":\"rvqdra\"}") + "{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Failed\",\"displayName\":\"khixuigdtopbo\",\"refreshInterval\":\"PT1H\",\"tags\":{\"w\":\"m\"},\"dataUnit\":\"m\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":5.773117540744533,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":26.083673288770303,\"sensitivity\":\"High\"}}},\"id\":\"giotkftutqxlngx\",\"name\":\"efgugnxk\",\"type\":\"xdqmidtthzrvqdra\"}") .toObject(SignalDefinitionInner.class); Assertions.assertEquals("khixuigdtopbo", model.properties().displayName()); Assertions.assertEquals(RefreshInterval.PT1H, model.properties().refreshInterval()); @@ -32,14 +31,11 @@ public void testDeserialize() throws Exception { Assertions.assertEquals(5.773117540744533D, model.properties().evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.properties().evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, - model.properties().evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.EQUAL, model.properties().evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(44.39629372031098D, model.properties().evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, + model.properties().evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(26.083673288770303D, model.properties().evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.properties().evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.properties().evaluationRules().unhealthyRule().lookBackWindow()); } @org.junit.jupiter.api.Test @@ -52,12 +48,10 @@ public void testSerialize() throws Exception { .withEvaluationRules(new EvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) .withThreshold(5.773117540744533D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT5M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) - .withThreshold(44.39629372031098D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H)))); + .withSensitivity(DynamicThresholdSensitivity.HIGH)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) + .withThreshold(26.083673288770303D) + .withSensitivity(DynamicThresholdSensitivity.HIGH)))); model = BinaryData.fromObject(model).toObject(SignalDefinitionInner.class); Assertions.assertEquals("khixuigdtopbo", model.properties().displayName()); Assertions.assertEquals(RefreshInterval.PT1H, model.properties().refreshInterval()); @@ -68,14 +62,11 @@ public void testSerialize() throws Exception { Assertions.assertEquals(5.773117540744533D, model.properties().evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.properties().evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, - model.properties().evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.EQUAL, model.properties().evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(44.39629372031098D, model.properties().evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, + model.properties().evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(26.083673288770303D, model.properties().evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.properties().evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.properties().evaluationRules().unhealthyRule().lookBackWindow()); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionListResultTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionListResultTests.java index aba809d24d23..3256afc6f2bb 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionListResultTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionListResultTests.java @@ -7,7 +7,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.implementation.models.SignalDefinitionListResult; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import org.junit.jupiter.api.Assertions; @@ -16,28 +15,24 @@ public final class SignalDefinitionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalDefinitionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Creating\",\"displayName\":\"pfhyhl\",\"refreshInterval\":\"PT5M\",\"tags\":{\"odsfcpkvxodpuozm\":\"pjmcmatuokthfuiu\",\"ktwh\":\"zydagfuaxbezyiuo\",\"o\":\"dxwzywqsmbsurexi\",\"fksymddystki\":\"yocf\"},\"dataUnit\":\"xhqyudxorrqnb\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":75.2718552732174,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":74.84185804290516,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"}}},\"id\":\"mvvd\",\"name\":\"watkpnpulexxb\",\"type\":\"zwtruwiqzbqjvsov\"}],\"nextLink\":\"okacspk\"}") + "{\"value\":[{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Succeeded\",\"displayName\":\"unqecanoae\",\"refreshInterval\":\"PT1H\",\"tags\":{\"thfuiuaodsfcpkvx\":\"hltrpmopjmcmatuo\",\"dagfuaxbezyiuok\":\"dpuozmyz\",\"surex\":\"twhrdxwzywqsm\",\"dystkiiuxhqyud\":\"moryocfsfksym\"},\"dataUnit\":\"rrqnbpoczvyifqrv\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":24.351583668041055,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":50.73262308079136,\"sensitivity\":\"Low\"}}},\"id\":\"t\",\"name\":\"pnpulexxbczwtru\",\"type\":\"iqzbq\"}],\"nextLink\":\"sovmyokacspkwl\"}") .toObject(SignalDefinitionListResult.class); - Assertions.assertEquals("pfhyhl", model.value().get(0).properties().displayName()); - Assertions.assertEquals(RefreshInterval.PT5M, model.value().get(0).properties().refreshInterval()); - Assertions.assertEquals("pjmcmatuokthfuiu", model.value().get(0).properties().tags().get("odsfcpkvxodpuozm")); - Assertions.assertEquals("xhqyudxorrqnb", model.value().get(0).properties().dataUnit()); - Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, + Assertions.assertEquals("unqecanoae", model.value().get(0).properties().displayName()); + Assertions.assertEquals(RefreshInterval.PT1H, model.value().get(0).properties().refreshInterval()); + Assertions.assertEquals("hltrpmopjmcmatuo", model.value().get(0).properties().tags().get("thfuiuaodsfcpkvx")); + Assertions.assertEquals("rrqnbpoczvyifqrv", model.value().get(0).properties().dataUnit()); + Assertions.assertEquals(SignalOperator.LESS_THAN, model.value().get(0).properties().evaluationRules().degradedRule().operator()); - Assertions.assertEquals(75.2718552732174D, + Assertions.assertEquals(24.351583668041055D, model.value().get(0).properties().evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.value().get(0).properties().evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - model.value().get(0).properties().evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.LESS_THAN, model.value().get(0).properties().evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(74.84185804290516D, + Assertions.assertEquals(50.73262308079136D, model.value().get(0).properties().evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.value().get(0).properties().evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, - model.value().get(0).properties().evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("okacspk", model.nextLink()); + Assertions.assertEquals("sovmyokacspkwl", model.nextLink()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionPropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionPropertiesTests.java index c15ff24792ab..63153bb870ca 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionPropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionPropertiesTests.java @@ -7,7 +7,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalDefinitionProperties; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; @@ -20,7 +19,7 @@ public final class SignalDefinitionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalDefinitionProperties model = BinaryData.fromString( - "{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Deleting\",\"displayName\":\"big\",\"refreshInterval\":\"PT2H\",\"tags\":{\"nyktzlcuiy\":\"bowsk\",\"nhzgpphrcgyn\":\"gqywgndrv\",\"fsxlzevgbmqjqa\":\"ocpecfvmmco\"},\"dataUnit\":\"y\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":79.70230134472271,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"Dynamic\",\"threshold\":33.45020032856774,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT1H\"}}}") + "{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Deleting\",\"displayName\":\"big\",\"refreshInterval\":\"PT2H\",\"tags\":{\"nyktzlcuiy\":\"bowsk\",\"nhzgpphrcgyn\":\"gqywgndrv\",\"fsxlzevgbmqjqa\":\"ocpecfvmmco\"},\"dataUnit\":\"y\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":79.70230134472271,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":82.55484260490866,\"sensitivity\":\"Low\"}}}") .toObject(SignalDefinitionProperties.class); Assertions.assertEquals("big", model.displayName()); Assertions.assertEquals(RefreshInterval.PT2H, model.refreshInterval()); @@ -29,11 +28,10 @@ public void testDeserialize() throws Exception { Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.evaluationRules().degradedRule().operator()); Assertions.assertEquals(79.70230134472271D, model.evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(33.45020032856774D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(82.55484260490866D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().unhealthyRule().lookBackWindow()); } @org.junit.jupiter.api.Test @@ -45,12 +43,10 @@ public void testSerialize() throws Exception { .withEvaluationRules(new EvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) .withThreshold(79.70230134472271D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT15M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) - .withThreshold(33.45020032856774D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT1H))); + .withSensitivity(DynamicThresholdSensitivity.HIGH)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) + .withThreshold(82.55484260490866D) + .withSensitivity(DynamicThresholdSensitivity.LOW))); model = BinaryData.fromObject(model).toObject(SignalDefinitionProperties.class); Assertions.assertEquals("big", model.displayName()); Assertions.assertEquals(RefreshInterval.PT2H, model.refreshInterval()); @@ -59,11 +55,10 @@ public void testSerialize() throws Exception { Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, model.evaluationRules().degradedRule().operator()); Assertions.assertEquals(79.70230134472271D, model.evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, model.evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.DYNAMIC, model.evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(33.45020032856774D, model.evaluationRules().unhealthyRule().threshold()); + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + model.evaluationRules().unhealthyRule().operator()); + Assertions.assertEquals(82.55484260490866D, model.evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, model.evaluationRules().unhealthyRule().lookBackWindow()); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsCreateOrUpdateMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsCreateOrUpdateMockTests.java index 2ced2a533f7d..6f36ffa5b3b8 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsCreateOrUpdateMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsCreateOrUpdateMockTests.java @@ -12,7 +12,6 @@ import com.azure.resourcemanager.cloudhealth.CloudHealthManager; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalDefinition; import com.azure.resourcemanager.cloudhealth.models.SignalDefinitionProperties; @@ -30,7 +29,7 @@ public final class SignalDefinitionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Succeeded\",\"displayName\":\"fkbg\",\"refreshInterval\":\"PT5M\",\"tags\":{\"jmygvk\":\"xeqoc\",\"fezrx\":\"qkjjeokbz\",\"q\":\"czurtlei\",\"zvd\":\"bkwvzg\"},\"dataUnit\":\"zdix\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":24.78869102736636,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":85.03154881452447,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT5M\"}}},\"id\":\"cgsbost\",\"name\":\"eln\",\"type\":\"la\"}"; + = "{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Succeeded\",\"displayName\":\"sjuivfcdisyir\",\"refreshInterval\":\"PT2H\",\"tags\":{\"hqvwrevkhgnlnzon\":\"zexrxzbujrt\",\"jtszcof\":\"lrpiqywnc\",\"k\":\"zehtdhgb\",\"zmlovuanash\":\"reljeamur\"},\"dataUnit\":\"lpmjerb\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":59.17640311037494,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":65.49431083379979,\"sensitivity\":\"Low\"}}},\"id\":\"cxjmonfdgnwncyp\",\"name\":\"uwwltvuqjctz\",\"type\":\"nkeifz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -40,42 +39,36 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SignalDefinition response = manager.signalDefinitions() - .define("ugcmjkavlgorb") - .withExistingHealthmodel("wy", "undmbx") - .withProperties(new SignalDefinitionProperties().withDisplayName("dtzfjltfvnzcy") + .define("fuzboyjathwtzolb") + .withExistingHealthmodel("stvasylwxdzaumw", "oohgu") + .withProperties(new SignalDefinitionProperties().withDisplayName("dxmeb") .withRefreshInterval(RefreshInterval.PT30M) - .withTags(mapOf("dbzqgqqihed", "vopvp")) - .withDataUnit("qwthmky") + .withTags(mapOf("hlxvea", "p", "xnmwmqtibxyijddt", "f", "ekpndzaapmudq", "qcttadijaeukmrsi")) + .withDataUnit("qwigpibudqwyxe") .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(82.00838158982012D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT15M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(85.99224581908882D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT15M)))) + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) + .withThreshold(65.15205499201743D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) + .withThreshold(45.301698255925125D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM)))) .create(); - Assertions.assertEquals("fkbg", response.properties().displayName()); - Assertions.assertEquals(RefreshInterval.PT5M, response.properties().refreshInterval()); - Assertions.assertEquals("xeqoc", response.properties().tags().get("jmygvk")); - Assertions.assertEquals("zdix", response.properties().dataUnit()); - Assertions.assertEquals(SignalOperator.NOT_EQUAL, + Assertions.assertEquals("sjuivfcdisyir", response.properties().displayName()); + Assertions.assertEquals(RefreshInterval.PT2H, response.properties().refreshInterval()); + Assertions.assertEquals("zexrxzbujrt", response.properties().tags().get("hqvwrevkhgnlnzon")); + Assertions.assertEquals("lpmjerb", response.properties().dataUnit()); + Assertions.assertEquals(SignalOperator.EQUAL, response.properties().evaluationRules().degradedRule().operator()); - Assertions.assertEquals(24.78869102736636D, response.properties().evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(59.17640311037494D, response.properties().evaluationRules().degradedRule().threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, response.properties().evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - response.properties().evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.NOT_EQUAL, + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, response.properties().evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(85.03154881452447D, + Assertions.assertEquals(65.49431083379979D, response.properties().evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, response.properties().evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, - response.properties().evaluationRules().unhealthyRule().lookBackWindow()); } // Use "Map.of" if available diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsGetWithResponseMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsGetWithResponseMockTests.java index 98989c9a55f4..792826f1f2ef 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsGetWithResponseMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsGetWithResponseMockTests.java @@ -11,7 +11,6 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cloudhealth.CloudHealthManager; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalDefinition; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; @@ -25,7 +24,7 @@ public final class SignalDefinitionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Succeeded\",\"displayName\":\"brjtloqxfuoj\",\"refreshInterval\":\"PT1M\",\"tags\":{\"z\":\"l\",\"zdlyjdfqw\":\"asccbiui\"},\"dataUnit\":\"yoqufdvruz\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":0.3638686621154186,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":34.92953425087704,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT30M\"}}},\"id\":\"dgug\",\"name\":\"yzihgrkyuizabsn\",\"type\":\"fpphoj\"}"; + = "{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Creating\",\"displayName\":\"osfjbjsv\",\"refreshInterval\":\"PT2H\",\"tags\":{\"vyc\":\"r\",\"c\":\"t\"},\"dataUnit\":\"gc\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":15.224323939811635,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":72.00121421487124,\"sensitivity\":\"Medium\"}}},\"id\":\"dhttzaefedxihchr\",\"name\":\"hk\",\"type\":\"crjdqnsdfzpbgtg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,28 +34,24 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SignalDefinition response = manager.signalDefinitions() - .getWithResponse("jjrcgegydc", "boxjumvq", "olihrra", com.azure.core.util.Context.NONE) + .getWithResponse("aaeranokqgukk", "qnvb", "oylaxxul", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("brjtloqxfuoj", response.properties().displayName()); - Assertions.assertEquals(RefreshInterval.PT1M, response.properties().refreshInterval()); - Assertions.assertEquals("l", response.properties().tags().get("z")); - Assertions.assertEquals("yoqufdvruz", response.properties().dataUnit()); - Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, + Assertions.assertEquals("osfjbjsv", response.properties().displayName()); + Assertions.assertEquals(RefreshInterval.PT2H, response.properties().refreshInterval()); + Assertions.assertEquals("r", response.properties().tags().get("vyc")); + Assertions.assertEquals("gc", response.properties().dataUnit()); + Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, response.properties().evaluationRules().degradedRule().operator()); - Assertions.assertEquals(0.3638686621154186D, + Assertions.assertEquals(15.224323939811635D, response.properties().evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, response.properties().evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, - response.properties().evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.GREATER_THAN, response.properties().evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(34.92953425087704D, + Assertions.assertEquals(72.00121421487124D, response.properties().evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, response.properties().evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - response.properties().evaluationRules().unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsListByHealthModelMockTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsListByHealthModelMockTests.java index 8a7f88b1a5b2..793578799d3c 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsListByHealthModelMockTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalDefinitionsListByHealthModelMockTests.java @@ -12,7 +12,6 @@ import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cloudhealth.CloudHealthManager; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; import com.azure.resourcemanager.cloudhealth.models.SignalDefinition; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; @@ -26,7 +25,7 @@ public final class SignalDefinitionsListByHealthModelMockTests { @Test public void testListByHealthModel() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Succeeded\",\"displayName\":\"mfg\",\"refreshInterval\":\"PT15M\",\"tags\":{\"etnluankrrfx\":\"gleohi\",\"qzbqqxlajrnwxa\":\"eebtijvacvb\",\"aoqltfaey\":\"evehjkuyxoaf\",\"hriypoqeyhlqhy\":\"inmfgvxirp\"},\"dataUnit\":\"rlpyznuciqdsmexi\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":66.78962221159378,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":74.59098749985445,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT15M\"}}},\"id\":\"ustgnljhnmgixhc\",\"name\":\"avmqfoudor\",\"type\":\"cgyypro\"}]}"; + = "{\"value\":[{\"properties\":{\"signalKind\":\"SignalDefinitionProperties\",\"provisioningState\":\"Deleting\",\"displayName\":\"tqlgehgppi\",\"refreshInterval\":\"PT30M\",\"tags\":{\"oajvgcxtxjcs\":\"f\",\"ssjhoiftxfkf\":\"eafidltugsresm\",\"ucb\":\"egprhptil\",\"riz\":\"qtgdqohmcwsl\"},\"dataUnit\":\"pwbralllibphbqz\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":90.26280500293655,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":23.132541848974377,\"sensitivity\":\"High\"}}},\"id\":\"zhajoylhjlmuo\",\"name\":\"xprimrsop\",\"type\":\"eecjmeis\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,28 +35,24 @@ public void testListByHealthModel() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.signalDefinitions() - .listByHealthModel("evy", "yhsgz", OffsetDateTime.parse("2021-10-15T05:08:39Z"), + .listByHealthModel("ylkdghrje", "utlwxezwzhok", OffsetDateTime.parse("2021-03-27T09:53:41Z"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("mfg", response.iterator().next().properties().displayName()); - Assertions.assertEquals(RefreshInterval.PT15M, response.iterator().next().properties().refreshInterval()); - Assertions.assertEquals("gleohi", response.iterator().next().properties().tags().get("etnluankrrfx")); - Assertions.assertEquals("rlpyznuciqdsmexi", response.iterator().next().properties().dataUnit()); - Assertions.assertEquals(SignalOperator.EQUAL, + Assertions.assertEquals("tqlgehgppi", response.iterator().next().properties().displayName()); + Assertions.assertEquals(RefreshInterval.PT30M, response.iterator().next().properties().refreshInterval()); + Assertions.assertEquals("f", response.iterator().next().properties().tags().get("oajvgcxtxjcs")); + Assertions.assertEquals("pwbralllibphbqz", response.iterator().next().properties().dataUnit()); + Assertions.assertEquals(SignalOperator.LESS_THAN, response.iterator().next().properties().evaluationRules().degradedRule().operator()); - Assertions.assertEquals(66.78962221159378D, + Assertions.assertEquals(90.26280500293655D, response.iterator().next().properties().evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.LOW, + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, response.iterator().next().properties().evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - response.iterator().next().properties().evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.NOT_EQUAL, response.iterator().next().properties().evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(74.59098749985445D, + Assertions.assertEquals(23.132541848974377D, response.iterator().next().properties().evaluationRules().unhealthyRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, response.iterator().next().properties().evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, - response.iterator().next().properties().evaluationRules().unhealthyRule().lookBackWindow()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalGroupsTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalGroupsTests.java index d3d11e4562d4..5ab365cf55b2 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalGroupsTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalGroupsTests.java @@ -5,18 +5,17 @@ package com.azure.resourcemanager.cloudhealth.generated; import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cloudhealth.models.AggregationType; +import com.azure.resourcemanager.cloudhealth.models.AggregationUnit; import com.azure.resourcemanager.cloudhealth.models.AzureMonitorWorkspaceSignals; import com.azure.resourcemanager.cloudhealth.models.AzureResourceHealthSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignal; import com.azure.resourcemanager.cloudhealth.models.AzureResourceSignals; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationType; -import com.azure.resourcemanager.cloudhealth.models.DependenciesAggregationUnit; import com.azure.resourcemanager.cloudhealth.models.DependenciesSignalGroupV2; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; import com.azure.resourcemanager.cloudhealth.models.EvaluationRule; import com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignal; import com.azure.resourcemanager.cloudhealth.models.LogAnalyticsSignals; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.MetricAggregationType; import com.azure.resourcemanager.cloudhealth.models.PrometheusMetricsSignal; import com.azure.resourcemanager.cloudhealth.models.RefreshInterval; @@ -31,359 +30,287 @@ public final class SignalGroupsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalGroups model = BinaryData.fromString( - "{\"azureResource\":{\"authenticationSetting\":\"odfvuefywsbp\",\"azureResourceId\":\"vmwy\",\"azureResourceKind\":\"fouyf\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"cpwi\",\"metricName\":\"vqtmnub\",\"timeGrain\":\"kpzksmondjmq\",\"aggregationType\":\"Average\",\"dimensionFilter\":\"pomgkopkwhojvp\",\"displayName\":\"qgxy\",\"refreshInterval\":\"PT30M\",\"dataUnit\":\"mbqfqvmk\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Dynamic\",\"threshold\":52.55340906945693,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":88.71979734248848,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT5M\"}},\"name\":\"dckcbc\",\"signalDefinitionName\":\"jrjxgciqibrhosx\",\"status\":{\"healthState\":\"Unknown\",\"value\":91.98085822304746,\"reportedAt\":\"2021-06-02T05:04:16Z\",\"error\":\"bmrqyibahwfl\",\"additionalContext\":\"zdtmhrkwofy\"}}],\"resourceHealth\":{\"enabled\":\"Enabled\",\"signalName\":\"cpi\",\"status\":{\"healthState\":\"Unknown\",\"value\":58.00990158794054,\"reportedAt\":\"2021-10-01T22:37:54Z\",\"error\":\"oenwashr\",\"additionalContext\":\"tkcnqxwb\",\"availabilityState\":\"Degraded\",\"category\":\"Planned\",\"detailedStatus\":\"iujwa\",\"summary\":\"ipqiiobyuqerpq\",\"reasonType\":\"Unplanned\",\"reasonChronicity\":\"Transient\",\"availabilityReportedTime\":\"2020-12-29T00:03:32Z\"}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"qgbdbuta\",\"logAnalyticsWorkspaceResourceId\":\"vfbtkuwh\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"k\",\"timeGrain\":\"oxafn\",\"valueColumnName\":\"lpichk\",\"displayName\":\"mkcdyhbpkkpwdre\",\"refreshInterval\":\"PT30M\",\"dataUnit\":\"vq\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":41.38908894075218,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":82.72685862182436,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"}},\"name\":\"tgadgvraeaen\",\"signalDefinitionName\":\"nzar\",\"status\":{\"healthState\":\"Degraded\",\"value\":32.54612515017082,\"reportedAt\":\"2021-08-08T16:39:53Z\",\"error\":\"kacewiipfp\",\"additionalContext\":\"ji\"}},{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"wifto\",\"timeGrain\":\"kvpuvksgplsaknyn\",\"valueColumnName\":\"ynl\",\"displayName\":\"huopxodlqiynto\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"leosjswsrms\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":93.06331225678724,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":65.47576082970572,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT15M\"}},\"name\":\"ysuiizynkedya\",\"signalDefinitionName\":\"wyhqmibzyhwits\",\"status\":{\"healthState\":\"Degraded\",\"value\":67.24576569078803,\"reportedAt\":\"2020-12-28T22:53:56Z\",\"error\":\"umnzgmwznmabik\",\"additionalContext\":\"orgjhxbldt\"}},{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"wrlkdmtn\",\"timeGrain\":\"ok\",\"valueColumnName\":\"llxdyhgs\",\"displayName\":\"cogjltdtbn\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"oocrkvcikhnv\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":4.904957361431183,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":30.094792818115003,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"allatmelwuipic\",\"signalDefinitionName\":\"zkzivgvvcnay\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":44.82083375435136,\"reportedAt\":\"2021-02-22T18:33:34Z\",\"error\":\"edndr\",\"additionalContext\":\"stkwqqtch\"}},{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"lmfmtdaay\",\"timeGrain\":\"v\",\"valueColumnName\":\"gpiohgwxrtfudxe\",\"displayName\":\"gyqagvrvmnpkuk\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"dblx\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Dynamic\",\"threshold\":24.368702464223002,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT5M\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":54.77557937054288,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"}},\"name\":\"qreyfkzi\",\"signalDefinitionName\":\"jawneaiv\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":55.131923767455774,\"reportedAt\":\"2021-02-18T09:10:14Z\",\"error\":\"elsfeaen\",\"additionalContext\":\"bfatklddxbjhwu\"}}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"nozj\",\"azureMonitorWorkspaceResourceId\":\"sphyoulpjrvxa\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"imjwosyt\",\"timeGrain\":\"tcs\",\"displayName\":\"cktqumiekkezzi\",\"refreshInterval\":\"PT30M\",\"dataUnit\":\"fjhdg\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":29.760029253080745,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":14.54675803265787,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT15M\"}},\"name\":\"t\",\"signalDefinitionName\":\"llrxcyjmoad\",\"status\":{\"healthState\":\"Deleted\",\"value\":3.993744655173781,\"reportedAt\":\"2021-04-05T03:20:46Z\",\"error\":\"jsjqbjhhyx\",\"additionalContext\":\"wlycoduhpkxkg\"}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"areqna\",\"timeGrain\":\"qugjhkycube\",\"displayName\":\"gssofwq\",\"refreshInterval\":\"PT5M\",\"dataUnit\":\"lkrm\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":73.01517569307893,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT30M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":71.95211588393494,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"aabjyvayffimrz\",\"signalDefinitionName\":\"uzqogsexnevf\",\"status\":{\"healthState\":\"Deleted\",\"value\":47.95938853921244,\"reportedAt\":\"2021-07-23T17:12:42Z\",\"error\":\"yyceuzsoi\",\"additionalContext\":\"ud\"}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"rx\",\"timeGrain\":\"thzvaytdwkqbrqu\",\"displayName\":\"axhexiilivp\",\"refreshInterval\":\"PT30M\",\"dataUnit\":\"r\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":70.66703872149927,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":74.71945777748819,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT15M\"}},\"name\":\"rxxle\",\"signalDefinitionName\":\"ramxjezwlwnw\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":59.55474680688931,\"reportedAt\":\"2021-06-21T00:43:05Z\",\"error\":\"atdooaojkniod\",\"additionalContext\":\"oebwnujhemms\"}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"dkcrodt\",\"timeGrain\":\"nfwjlfltkacjvefk\",\"displayName\":\"foakgg\",\"refreshInterval\":\"PT30M\",\"dataUnit\":\"gaowpulpqblylsyx\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":42.620142640459434,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":63.37304907318257,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT5M\"}},\"name\":\"e\",\"signalDefinitionName\":\"sbzkf\",\"status\":{\"healthState\":\"Degraded\",\"value\":22.0287530745634,\"reportedAt\":\"2021-04-17T21:22:18Z\",\"error\":\"vinvkj\",\"additionalContext\":\"dxrbuukzcle\"}}]},\"dependencies\":{\"aggregationType\":\"MinHealthy\",\"degradedThreshold\":7.752441029722834,\"unhealthyThreshold\":22.425835202173705,\"unit\":\"Absolute\",\"ignoreUnknown\":true},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":7.816907736285206,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":85.23259175637443,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"feqztppriol\",\"signalDefinitionName\":\"rjaltolmncw\",\"status\":{\"healthState\":\"Healthy\",\"value\":72.86059245308086,\"reportedAt\":\"2021-04-29T03:25:13Z\",\"error\":\"wdcfhucqdpfuv\",\"additionalContext\":\"sbjjc\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":75.03471233682653,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT15M\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":30.73496960387434,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"xqtvcofu\",\"signalDefinitionName\":\"lvkgju\",\"status\":{\"healthState\":\"Deleted\",\"value\":64.27128726120797,\"reportedAt\":\"2021-09-13T15:52:55Z\",\"error\":\"znqntoru\",\"additionalContext\":\"gsahmkycgrauw\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":27.237904606376194,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"NotEqual\",\"threshold\":22.673400516386046,\"sensitivity\":\"Low\",\"lookBackWindow\":\"PT5M\"}},\"name\":\"xwabmqoe\",\"signalDefinitionName\":\"ifrvtpu\",\"status\":{\"healthState\":\"Degraded\",\"value\":32.20768525161395,\"reportedAt\":\"2021-07-19T23:59:36Z\",\"error\":\"tndoaongbjc\",\"additionalContext\":\"ujitcjedftww\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThanOrEqual\",\"threshold\":80.3024188479991,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT1H\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":85.01792079958246,\"sensitivity\":\"High\",\"lookBackWindow\":\"PT30M\"}},\"name\":\"bxarzgszufoxci\",\"signalDefinitionName\":\"p\",\"status\":{\"healthState\":\"Degraded\",\"value\":54.57380974024767,\"reportedAt\":\"2021-07-02T17:31:40Z\",\"error\":\"khazxkhnzbonlwn\",\"additionalContext\":\"egokdwbwhkszzcmr\"}}]}}") + "{\"azureResource\":{\"authenticationSetting\":\"qyib\",\"azureResourceId\":\"hwflu\",\"azureResourceKind\":\"dtmhrkwofyyvoqa\",\"signals\":[{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"xpbtgiwbwo\",\"metricName\":\"washr\",\"timeGrain\":\"tkcnqxwb\",\"aggregationType\":\"Count\",\"dimensionFilter\":\"lpiujwaa\",\"displayName\":\"pqiiobyuqe\",\"refreshInterval\":\"PT30M\",\"dataUnit\":\"pqwcciuqgbdbutau\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":91.60967261959641,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":90.64404371377906,\"sensitivity\":\"Low\"}},\"name\":\"oxafn\",\"signalDefinitionName\":\"lpichk\",\"status\":{\"healthState\":\"Unknown\",\"value\":12.691488034390265,\"reportedAt\":\"2021-07-19T21:34:53Z\",\"error\":\"kkpwdreqnovvq\",\"additionalContext\":\"vljxywsu\"}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"yrs\",\"metricName\":\"sytgadgvraea\",\"timeGrain\":\"e\",\"aggregationType\":\"Average\",\"dimensionFilter\":\"rrwlquuijfqkace\",\"displayName\":\"ipfpubji\",\"refreshInterval\":\"PT10M\",\"dataUnit\":\"f\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"Equal\",\"threshold\":31.865799845261154,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":61.43870502562494,\"sensitivity\":\"Medium\"}},\"name\":\"aknynfsynljphuop\",\"signalDefinitionName\":\"dlqiyntorzih\",\"status\":{\"healthState\":\"Unknown\",\"value\":35.32615759449798,\"reportedAt\":\"2021-08-10T06:17:26Z\",\"error\":\"slyzrpzbchckqq\",\"additionalContext\":\"ioxiysuiizyn\"}},{\"signalKind\":\"AzureResourceMetric\",\"metricNamespace\":\"dy\",\"metricName\":\"rwyhqmibzyhwitsm\",\"timeGrain\":\"yynpcdpumnzgmwz\",\"aggregationType\":\"Count\",\"dimensionFilter\":\"iknsorgjh\",\"displayName\":\"ldtlwwr\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"tncvokot\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":0.2788461253081409,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":76.79782772721086,\"sensitivity\":\"Low\"}},\"name\":\"tdtbnnhadooc\",\"signalDefinitionName\":\"vcikhnvpamqgx\",\"status\":{\"healthState\":\"Deleted\",\"value\":10.328891758814674,\"reportedAt\":\"2021-09-06T06:01:38Z\",\"error\":\"gxk\",\"additionalContext\":\"la\"}}],\"resourceHealth\":{\"enabled\":\"Enabled\",\"signalName\":\"uipiccjzk\",\"status\":{\"healthState\":\"Degraded\",\"value\":9.846358037981496,\"reportedAt\":\"2021-12-04T03:01:43Z\",\"error\":\"rhyrnxxmueed\",\"additionalContext\":\"rdvstkwqqtch\",\"availabilityState\":\"Degraded\",\"category\":\"Unplanned\",\"detailedStatus\":\"tdaaygdvwvg\",\"summary\":\"ohgwxrtfudxepxg\",\"reasonType\":\"UserInitiated\",\"reasonChronicity\":\"Transient\",\"availabilityReportedTime\":\"2021-07-18T03:12:47Z\"}}},\"azureLogAnalytics\":{\"authenticationSetting\":\"npkukghimdblx\",\"logAnalyticsWorkspaceResourceId\":\"wi\",\"signals\":[{\"signalKind\":\"LogAnalyticsQuery\",\"queryText\":\"hfjx\",\"timeGrain\":\"szkkfoqre\",\"valueColumnName\":\"kzikfjawneaivxwc\",\"displayName\":\"lpcirelsf\",\"refreshInterval\":\"PT2H\",\"dataUnit\":\"wabfatkl\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":73.87550977667019,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":10.011443928084663,\"sensitivity\":\"Low\"}},\"name\":\"sphyoulpjrvxa\",\"signalDefinitionName\":\"rvimjwosytxitcsk\",\"status\":{\"healthState\":\"Unknown\",\"value\":56.507532258003636,\"reportedAt\":\"2021-05-17T20:22:22Z\",\"error\":\"ke\",\"additionalContext\":\"ikh\"}}]},\"azureMonitorWorkspace\":{\"authenticationSetting\":\"fjhdg\",\"azureMonitorWorkspaceResourceId\":\"gge\",\"signals\":[{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"ygaeqidbqfatpxl\",\"timeGrain\":\"xcyjmoadsuvarmy\",\"displayName\":\"mjsjqb\",\"refreshInterval\":\"PT1H\",\"dataUnit\":\"x\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":7.550502210377874,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"Equal\",\"threshold\":73.68990023294876,\"sensitivity\":\"High\"}},\"name\":\"ymareqnajxqugj\",\"signalDefinitionName\":\"ycubeddgs\",\"status\":{\"healthState\":\"Unknown\",\"value\":20.480836583040563,\"reportedAt\":\"2021-09-09T11:18:40Z\",\"error\":\"krmnjijpxacqqud\",\"additionalContext\":\"byxbaaabjy\"}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"yffimrzrtuzqogs\",\"timeGrain\":\"nevfdnw\",\"displayName\":\"mewzsyyc\",\"refreshInterval\":\"PT1H\",\"dataUnit\":\"oibjudpfrxtrthz\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":38.945365161426515,\"sensitivity\":\"Medium\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":40.26444390676026,\"sensitivity\":\"Low\"}},\"name\":\"xhexiilivpdti\",\"signalDefinitionName\":\"q\",\"status\":{\"healthState\":\"Unknown\",\"value\":90.8438293550393,\"reportedAt\":\"2021-09-27T01:53:27Z\",\"error\":\"fgsqu\",\"additionalContext\":\"xrxxlep\"}},{\"signalKind\":\"PrometheusMetricsQuery\",\"queryText\":\"amxjezwlw\",\"timeGrain\":\"xuqlcvydypat\",\"displayName\":\"oa\",\"refreshInterval\":\"PT1M\",\"dataUnit\":\"iodkooebwnujhem\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":64.91114055204399,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":30.068006970427717,\"sensitivity\":\"High\"}},\"name\":\"wj\",\"signalDefinitionName\":\"lt\",\"status\":{\"healthState\":\"Unknown\",\"value\":35.53452201235028,\"reportedAt\":\"2021-02-27T20:28:50Z\",\"error\":\"foakgg\",\"additionalContext\":\"pagao\"}}]},\"dependencies\":{\"aggregationType\":\"MaxNotHealthy\",\"degradedThreshold\":91.54192602370743,\"unhealthyThreshold\":22.98072536208905,\"unit\":\"Absolute\",\"ignoreUnknown\":true},\"external\":{\"signals\":[{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"GreaterThan\",\"threshold\":6.160460607015206,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":63.37304907318257,\"sensitivity\":\"High\"}},\"name\":\"zuempsbzkf\",\"signalDefinitionName\":\"eyvpnqicvinvkj\",\"status\":{\"healthState\":\"Degraded\",\"value\":77.65777373681709,\"reportedAt\":\"2021-04-13T12:14:12Z\",\"error\":\"clewyhm\",\"additionalContext\":\"paztzpofncck\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"NotEqual\",\"threshold\":59.49376548072007,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"GreaterThanOrEqual\",\"threshold\":8.546053011078037,\"sensitivity\":\"High\"}},\"name\":\"zfeqztppri\",\"signalDefinitionName\":\"xorjaltolmncwsob\",\"status\":{\"healthState\":\"Unhealthy\",\"value\":43.492592007726785,\"reportedAt\":\"2021-09-05T19:42:48Z\",\"error\":\"fhucqdpfuv\",\"additionalContext\":\"sbjjc\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":75.03471233682653,\"sensitivity\":\"High\"},\"unhealthyRule\":{\"operator\":\"GreaterThan\",\"threshold\":87.29651244553604,\"sensitivity\":\"High\"}},\"name\":\"rmrlxqtvcof\",\"signalDefinitionName\":\"f\",\"status\":{\"healthState\":\"Unknown\",\"value\":6.154505078473694,\"reportedAt\":\"2021-08-28T01:51:20Z\",\"error\":\"nnqvsa\",\"additionalContext\":\"qntorudsgsahmkyc\"}},{\"signalKind\":\"External\",\"evaluationRules\":{\"degradedRule\":{\"operator\":\"LessThan\",\"threshold\":51.88058808372098,\"sensitivity\":\"Low\"},\"unhealthyRule\":{\"operator\":\"LessThan\",\"threshold\":35.874273169380054,\"sensitivity\":\"Medium\"}},\"name\":\"vdmovsmzlxwabm\",\"signalDefinitionName\":\"efkifr\",\"status\":{\"healthState\":\"Unknown\",\"value\":87.31147121431097,\"reportedAt\":\"2021-06-22T16:24:42Z\",\"error\":\"gkfbtndoaong\",\"additionalContext\":\"cn\"}}]}}") .toObject(SignalGroups.class); - Assertions.assertEquals("odfvuefywsbp", model.azureResource().authenticationSetting()); - Assertions.assertEquals("vmwy", model.azureResource().azureResourceId()); - Assertions.assertEquals("fouyf", model.azureResource().azureResourceKind()); - Assertions.assertEquals("dckcbc", model.azureResource().signals().get(0).name()); - Assertions.assertEquals("jrjxgciqibrhosx", model.azureResource().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("cpwi", model.azureResource().signals().get(0).metricNamespace()); - Assertions.assertEquals("vqtmnub", model.azureResource().signals().get(0).metricName()); - Assertions.assertEquals("kpzksmondjmq", model.azureResource().signals().get(0).timeGrain()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.azureResource().signals().get(0).aggregationType()); - Assertions.assertEquals("pomgkopkwhojvp", model.azureResource().signals().get(0).dimensionFilter()); - Assertions.assertEquals("qgxy", model.azureResource().signals().get(0).displayName()); + Assertions.assertEquals("qyib", model.azureResource().authenticationSetting()); + Assertions.assertEquals("hwflu", model.azureResource().azureResourceId()); + Assertions.assertEquals("dtmhrkwofyyvoqa", model.azureResource().azureResourceKind()); + Assertions.assertEquals("oxafn", model.azureResource().signals().get(0).name()); + Assertions.assertEquals("lpichk", model.azureResource().signals().get(0).signalDefinitionName()); + Assertions.assertEquals("xpbtgiwbwo", model.azureResource().signals().get(0).metricNamespace()); + Assertions.assertEquals("washr", model.azureResource().signals().get(0).metricName()); + Assertions.assertEquals("tkcnqxwb", model.azureResource().signals().get(0).timeGrain()); + Assertions.assertEquals(MetricAggregationType.COUNT, model.azureResource().signals().get(0).aggregationType()); + Assertions.assertEquals("lpiujwaa", model.azureResource().signals().get(0).dimensionFilter()); + Assertions.assertEquals("pqiiobyuqe", model.azureResource().signals().get(0).displayName()); Assertions.assertEquals(RefreshInterval.PT30M, model.azureResource().signals().get(0).refreshInterval()); - Assertions.assertEquals("mbqfqvmk", model.azureResource().signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.DYNAMIC, + Assertions.assertEquals("pqwcciuqgbdbutau", model.azureResource().signals().get(0).dataUnit()); + Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.azureResource().signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(52.55340906945693D, + Assertions.assertEquals(91.60967261959641D, model.azureResource().signals().get(0).evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.azureResource().signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - model.azureResource().signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.EQUAL, model.azureResource().signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(88.71979734248848D, + Assertions.assertEquals(90.64404371377906D, model.azureResource().signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.azureResource().signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, - model.azureResource().signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, model.azureResource().resourceHealth().enabled()); - Assertions.assertEquals("qgbdbuta", model.azureLogAnalytics().authenticationSetting()); - Assertions.assertEquals("vfbtkuwh", model.azureLogAnalytics().logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("tgadgvraeaen", model.azureLogAnalytics().signals().get(0).name()); - Assertions.assertEquals("nzar", model.azureLogAnalytics().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("k", model.azureLogAnalytics().signals().get(0).queryText()); - Assertions.assertEquals("oxafn", model.azureLogAnalytics().signals().get(0).timeGrain()); - Assertions.assertEquals("lpichk", model.azureLogAnalytics().signals().get(0).valueColumnName()); - Assertions.assertEquals("mkcdyhbpkkpwdre", model.azureLogAnalytics().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT30M, model.azureLogAnalytics().signals().get(0).refreshInterval()); - Assertions.assertEquals("vq", model.azureLogAnalytics().signals().get(0).dataUnit()); + Assertions.assertEquals("npkukghimdblx", model.azureLogAnalytics().authenticationSetting()); + Assertions.assertEquals("wi", model.azureLogAnalytics().logAnalyticsWorkspaceResourceId()); + Assertions.assertEquals("sphyoulpjrvxa", model.azureLogAnalytics().signals().get(0).name()); + Assertions.assertEquals("rvimjwosytxitcsk", model.azureLogAnalytics().signals().get(0).signalDefinitionName()); + Assertions.assertEquals("hfjx", model.azureLogAnalytics().signals().get(0).queryText()); + Assertions.assertEquals("szkkfoqre", model.azureLogAnalytics().signals().get(0).timeGrain()); + Assertions.assertEquals("kzikfjawneaivxwc", model.azureLogAnalytics().signals().get(0).valueColumnName()); + Assertions.assertEquals("lpcirelsf", model.azureLogAnalytics().signals().get(0).displayName()); + Assertions.assertEquals(RefreshInterval.PT2H, model.azureLogAnalytics().signals().get(0).refreshInterval()); + Assertions.assertEquals("wabfatkl", model.azureLogAnalytics().signals().get(0).dataUnit()); Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.azureLogAnalytics().signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(41.38908894075218D, + Assertions.assertEquals(73.87550977667019D, model.azureLogAnalytics().signals().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.azureLogAnalytics().signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, - model.azureLogAnalytics().signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, + Assertions.assertEquals(SignalOperator.EQUAL, model.azureLogAnalytics().signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(82.72685862182436D, + Assertions.assertEquals(10.011443928084663D, model.azureLogAnalytics().signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.azureLogAnalytics().signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.azureLogAnalytics().signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("nozj", model.azureMonitorWorkspace().authenticationSetting()); - Assertions.assertEquals("sphyoulpjrvxa", model.azureMonitorWorkspace().azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("t", model.azureMonitorWorkspace().signals().get(0).name()); - Assertions.assertEquals("llrxcyjmoad", model.azureMonitorWorkspace().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("imjwosyt", model.azureMonitorWorkspace().signals().get(0).queryText()); - Assertions.assertEquals("tcs", model.azureMonitorWorkspace().signals().get(0).timeGrain()); - Assertions.assertEquals("cktqumiekkezzi", model.azureMonitorWorkspace().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT30M, - model.azureMonitorWorkspace().signals().get(0).refreshInterval()); - Assertions.assertEquals("fjhdg", model.azureMonitorWorkspace().signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, + Assertions.assertEquals("fjhdg", model.azureMonitorWorkspace().authenticationSetting()); + Assertions.assertEquals("gge", model.azureMonitorWorkspace().azureMonitorWorkspaceResourceId()); + Assertions.assertEquals("ymareqnajxqugj", model.azureMonitorWorkspace().signals().get(0).name()); + Assertions.assertEquals("ycubeddgs", model.azureMonitorWorkspace().signals().get(0).signalDefinitionName()); + Assertions.assertEquals("ygaeqidbqfatpxl", model.azureMonitorWorkspace().signals().get(0).queryText()); + Assertions.assertEquals("xcyjmoadsuvarmy", model.azureMonitorWorkspace().signals().get(0).timeGrain()); + Assertions.assertEquals("mjsjqb", model.azureMonitorWorkspace().signals().get(0).displayName()); + Assertions.assertEquals(RefreshInterval.PT1H, model.azureMonitorWorkspace().signals().get(0).refreshInterval()); + Assertions.assertEquals("x", model.azureMonitorWorkspace().signals().get(0).dataUnit()); + Assertions.assertEquals(SignalOperator.LESS_THAN, model.azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(29.760029253080745D, + Assertions.assertEquals(7.550502210377874D, model.azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.EQUAL, model.azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(14.54675803265787D, + Assertions.assertEquals(73.68990023294876D, model.azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, - model.azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals(DependenciesAggregationType.MIN_HEALTHY, model.dependencies().aggregationType()); - Assertions.assertEquals(7.752441029722834D, model.dependencies().degradedThreshold()); - Assertions.assertEquals(22.425835202173705D, model.dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.ABSOLUTE, model.dependencies().unit()); + Assertions.assertEquals(AggregationType.MAX_NOT_HEALTHY, model.dependencies().aggregationType()); + Assertions.assertEquals(91.54192602370743D, model.dependencies().degradedThreshold()); + Assertions.assertEquals(22.98072536208905D, model.dependencies().unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, model.dependencies().unit()); Assertions.assertTrue(model.dependencies().ignoreUnknown()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SignalGroups model = new SignalGroups() - .withAzureResource(new AzureResourceSignals().withAuthenticationSetting("odfvuefywsbp") - .withAzureResourceId("vmwy") - .withAzureResourceKind("fouyf") - .withSignals(Arrays.asList(new AzureResourceSignal().withName("dckcbc") - .withSignalDefinitionName("jrjxgciqibrhosx") - .withMetricNamespace("cpwi") - .withMetricName("vqtmnub") - .withTimeGrain("kpzksmondjmq") - .withAggregationType(MetricAggregationType.AVERAGE) - .withDimensionFilter("pomgkopkwhojvp") - .withDisplayName("qgxy") - .withRefreshInterval(RefreshInterval.PT30M) - .withDataUnit("mbqfqvmk") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) - .withThreshold(52.55340906945693D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT30M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) - .withThreshold(88.71979734248848D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT5M))))) - .withResourceHealth( - new AzureResourceHealthSignal().withEnabled(ResourceHealthAvailabilityStateSignalBehavior.ENABLED))) - .withAzureLogAnalytics(new LogAnalyticsSignals().withAuthenticationSetting("qgbdbuta") - .withLogAnalyticsWorkspaceResourceId("vfbtkuwh") + .withAzureResource(new AzureResourceSignals().withAuthenticationSetting("qyib") + .withAzureResourceId("hwflu") + .withAzureResourceKind("dtmhrkwofyyvoqa") .withSignals(Arrays.asList( - new LogAnalyticsSignal().withName("tgadgvraeaen") - .withSignalDefinitionName("nzar") - .withQueryText("k") - .withTimeGrain("oxafn") - .withValueColumnName("lpichk") - .withDisplayName("mkcdyhbpkkpwdre") + new AzureResourceSignal().withName("oxafn") + .withSignalDefinitionName("lpichk") + .withMetricNamespace("xpbtgiwbwo") + .withMetricName("washr") + .withTimeGrain("tkcnqxwb") + .withAggregationType(MetricAggregationType.COUNT) + .withDimensionFilter("lpiujwaa") + .withDisplayName("pqiiobyuqe") .withRefreshInterval(RefreshInterval.PT30M) - .withDataUnit("vq") + .withDataUnit("pqwcciuqgbdbutau") .withEvaluationRules(new EvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) - .withThreshold(41.38908894075218D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT5M)) + .withThreshold(91.60967261959641D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) + .withThreshold(90.64404371377906D) + .withSensitivity(DynamicThresholdSensitivity.LOW))), + new AzureResourceSignal().withName("aknynfsynljphuop") + .withSignalDefinitionName("dlqiyntorzih") + .withMetricNamespace("yrs") + .withMetricName("sytgadgvraea") + .withTimeGrain("e") + .withAggregationType(MetricAggregationType.AVERAGE) + .withDimensionFilter("rrwlquuijfqkace") + .withDisplayName("ipfpubji") + .withRefreshInterval(RefreshInterval.PT10M) + .withDataUnit("f") + .withEvaluationRules(new EvaluationRule() + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) + .withThreshold(31.865799845261154D) + .withSensitivity(DynamicThresholdSensitivity.HIGH)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(82.72685862182436D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H))), - new LogAnalyticsSignal().withName("ysuiizynkedya") - .withSignalDefinitionName("wyhqmibzyhwits") - .withQueryText("wifto") - .withTimeGrain("kvpuvksgplsaknyn") - .withValueColumnName("ynl") - .withDisplayName("huopxodlqiynto") + .withThreshold(61.43870502562494D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM))), + new AzureResourceSignal().withName("tdtbnnhadooc") + .withSignalDefinitionName("vcikhnvpamqgx") + .withMetricNamespace("dy") + .withMetricName("rwyhqmibzyhwitsm") + .withTimeGrain("yynpcdpumnzgmwz") + .withAggregationType(MetricAggregationType.COUNT) + .withDimensionFilter("iknsorgjh") + .withDisplayName("ldtlwwr") .withRefreshInterval(RefreshInterval.PT2H) - .withDataUnit("leosjswsrms") + .withDataUnit("tncvokot") .withEvaluationRules(new EvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(93.06331225678724D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT30M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) - .withThreshold(65.47576082970572D) - .withSensitivity(DynamicThresholdSensitivity.LOW) - .withLookBackWindow(LookBackWindow.PT15M))), - new LogAnalyticsSignal().withName("allatmelwuipic") - .withSignalDefinitionName("zkzivgvvcnay") - .withQueryText("wrlkdmtn") - .withTimeGrain("ok") - .withValueColumnName("llxdyhgs") - .withDisplayName("cogjltdtbn") - .withRefreshInterval(RefreshInterval.PT10M) - .withDataUnit("oocrkvcikhnv") + .withThreshold(0.2788461253081409D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) + .withThreshold(76.79782772721086D) + .withSensitivity(DynamicThresholdSensitivity.LOW))))) + .withResourceHealth( + new AzureResourceHealthSignal().withEnabled(ResourceHealthAvailabilityStateSignalBehavior.ENABLED))) + .withAzureLogAnalytics(new LogAnalyticsSignals().withAuthenticationSetting("npkukghimdblx") + .withLogAnalyticsWorkspaceResourceId("wi") + .withSignals(Arrays.asList(new LogAnalyticsSignal().withName("sphyoulpjrvxa") + .withSignalDefinitionName("rvimjwosytxitcsk") + .withQueryText("hfjx") + .withTimeGrain("szkkfoqre") + .withValueColumnName("kzikfjawneaivxwc") + .withDisplayName("lpcirelsf") + .withRefreshInterval(RefreshInterval.PT2H) + .withDataUnit("wabfatkl") + .withEvaluationRules(new EvaluationRule() + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.NOT_EQUAL) + .withThreshold(73.87550977667019D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) + .withThreshold(10.011443928084663D) + .withSensitivity(DynamicThresholdSensitivity.LOW)))))) + .withAzureMonitorWorkspace(new AzureMonitorWorkspaceSignals().withAuthenticationSetting("fjhdg") + .withAzureMonitorWorkspaceResourceId("gge") + .withSignals(Arrays.asList( + new PrometheusMetricsSignal().withName("ymareqnajxqugj") + .withSignalDefinitionName("ycubeddgs") + .withQueryText("ygaeqidbqfatpxl") + .withTimeGrain("xcyjmoadsuvarmy") + .withDisplayName("mjsjqb") + .withRefreshInterval(RefreshInterval.PT1H) + .withDataUnit("x") .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) - .withThreshold(4.904957361431183D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT15M)) + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) + .withThreshold(7.550502210377874D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.EQUAL) - .withThreshold(30.094792818115003D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT30M))), - new LogAnalyticsSignal().withName("qreyfkzi") - .withSignalDefinitionName("jawneaiv") - .withQueryText("lmfmtdaay") - .withTimeGrain("v") - .withValueColumnName("gpiohgwxrtfudxe") - .withDisplayName("gyqagvrvmnpkuk") - .withRefreshInterval(RefreshInterval.PT10M) - .withDataUnit("dblx") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) - .withThreshold(24.368702464223002D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT5M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) - .withThreshold(54.77557937054288D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H)))))) - .withAzureMonitorWorkspace(new AzureMonitorWorkspaceSignals().withAuthenticationSetting("nozj") - .withAzureMonitorWorkspaceResourceId("sphyoulpjrvxa") - .withSignals(Arrays.asList( - new PrometheusMetricsSignal().withName("t") - .withSignalDefinitionName("llrxcyjmoad") - .withQueryText("imjwosyt") - .withTimeGrain("tcs") - .withDisplayName("cktqumiekkezzi") - .withRefreshInterval(RefreshInterval.PT30M) - .withDataUnit("fjhdg") + .withThreshold(73.68990023294876D) + .withSensitivity(DynamicThresholdSensitivity.HIGH))), + new PrometheusMetricsSignal().withName("xhexiilivpdti") + .withSignalDefinitionName("q") + .withQueryText("yffimrzrtuzqogs") + .withTimeGrain("nevfdnw") + .withDisplayName("mewzsyyc") + .withRefreshInterval(RefreshInterval.PT1H) + .withDataUnit("oibjudpfrxtrthz") .withEvaluationRules(new EvaluationRule() .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) - .withThreshold(29.760029253080745D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT1H)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN_OR_EQUAL) - .withThreshold(14.54675803265787D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT15M))), - new PrometheusMetricsSignal().withName("aabjyvayffimrz") - .withSignalDefinitionName("uzqogsexnevf") - .withQueryText("areqna") - .withTimeGrain("qugjhkycube") - .withDisplayName("gssofwq") - .withRefreshInterval(RefreshInterval.PT5M) - .withDataUnit("lkrm") + .withThreshold(38.945365161426515D) + .withSensitivity(DynamicThresholdSensitivity.MEDIUM)) + .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) + .withThreshold(40.26444390676026D) + .withSensitivity(DynamicThresholdSensitivity.LOW))), + new PrometheusMetricsSignal().withName("wj") + .withSignalDefinitionName("lt") + .withQueryText("amxjezwlw") + .withTimeGrain("xuqlcvydypat") + .withDisplayName("oa") + .withRefreshInterval(RefreshInterval.PT1M) + .withDataUnit("iodkooebwnujhem") .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(73.01517569307893D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT30M)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) - .withThreshold(71.95211588393494D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT30M))), - new PrometheusMetricsSignal().withName("rxxle") - .withSignalDefinitionName("ramxjezwlwnw") - .withQueryText("rx") - .withTimeGrain("thzvaytdwkqbrqu") - .withDisplayName("axhexiilivp") - .withRefreshInterval(RefreshInterval.PT30M) - .withDataUnit("r") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) - .withThreshold(70.66703872149927D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT5M)) + .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN) + .withThreshold(64.91114055204399D) + .withSensitivity(DynamicThresholdSensitivity.LOW)) .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.GREATER_THAN_OR_EQUAL) - .withThreshold(74.71945777748819D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT15M))), - new PrometheusMetricsSignal().withName("e") - .withSignalDefinitionName("sbzkf") - .withQueryText("dkcrodt") - .withTimeGrain("nfwjlfltkacjvefk") - .withDisplayName("foakgg") - .withRefreshInterval(RefreshInterval.PT30M) - .withDataUnit("gaowpulpqblylsyx") - .withEvaluationRules(new EvaluationRule() - .withDegradedRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(42.620142640459434D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT1H)) - .withUnhealthyRule(new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(63.37304907318257D) - .withSensitivity(DynamicThresholdSensitivity.HIGH) - .withLookBackWindow(LookBackWindow.PT5M)))))) - .withDependencies( - new DependenciesSignalGroupV2().withAggregationType(DependenciesAggregationType.MIN_HEALTHY) - .withDegradedThreshold(7.752441029722834D) - .withUnhealthyThreshold(22.425835202173705D) - .withUnit(DependenciesAggregationUnit.ABSOLUTE) - .withIgnoreUnknown(true)); + .withThreshold(30.068006970427717D) + .withSensitivity(DynamicThresholdSensitivity.HIGH)))))) + .withDependencies(new DependenciesSignalGroupV2().withAggregationType(AggregationType.MAX_NOT_HEALTHY) + .withDegradedThreshold(91.54192602370743D) + .withUnhealthyThreshold(22.98072536208905D) + .withUnit(AggregationUnit.ABSOLUTE) + .withIgnoreUnknown(true)); model = BinaryData.fromObject(model).toObject(SignalGroups.class); - Assertions.assertEquals("odfvuefywsbp", model.azureResource().authenticationSetting()); - Assertions.assertEquals("vmwy", model.azureResource().azureResourceId()); - Assertions.assertEquals("fouyf", model.azureResource().azureResourceKind()); - Assertions.assertEquals("dckcbc", model.azureResource().signals().get(0).name()); - Assertions.assertEquals("jrjxgciqibrhosx", model.azureResource().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("cpwi", model.azureResource().signals().get(0).metricNamespace()); - Assertions.assertEquals("vqtmnub", model.azureResource().signals().get(0).metricName()); - Assertions.assertEquals("kpzksmondjmq", model.azureResource().signals().get(0).timeGrain()); - Assertions.assertEquals(MetricAggregationType.AVERAGE, - model.azureResource().signals().get(0).aggregationType()); - Assertions.assertEquals("pomgkopkwhojvp", model.azureResource().signals().get(0).dimensionFilter()); - Assertions.assertEquals("qgxy", model.azureResource().signals().get(0).displayName()); + Assertions.assertEquals("qyib", model.azureResource().authenticationSetting()); + Assertions.assertEquals("hwflu", model.azureResource().azureResourceId()); + Assertions.assertEquals("dtmhrkwofyyvoqa", model.azureResource().azureResourceKind()); + Assertions.assertEquals("oxafn", model.azureResource().signals().get(0).name()); + Assertions.assertEquals("lpichk", model.azureResource().signals().get(0).signalDefinitionName()); + Assertions.assertEquals("xpbtgiwbwo", model.azureResource().signals().get(0).metricNamespace()); + Assertions.assertEquals("washr", model.azureResource().signals().get(0).metricName()); + Assertions.assertEquals("tkcnqxwb", model.azureResource().signals().get(0).timeGrain()); + Assertions.assertEquals(MetricAggregationType.COUNT, model.azureResource().signals().get(0).aggregationType()); + Assertions.assertEquals("lpiujwaa", model.azureResource().signals().get(0).dimensionFilter()); + Assertions.assertEquals("pqiiobyuqe", model.azureResource().signals().get(0).displayName()); Assertions.assertEquals(RefreshInterval.PT30M, model.azureResource().signals().get(0).refreshInterval()); - Assertions.assertEquals("mbqfqvmk", model.azureResource().signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.DYNAMIC, + Assertions.assertEquals("pqwcciuqgbdbutau", model.azureResource().signals().get(0).dataUnit()); + Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.azureResource().signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(52.55340906945693D, + Assertions.assertEquals(91.60967261959641D, model.azureResource().signals().get(0).evaluationRules().degradedRule().threshold()); Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.azureResource().signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT30M, - model.azureResource().signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.GREATER_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.EQUAL, model.azureResource().signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(88.71979734248848D, + Assertions.assertEquals(90.64404371377906D, model.azureResource().signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.azureResource().signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, - model.azureResource().signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); Assertions.assertEquals(ResourceHealthAvailabilityStateSignalBehavior.ENABLED, model.azureResource().resourceHealth().enabled()); - Assertions.assertEquals("qgbdbuta", model.azureLogAnalytics().authenticationSetting()); - Assertions.assertEquals("vfbtkuwh", model.azureLogAnalytics().logAnalyticsWorkspaceResourceId()); - Assertions.assertEquals("tgadgvraeaen", model.azureLogAnalytics().signals().get(0).name()); - Assertions.assertEquals("nzar", model.azureLogAnalytics().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("k", model.azureLogAnalytics().signals().get(0).queryText()); - Assertions.assertEquals("oxafn", model.azureLogAnalytics().signals().get(0).timeGrain()); - Assertions.assertEquals("lpichk", model.azureLogAnalytics().signals().get(0).valueColumnName()); - Assertions.assertEquals("mkcdyhbpkkpwdre", model.azureLogAnalytics().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT30M, model.azureLogAnalytics().signals().get(0).refreshInterval()); - Assertions.assertEquals("vq", model.azureLogAnalytics().signals().get(0).dataUnit()); + Assertions.assertEquals("npkukghimdblx", model.azureLogAnalytics().authenticationSetting()); + Assertions.assertEquals("wi", model.azureLogAnalytics().logAnalyticsWorkspaceResourceId()); + Assertions.assertEquals("sphyoulpjrvxa", model.azureLogAnalytics().signals().get(0).name()); + Assertions.assertEquals("rvimjwosytxitcsk", model.azureLogAnalytics().signals().get(0).signalDefinitionName()); + Assertions.assertEquals("hfjx", model.azureLogAnalytics().signals().get(0).queryText()); + Assertions.assertEquals("szkkfoqre", model.azureLogAnalytics().signals().get(0).timeGrain()); + Assertions.assertEquals("kzikfjawneaivxwc", model.azureLogAnalytics().signals().get(0).valueColumnName()); + Assertions.assertEquals("lpcirelsf", model.azureLogAnalytics().signals().get(0).displayName()); + Assertions.assertEquals(RefreshInterval.PT2H, model.azureLogAnalytics().signals().get(0).refreshInterval()); + Assertions.assertEquals("wabfatkl", model.azureLogAnalytics().signals().get(0).dataUnit()); Assertions.assertEquals(SignalOperator.NOT_EQUAL, model.azureLogAnalytics().signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(41.38908894075218D, + Assertions.assertEquals(73.87550977667019D, model.azureLogAnalytics().signals().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, + Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.azureLogAnalytics().signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, - model.azureLogAnalytics().signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN, + Assertions.assertEquals(SignalOperator.EQUAL, model.azureLogAnalytics().signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(82.72685862182436D, + Assertions.assertEquals(10.011443928084663D, model.azureLogAnalytics().signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.azureLogAnalytics().signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.azureLogAnalytics().signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals("nozj", model.azureMonitorWorkspace().authenticationSetting()); - Assertions.assertEquals("sphyoulpjrvxa", model.azureMonitorWorkspace().azureMonitorWorkspaceResourceId()); - Assertions.assertEquals("t", model.azureMonitorWorkspace().signals().get(0).name()); - Assertions.assertEquals("llrxcyjmoad", model.azureMonitorWorkspace().signals().get(0).signalDefinitionName()); - Assertions.assertEquals("imjwosyt", model.azureMonitorWorkspace().signals().get(0).queryText()); - Assertions.assertEquals("tcs", model.azureMonitorWorkspace().signals().get(0).timeGrain()); - Assertions.assertEquals("cktqumiekkezzi", model.azureMonitorWorkspace().signals().get(0).displayName()); - Assertions.assertEquals(RefreshInterval.PT30M, - model.azureMonitorWorkspace().signals().get(0).refreshInterval()); - Assertions.assertEquals("fjhdg", model.azureMonitorWorkspace().signals().get(0).dataUnit()); - Assertions.assertEquals(SignalOperator.GREATER_THAN, + Assertions.assertEquals("fjhdg", model.azureMonitorWorkspace().authenticationSetting()); + Assertions.assertEquals("gge", model.azureMonitorWorkspace().azureMonitorWorkspaceResourceId()); + Assertions.assertEquals("ymareqnajxqugj", model.azureMonitorWorkspace().signals().get(0).name()); + Assertions.assertEquals("ycubeddgs", model.azureMonitorWorkspace().signals().get(0).signalDefinitionName()); + Assertions.assertEquals("ygaeqidbqfatpxl", model.azureMonitorWorkspace().signals().get(0).queryText()); + Assertions.assertEquals("xcyjmoadsuvarmy", model.azureMonitorWorkspace().signals().get(0).timeGrain()); + Assertions.assertEquals("mjsjqb", model.azureMonitorWorkspace().signals().get(0).displayName()); + Assertions.assertEquals(RefreshInterval.PT1H, model.azureMonitorWorkspace().signals().get(0).refreshInterval()); + Assertions.assertEquals("x", model.azureMonitorWorkspace().signals().get(0).dataUnit()); + Assertions.assertEquals(SignalOperator.LESS_THAN, model.azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().operator()); - Assertions.assertEquals(29.760029253080745D, + Assertions.assertEquals(7.550502210377874D, model.azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT1H, - model.azureMonitorWorkspace().signals().get(0).evaluationRules().degradedRule().lookBackWindow()); - Assertions.assertEquals(SignalOperator.LESS_THAN_OR_EQUAL, + Assertions.assertEquals(SignalOperator.EQUAL, model.azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().operator()); - Assertions.assertEquals(14.54675803265787D, + Assertions.assertEquals(73.68990023294876D, model.azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, + Assertions.assertEquals(DynamicThresholdSensitivity.HIGH, model.azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().sensitivity()); - Assertions.assertEquals(LookBackWindow.PT15M, - model.azureMonitorWorkspace().signals().get(0).evaluationRules().unhealthyRule().lookBackWindow()); - Assertions.assertEquals(DependenciesAggregationType.MIN_HEALTHY, model.dependencies().aggregationType()); - Assertions.assertEquals(7.752441029722834D, model.dependencies().degradedThreshold()); - Assertions.assertEquals(22.425835202173705D, model.dependencies().unhealthyThreshold()); - Assertions.assertEquals(DependenciesAggregationUnit.ABSOLUTE, model.dependencies().unit()); + Assertions.assertEquals(AggregationType.MAX_NOT_HEALTHY, model.dependencies().aggregationType()); + Assertions.assertEquals(91.54192602370743D, model.dependencies().degradedThreshold()); + Assertions.assertEquals(22.98072536208905D, model.dependencies().unhealthyThreshold()); + Assertions.assertEquals(AggregationUnit.ABSOLUTE, model.dependencies().unit()); Assertions.assertTrue(model.dependencies().ignoreUnknown()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryDataPointTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryDataPointTests.java index 76c3aa46e4e7..b897ebc65283 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryDataPointTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryDataPointTests.java @@ -14,11 +14,11 @@ public final class SignalHistoryDataPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalHistoryDataPoint model = BinaryData.fromString( - "{\"occurredAt\":\"2021-09-06T17:32:09Z\",\"value\":72.15618616736381,\"healthState\":\"Degraded\",\"additionalContext\":\"mvmemfnczd\"}") + "{\"occurredAt\":\"2021-09-08T01:13:47Z\",\"value\":22.37929870571135,\"healthState\":\"Unhealthy\",\"additionalContext\":\"qem\"}") .toObject(SignalHistoryDataPoint.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-06T17:32:09Z"), model.occurredAt()); - Assertions.assertEquals(72.15618616736381D, model.value()); - Assertions.assertEquals(HealthState.DEGRADED, model.healthState()); - Assertions.assertEquals("mvmemfnczd", model.additionalContext()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-08T01:13:47Z"), model.occurredAt()); + Assertions.assertEquals(22.37929870571135D, model.value()); + Assertions.assertEquals(HealthState.UNHEALTHY, model.healthState()); + Assertions.assertEquals("qem", model.additionalContext()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryRequestTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryRequestTests.java index fb97449ca4ca..48d973f4546e 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryRequestTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryRequestTests.java @@ -13,27 +13,27 @@ public final class SignalHistoryRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalHistoryRequest model = BinaryData.fromString( - "{\"signalName\":\"xnyed\",\"startAt\":\"2021-04-02T22:41:49Z\",\"endAt\":\"2021-11-28T20:14:06Z\",\"top\":752021128,\"nextMarker\":\"juewbcihxuuwhcjy\"}") + "{\"signalName\":\"fqjbvleo\",\"startAt\":\"2021-08-14T12:16:21Z\",\"endAt\":\"2021-07-07T02:32:57Z\",\"top\":16475569,\"nextMarker\":\"qzfavyv\"}") .toObject(SignalHistoryRequest.class); - Assertions.assertEquals("xnyed", model.signalName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-02T22:41:49Z"), model.startAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-28T20:14:06Z"), model.endAt()); - Assertions.assertEquals(752021128, model.top()); - Assertions.assertEquals("juewbcihxuuwhcjy", model.nextMarker()); + Assertions.assertEquals("fqjbvleo", model.signalName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T12:16:21Z"), model.startAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-07T02:32:57Z"), model.endAt()); + Assertions.assertEquals(16475569, model.top()); + Assertions.assertEquals("qzfavyv", model.nextMarker()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SignalHistoryRequest model = new SignalHistoryRequest().withSignalName("xnyed") - .withStartAt(OffsetDateTime.parse("2021-04-02T22:41:49Z")) - .withEndAt(OffsetDateTime.parse("2021-11-28T20:14:06Z")) - .withTop(752021128) - .withNextMarker("juewbcihxuuwhcjy"); + SignalHistoryRequest model = new SignalHistoryRequest().withSignalName("fqjbvleo") + .withStartAt(OffsetDateTime.parse("2021-08-14T12:16:21Z")) + .withEndAt(OffsetDateTime.parse("2021-07-07T02:32:57Z")) + .withTop(16475569) + .withNextMarker("qzfavyv"); model = BinaryData.fromObject(model).toObject(SignalHistoryRequest.class); - Assertions.assertEquals("xnyed", model.signalName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-02T22:41:49Z"), model.startAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-28T20:14:06Z"), model.endAt()); - Assertions.assertEquals(752021128, model.top()); - Assertions.assertEquals("juewbcihxuuwhcjy", model.nextMarker()); + Assertions.assertEquals("fqjbvleo", model.signalName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T12:16:21Z"), model.startAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-07T02:32:57Z"), model.endAt()); + Assertions.assertEquals(16475569, model.top()); + Assertions.assertEquals("qzfavyv", model.nextMarker()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryResponseInnerTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryResponseInnerTests.java index 3a1d5923af02..d0b4c29a3089 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryResponseInnerTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalHistoryResponseInnerTests.java @@ -14,14 +14,14 @@ public final class SignalHistoryResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalHistoryResponseInner model = BinaryData.fromString( - "{\"entityName\":\"ccybvp\",\"signalName\":\"yakk\",\"history\":[{\"occurredAt\":\"2021-07-27T17:18:09Z\",\"value\":91.30333284933613,\"healthState\":\"Deleted\",\"additionalContext\":\"plmag\"},{\"occurredAt\":\"2021-01-17T07:38:08Z\",\"value\":98.8252906927025,\"healthState\":\"Unknown\",\"additionalContext\":\"fkyrk\"},{\"occurredAt\":\"2021-09-01T09:28:39Z\",\"value\":81.52493620632941,\"healthState\":\"Degraded\",\"additionalContext\":\"sjkmnwqj\"}],\"nextMarker\":\"baiyhddviaceg\"}") + "{\"entityName\":\"qqybarye\",\"signalName\":\"ayjkqa\",\"history\":[{\"occurredAt\":\"2021-06-04T05:22:52Z\",\"value\":75.26670617204802,\"healthState\":\"Healthy\",\"additionalContext\":\"jcbhern\"},{\"occurredAt\":\"2021-02-23T04:37:37Z\",\"value\":73.53538429605008,\"healthState\":\"Unhealthy\",\"additionalContext\":\"cv\"}],\"nextMarker\":\"uwrbehwagoh\"}") .toObject(SignalHistoryResponseInner.class); - Assertions.assertEquals("ccybvp", model.entityName()); - Assertions.assertEquals("yakk", model.signalName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-27T17:18:09Z"), model.history().get(0).occurredAt()); - Assertions.assertEquals(91.30333284933613D, model.history().get(0).value()); - Assertions.assertEquals(HealthState.DELETED, model.history().get(0).healthState()); - Assertions.assertEquals("plmag", model.history().get(0).additionalContext()); - Assertions.assertEquals("baiyhddviaceg", model.nextMarker()); + Assertions.assertEquals("qqybarye", model.entityName()); + Assertions.assertEquals("ayjkqa", model.signalName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-04T05:22:52Z"), model.history().get(0).occurredAt()); + Assertions.assertEquals(75.26670617204802D, model.history().get(0).value()); + Assertions.assertEquals(HealthState.HEALTHY, model.history().get(0).healthState()); + Assertions.assertEquals("jcbhern", model.history().get(0).additionalContext()); + Assertions.assertEquals("uwrbehwagoh", model.nextMarker()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalInstancePropertiesTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalInstancePropertiesTests.java index 06ec4806b392..3e8503aed9c1 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalInstancePropertiesTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalInstancePropertiesTests.java @@ -12,18 +12,18 @@ public final class SignalInstancePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalInstanceProperties model = BinaryData.fromString( - "{\"signalKind\":\"SignalInstanceProperties\",\"name\":\"rwkq\",\"signalDefinitionName\":\"hgbijt\",\"status\":{\"healthState\":\"Deleted\",\"value\":9.178297793940615,\"reportedAt\":\"2021-08-16T20:44:49Z\",\"error\":\"ibsystawf\",\"additionalContext\":\"jpvkvpbjxbkzbzkd\"}}") + "{\"signalKind\":\"SignalInstanceProperties\",\"name\":\"fgytguslfeadcyg\",\"signalDefinitionName\":\"kyhejhzisxgf\",\"status\":{\"healthState\":\"Healthy\",\"value\":3.010447502894742,\"reportedAt\":\"2021-08-01T09:22:37Z\",\"error\":\"r\",\"additionalContext\":\"vu\"}}") .toObject(SignalInstanceProperties.class); - Assertions.assertEquals("rwkq", model.name()); - Assertions.assertEquals("hgbijt", model.signalDefinitionName()); + Assertions.assertEquals("fgytguslfeadcyg", model.name()); + Assertions.assertEquals("kyhejhzisxgf", model.signalDefinitionName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SignalInstanceProperties model - = new SignalInstanceProperties().withName("rwkq").withSignalDefinitionName("hgbijt"); + = new SignalInstanceProperties().withName("fgytguslfeadcyg").withSignalDefinitionName("kyhejhzisxgf"); model = BinaryData.fromObject(model).toObject(SignalInstanceProperties.class); - Assertions.assertEquals("rwkq", model.name()); - Assertions.assertEquals("hgbijt", model.signalDefinitionName()); + Assertions.assertEquals("fgytguslfeadcyg", model.name()); + Assertions.assertEquals("kyhejhzisxgf", model.signalDefinitionName()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalStatusTests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalStatusTests.java index 9926b1d727a0..1c3bc2300bd8 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalStatusTests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/SignalStatusTests.java @@ -12,8 +12,8 @@ public final class SignalStatusTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SignalStatus model = BinaryData.fromString( - "{\"healthState\":\"Healthy\",\"value\":85.72325317752029,\"reportedAt\":\"2021-08-12T09:54:47Z\",\"error\":\"amvdkfwynwcvtbv\",\"additionalContext\":\"yhmtnvyqiat\"}") + "{\"healthState\":\"Deleted\",\"value\":8.115316899565684,\"reportedAt\":\"2021-05-05T07:20:02Z\",\"error\":\"pip\",\"additionalContext\":\"ltha\"}") .toObject(SignalStatus.class); - Assertions.assertEquals("yhmtnvyqiat", model.additionalContext()); + Assertions.assertEquals("ltha", model.additionalContext()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ThresholdRuleV2Tests.java b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ThresholdRuleV2Tests.java index c5b5ec434c33..6f2a69625a92 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ThresholdRuleV2Tests.java +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/src/test/java/com/azure/resourcemanager/cloudhealth/generated/ThresholdRuleV2Tests.java @@ -6,7 +6,6 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.cloudhealth.models.DynamicThresholdSensitivity; -import com.azure.resourcemanager.cloudhealth.models.LookBackWindow; import com.azure.resourcemanager.cloudhealth.models.SignalOperator; import com.azure.resourcemanager.cloudhealth.models.ThresholdRuleV2; import org.junit.jupiter.api.Assertions; @@ -14,25 +13,22 @@ public final class ThresholdRuleV2Tests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ThresholdRuleV2 model = BinaryData.fromString( - "{\"operator\":\"LessThan\",\"threshold\":57.931778810567735,\"sensitivity\":\"Medium\",\"lookBackWindow\":\"PT5M\"}") + ThresholdRuleV2 model = BinaryData + .fromString("{\"operator\":\"Dynamic\",\"threshold\":25.902287895735654,\"sensitivity\":\"Low\"}") .toObject(ThresholdRuleV2.class); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.operator()); - Assertions.assertEquals(57.931778810567735D, model.threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.lookBackWindow()); + Assertions.assertEquals(SignalOperator.DYNAMIC, model.operator()); + Assertions.assertEquals(25.902287895735654D, model.threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.sensitivity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ThresholdRuleV2 model = new ThresholdRuleV2().withOperator(SignalOperator.LESS_THAN) - .withThreshold(57.931778810567735D) - .withSensitivity(DynamicThresholdSensitivity.MEDIUM) - .withLookBackWindow(LookBackWindow.PT5M); + ThresholdRuleV2 model = new ThresholdRuleV2().withOperator(SignalOperator.DYNAMIC) + .withThreshold(25.902287895735654D) + .withSensitivity(DynamicThresholdSensitivity.LOW); model = BinaryData.fromObject(model).toObject(ThresholdRuleV2.class); - Assertions.assertEquals(SignalOperator.LESS_THAN, model.operator()); - Assertions.assertEquals(57.931778810567735D, model.threshold()); - Assertions.assertEquals(DynamicThresholdSensitivity.MEDIUM, model.sensitivity()); - Assertions.assertEquals(LookBackWindow.PT5M, model.lookBackWindow()); + Assertions.assertEquals(SignalOperator.DYNAMIC, model.operator()); + Assertions.assertEquals(25.902287895735654D, model.threshold()); + Assertions.assertEquals(DynamicThresholdSensitivity.LOW, model.sensitivity()); } } diff --git a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/tsp-location.yaml b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/tsp-location.yaml index cef20e976ebc..b01b5df6671f 100644 --- a/sdk/cloudhealth/azure-resourcemanager-cloudhealth/tsp-location.yaml +++ b/sdk/cloudhealth/azure-resourcemanager-cloudhealth/tsp-location.yaml @@ -1,4 +1,4 @@ -directory: specification/cloudhealth/CloudHealth.Management -commit: c35249d1029d9e572cccf12d7eebea0d463193e1 +directory: specification/cloudhealth/resource-manager/Microsoft.CloudHealth/CloudHealth +commit: 2699940980baf57f4a5eedd1c80d5767820425a5 repo: Azure/azure-rest-api-specs additionalDirectories: