diff --git a/src/health-models/HISTORY.rst b/src/health-models/HISTORY.rst index 3f30b10706a..ad2f8661f73 100644 --- a/src/health-models/HISTORY.rst +++ b/src/health-models/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +1.0.0b2 +++++++ +* Mark the ``az monitor health-models`` command group and all of its commands as preview (``[Preview]``), matching the extension's preview status. + 1.0.0b1 ++++++ * Initial preview release. Supports the ``Microsoft.CloudHealth`` resource provider at API version ``2026-05-01-preview``. diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/__cmd_group.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/__cmd_group.py index ae26bed8013..c9393311d9b 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/__cmd_group.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/__cmd_group.py @@ -13,9 +13,10 @@ @register_command_group( "monitor health-models", + is_preview=True, ) class __CMDGroup(AAZCommandGroup): - """Manage Healthmodel + """Manage Azure Monitor health models. """ pass diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_create.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_create.py index eda0558c14d..7f9899b3c73 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_create.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_create.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models create", + is_preview=True, ) class Create(AAZCommand): """Create a HealthModel diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_delete.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_delete.py index 43775fbb6d8..04eb3700940 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_delete.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_delete.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models delete", + is_preview=True, confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_list.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_list.py index 003ef716974..a212d0e3f63 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_list.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_list.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models list", + is_preview=True, ) class List(AAZCommand): """List HealthModel resources by subscription ID diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_show.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_show.py index 44d14baa995..3532082e7fd 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_show.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_show.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models show", + is_preview=True, ) class Show(AAZCommand): """Get a HealthModel diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_update.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_update.py index fd31c3754a0..8a785640301 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_update.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/_update.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models update", + is_preview=True, ) class Update(AAZCommand): """Update a HealthModel :example: HealthModels_Create - az monitor health-models update --resource-group rgopenapi --health-model-name model1 + az monitor health-models update --resource-group rgopenapi --health-model-name model1 --type SystemAssigned, UserAssigned --user-assigned-identities "{/subscriptions/4980D7D5-4E07-47AD-AD34-E76C6BC9F061/resourceGroups/rgopenapi/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ua1:{}}" --tags "{key2961:hbljozzkqrpcthsjtfkyozpwyx}" """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/__cmd_group.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/__cmd_group.py index c348219e98e..8912857afc0 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/__cmd_group.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/__cmd_group.py @@ -13,6 +13,7 @@ @register_command_group( "monitor health-models authentication-setting", + is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage Authenticationsetting diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_create.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_create.py index b62c0dfe545..a9f6dd82f60 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_create.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_create.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models authentication-setting create", + is_preview=True, ) class Create(AAZCommand): """Create a AuthenticationSetting diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_delete.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_delete.py index 9632ac7f349..b09a8a837ca 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_delete.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_delete.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models authentication-setting delete", + is_preview=True, confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_list.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_list.py index 13353763f54..9b2358642bf 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_list.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_list.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models authentication-setting list", + is_preview=True, ) class List(AAZCommand): """List AuthenticationSetting resources by HealthModel diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_show.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_show.py index ce67d9dab03..53b0406f0ce 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_show.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_show.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models authentication-setting show", + is_preview=True, ) class Show(AAZCommand): """Get a AuthenticationSetting diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_update.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_update.py index 95a38656930..4c3ae55d528 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_update.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/authentication_setting/_update.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models authentication-setting update", + is_preview=True, ) class Update(AAZCommand): """Update a AuthenticationSetting :example: AuthenticationSettings_CreateOrUpdate - az monitor health-models authentication-setting update --resource-group myResourceGroup --health-model-name myHealthModel --authentication-setting-name myAuthSetting + az monitor health-models authentication-setting update --resource-group myResourceGroup --health-model-name myHealthModel --authentication-setting-name myAuthSetting --display-name myDisplayName """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/__cmd_group.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/__cmd_group.py index 7cee7a2f182..7fe96f5c9fd 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/__cmd_group.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/__cmd_group.py @@ -13,6 +13,7 @@ @register_command_group( "monitor health-models discovery-rule", + is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage Discoveryrule diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_create.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_create.py index ac51524df2c..3f0ed400875 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_create.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_create.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models discovery-rule create", + is_preview=True, ) class Create(AAZCommand): """Create a DiscoveryRule diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_delete.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_delete.py index bd00332555e..f45e3135404 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_delete.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_delete.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models discovery-rule delete", + is_preview=True, confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_list.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_list.py index bc322504235..466561eaace 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_list.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_list.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models discovery-rule list", + is_preview=True, ) class List(AAZCommand): """List DiscoveryRule resources by HealthModel diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_show.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_show.py index d45bad65f54..962821d0682 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_show.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_show.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models discovery-rule show", + is_preview=True, ) class Show(AAZCommand): """Get a DiscoveryRule diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_update.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_update.py index 07e3fa7012b..7532dc1286b 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_update.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/discovery_rule/_update.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models discovery-rule update", + is_preview=True, ) class Update(AAZCommand): """Update a DiscoveryRule :example: DiscoveryRules_CreateOrUpdate - az monitor health-models discovery-rule update --resource-group myResourceGroup --health-model-name myHealthModel --discovery-rule-name myDiscoveryRule + az monitor health-models discovery-rule update --resource-group myResourceGroup --health-model-name myHealthModel --discovery-rule-name myDiscoveryRule --authentication-setting authSetting1 --display-name myDisplayName --discover-relationships Enabled --add-recommended-signals Enabled --specification "{kind:ResourceGraphQuery,resourceGraphQuery:'resources | where subscriptionId == '/7ddfffd7-9b32-40df-1234-828cbd55d6f4'/ | where resourceGroup == '/my-rg'/'}" --add-resource-health-signal Enabled """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/__cmd_group.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/__cmd_group.py index dc2b437867d..3fc40da5a12 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/__cmd_group.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/__cmd_group.py @@ -13,6 +13,7 @@ @register_command_group( "monitor health-models entity", + is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage Entity diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_add_data_annotation.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_add_data_annotation.py index 956a714f25a..e2b4fa3dc50 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_add_data_annotation.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_add_data_annotation.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models entity add-data-annotation", + is_preview=True, ) class AddDataAnnotation(AAZCommand): """Add a data annotation to an entity :example: Entities_AddDataAnnotation - az monitor health-models entity add-data-annotation --resource-group rgopenapi --health-model-name myHealthModel --entity-name entity1 --annotation-details "{environment:production,deploymentId:deploy-2026-04-10-001,changedBy:release-pipeline}" --description Production deployment of v2.4.1 + az monitor health-models entity add-data-annotation --resource-group rgopenapi --health-model-name myHealthModel --entity-name entity1 --annotation-details "{environment:production,deploymentId:deploy-2026-04-10-001,changedBy:release-pipeline}" --description "Production deployment of v2.4.1" """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_create.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_create.py index 9a3d27c873f..469c511cd86 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_create.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_create.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models entity create", + is_preview=True, ) class Create(AAZCommand): """Create a Entity :example: Entities_CreateOrUpdate - az monitor health-models entity create --resource-group rgopenapi --health-model-name myHealthModel --entity-name uszrxbdkxesdrxhmagmzywebgbjj --display-name My entity --canvas-position "{x:14,y:13}" --icon "{icon-name:Custom,custom-data:rcitntvapruccrhtxmkqjphbxunkz}" --health-objective 62 --impact Standard --tags "{key1376:'sample tag'}" --signal-groups "{azure-resource:{authentication-setting:auth123,azure-resource-id:/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1,azure-resource-kind:functionapp,signals:[{signalKind:AzureResourceMetric,name:uniqueSignalName1,signal-definition-name:sigdef1,metric-namespace:microsoft.compute/virtualMachines,metric-name:cpuusage,aggregation-type:None,dimension-filter:'node eq '/node1'/',display-name:'CPU usage',refresh-interval:PT1M,time-grain:PT1M,data-unit:Count,evaluation-rules:{degradedRule:{operator:LowerThan,threshold:10},unhealthyRule:{operator:LowerThan,threshold:1}}}]},azure-log-analytics:{authentication-setting:auth123,log-analytics-workspace-resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.OperationalInsights/workspaces/myworkspace,signals:[{signalKind:LogAnalyticsQuery,name:uniqueSignalName2,signal-definition-name:null,evaluation-rules:{degradedRule:{operator:GreaterThan,threshold:1},unhealthyRule:{operator:GreaterThan,threshold:5}},refresh-interval:PT1M,query-text:'print 1',time-grain:PT30M,value-column-name:result,display-name:'Test LA signal',data-unit:'my unit'}]},azure-monitor-workspace:{authentication-setting:auth123,azure-monitor-workspace-resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.OperationalInsights/workspaces/myworkspace,signals:[{signalKind:PrometheusMetricsQuery,name:pod-cpu-usage,signal-definition-name:PodCpuUsageDefinition,display-name:'Pod CPU Usage',refresh-interval:PT1M,data-unit:Percent,query-text:\\'rate(container_cpu_usage_seconds_total{pod=~"my-app-.*"}[5m]) * 100\\',time-grain:PT5M,evaluation-rules:{degradedRule:{operator:GreaterThan,threshold:70},unhealthyRule:{operator:GreaterThan,threshold:90}}}]},dependencies:{aggregation-type:MinHealthy,unit:Percentage,degraded-threshold:80,unhealthy-threshold:50}}" --alerts "{unhealthy:{severity:Sev1,description:'Alert description',actionGroupIds:[/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Insights/actionGroups/myactiongroup]},degraded:{severity:Sev4,description:'Alert description',actionGroupIds:[/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Insights/actionGroups/myactiongroup]}}" + az monitor health-models entity create --resource-group rgopenapi --health-model-name myHealthModel --entity-name uszrxbdkxesdrxhmagmzywebgbjj --display-name "My entity" --canvas-position "{x:14,y:13}" --icon "{icon-name:Custom,custom-data:rcitntvapruccrhtxmkqjphbxunkz}" --health-objective 62 --impact Standard --tags "{key1376:'sample tag'}" --signal-groups "{azure-resource:{authentication-setting:auth123,azure-resource-id:/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1,azure-resource-kind:functionapp,signals:[{signalKind:AzureResourceMetric,name:uniqueSignalName1,signal-definition-name:sigdef1,metric-namespace:microsoft.compute/virtualMachines,metric-name:cpuusage,aggregation-type:None,dimension-filter:'node eq '/node1'/',display-name:'CPU usage',refresh-interval:PT1M,time-grain:PT1M,data-unit:Count,evaluation-rules:{degradedRule:{operator:LowerThan,threshold:10},unhealthyRule:{operator:LowerThan,threshold:1}}}]},azure-log-analytics:{authentication-setting:auth123,log-analytics-workspace-resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.OperationalInsights/workspaces/myworkspace,signals:[{signalKind:LogAnalyticsQuery,name:uniqueSignalName2,signal-definition-name:null,evaluation-rules:{degradedRule:{operator:GreaterThan,threshold:1},unhealthyRule:{operator:GreaterThan,threshold:5}},refresh-interval:PT1M,query-text:'print 1',time-grain:PT30M,value-column-name:result,display-name:'Test LA signal',data-unit:'my unit'}]},azure-monitor-workspace:{authentication-setting:auth123,azure-monitor-workspace-resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.OperationalInsights/workspaces/myworkspace,signals:[{signalKind:PrometheusMetricsQuery,name:pod-cpu-usage,signal-definition-name:PodCpuUsageDefinition,display-name:'Pod CPU Usage',refresh-interval:PT1M,data-unit:Percent,query-text:\\'rate(container_cpu_usage_seconds_total{pod=~"my-app-.*"}[5m]) * 100\\',time-grain:PT5M,evaluation-rules:{degradedRule:{operator:GreaterThan,threshold:70},unhealthyRule:{operator:GreaterThan,threshold:90}}}]},dependencies:{aggregation-type:MinHealthy,unit:Percentage,degraded-threshold:80,unhealthy-threshold:50}}" --alerts "{unhealthy:{severity:Sev1,description:'Alert description',actionGroupIds:[/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Insights/actionGroups/myactiongroup]},degraded:{severity:Sev4,description:'Alert description',actionGroupIds:[/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Insights/actionGroups/myactiongroup]}}" """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_delete.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_delete.py index f2ba8e4f612..5e366c14cf9 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_delete.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_delete.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models entity delete", + is_preview=True, confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_data_annotations.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_data_annotations.py index 2ee7ee6c991..5a1d12a82ea 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_data_annotations.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_data_annotations.py @@ -13,8 +13,9 @@ @register_command( "monitor health-models entity get-data-annotations", + is_preview=True, ) -class GetDataAnnotation(AAZCommand): +class GetDataAnnotations(AAZCommand): """Retrieve data annotations for an entity :example: Entities_GetDataAnnotations @@ -259,8 +260,8 @@ def _build_schema_on_200(cls): return cls._schema_on_200 -class _GetDataAnnotationHelper: - """Helper class for GetDataAnnotation""" +class _GetDataAnnotationsHelper: + """Helper class for GetDataAnnotations""" -__all__ = ["GetDataAnnotation"] +__all__ = ["GetDataAnnotations"] diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_history.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_history.py index 80893361f70..8e20cf4b7e3 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_history.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_history.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models entity get-history", + is_preview=True, ) class GetHistory(AAZCommand): """Retrieve the health state transition history for an entity diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_signal_history.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_signal_history.py index 7796298f38d..7119d9eb347 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_signal_history.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_signal_history.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models entity get-signal-history", + is_preview=True, ) class GetSignalHistory(AAZCommand): """Retrieve the time series history for a signal on an entity diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_signal_recommendations.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_signal_recommendations.py index 90d8a3acc64..a794773df77 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_signal_recommendations.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_get_signal_recommendations.py @@ -13,8 +13,9 @@ @register_command( "monitor health-models entity get-signal-recommendations", + is_preview=True, ) -class GetSignalRecommendation(AAZCommand): +class GetSignalRecommendations(AAZCommand): """Get recommended signal configurations for a given Entity (only applicable for Entities representing Azure resources) :example: Entities_GetSignalRecommendations @@ -180,17 +181,17 @@ def _build_schema_on_200(cls): recommended_configurations = cls._schema_on_200.recommended_configurations recommended_configurations.Element = AAZObjectType() - _GetSignalRecommendationHelper._build_schema_signal_configuration_read(recommended_configurations.Element) + _GetSignalRecommendationsHelper._build_schema_signal_configuration_read(recommended_configurations.Element) recommended_signals = cls._schema_on_200.recommended_signals recommended_signals.Element = AAZObjectType() - _GetSignalRecommendationHelper._build_schema_signal_configuration_read(recommended_signals.Element) + _GetSignalRecommendationsHelper._build_schema_signal_configuration_read(recommended_signals.Element) return cls._schema_on_200 -class _GetSignalRecommendationHelper: - """Helper class for GetSignalRecommendation""" +class _GetSignalRecommendationsHelper: + """Helper class for GetSignalRecommendations""" _schema_signal_configuration_read = None @@ -283,4 +284,4 @@ def _build_schema_threshold_rule_v2_read(cls, _schema): _schema.threshold = cls._schema_threshold_rule_v2_read.threshold -__all__ = ["GetSignalRecommendation"] +__all__ = ["GetSignalRecommendations"] diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_ingest_health_report.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_ingest_health_report.py index eae80b24742..e2faf9a978d 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_ingest_health_report.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_ingest_health_report.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models entity ingest-health-report", + is_preview=True, ) class IngestHealthReport(AAZCommand): """Ingest a health report for a specific signal on an entity (the entity must already exist) :example: Entities_IngestHealthReport - az monitor health-models entity ingest-health-report --resource-group rgopenapi --health-model-name myHealthModel --entity-name entity1 --signal-name uniqueSignalName1 --value 85.5 --health-state Degraded --evaluation-rules "{degraded-rule:{operator:GreaterThan,threshold:70},unhealthy-rule:{operator:GreaterThan,threshold:90}}" --expires-in-minutes 60 --additional-context CPU usage elevated due to batch processing job + az monitor health-models entity ingest-health-report --resource-group rgopenapi --health-model-name myHealthModel --entity-name entity1 --signal-name uniqueSignalName1 --value 85.5 --health-state Degraded --evaluation-rules "{degraded-rule:{operator:GreaterThan,threshold:70},unhealthy-rule:{operator:GreaterThan,threshold:90}}" --expires-in-minutes 60 --additional-context "CPU usage elevated due to batch processing job" """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_list.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_list.py index 317deada4ca..8479f400d36 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_list.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_list.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models entity list", + is_preview=True, ) class List(AAZCommand): """List Entity resources by HealthModel diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_show.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_show.py index 2d3d879e445..3772d675053 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_show.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_show.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models entity show", + is_preview=True, ) class Show(AAZCommand): """Get a Entity diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_update.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_update.py index 5f1fcf69366..3e224dba9a8 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_update.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/entity/_update.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models entity update", + is_preview=True, ) class Update(AAZCommand): """Update a Entity :example: Entities_CreateOrUpdate - az monitor health-models entity update --resource-group rgopenapi --health-model-name myHealthModel --entity-name uszrxbdkxesdrxhmagmzywebgbjj + az monitor health-models entity update --resource-group rgopenapi --health-model-name myHealthModel --entity-name uszrxbdkxesdrxhmagmzywebgbjj --display-name "My entity" --canvas-position "{x:14,y:13}" --icon "{icon-name:Custom,custom-data:rcitntvapruccrhtxmkqjphbxunkz}" --health-objective 62 --impact Standard --tags "{key1376:'sample tag'}" --signal-groups "{azure-resource:{authentication-setting:auth123,azure-resource-id:/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1,azure-resource-kind:functionapp,signals:[{signalKind:AzureResourceMetric,name:uniqueSignalName1,signal-definition-name:sigdef1,metric-namespace:microsoft.compute/virtualMachines,metric-name:cpuusage,aggregation-type:None,dimension-filter:'node eq '/node1'/',display-name:'CPU usage',refresh-interval:PT1M,time-grain:PT1M,data-unit:Count,evaluation-rules:{degradedRule:{operator:LowerThan,threshold:10},unhealthyRule:{operator:LowerThan,threshold:1}}}]},azure-log-analytics:{authentication-setting:auth123,log-analytics-workspace-resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.OperationalInsights/workspaces/myworkspace,signals:[{signalKind:LogAnalyticsQuery,name:uniqueSignalName2,signal-definition-name:null,evaluation-rules:{degradedRule:{operator:GreaterThan,threshold:1},unhealthyRule:{operator:GreaterThan,threshold:5}},refresh-interval:PT1M,query-text:'print 1',time-grain:PT30M,value-column-name:result,display-name:'Test LA signal',data-unit:'my unit'}]},azure-monitor-workspace:{authentication-setting:auth123,azure-monitor-workspace-resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.OperationalInsights/workspaces/myworkspace,signals:[{signalKind:PrometheusMetricsQuery,name:pod-cpu-usage,signal-definition-name:PodCpuUsageDefinition,display-name:'Pod CPU Usage',refresh-interval:PT1M,data-unit:Percent,query-text:\\'rate(container_cpu_usage_seconds_total{pod=~"my-app-.*"}[5m]) * 100\\',time-grain:PT5M,evaluation-rules:{degradedRule:{operator:GreaterThan,threshold:70},unhealthyRule:{operator:GreaterThan,threshold:90}}}]},dependencies:{aggregation-type:MinHealthy,unit:Percentage,degraded-threshold:80,unhealthy-threshold:50}}" --alerts "{unhealthy:{severity:Sev1,description:'Alert description',actionGroupIds:[/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Insights/actionGroups/myactiongroup]},degraded:{severity:Sev4,description:'Alert description',actionGroupIds:[/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Insights/actionGroups/myactiongroup]}}" """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/__cmd_group.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/__cmd_group.py index 39378b6ca81..ddfc2874814 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/__cmd_group.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/__cmd_group.py @@ -13,6 +13,7 @@ @register_command_group( "monitor health-models identity", + is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage Identity diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_assign.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_assign.py index c98a2a450a1..964d5ad114b 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_assign.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_assign.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models identity assign", + is_preview=True, ) class Assign(AAZCommand): """Assign the user or system managed identities. diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_remove.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_remove.py index 92ab53d510a..7c9b7ab3817 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_remove.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_remove.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models identity remove", + is_preview=True, ) class Remove(AAZCommand): """Remove the user or system managed identities. diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_show.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_show.py index a7647bac743..d28bd532a29 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_show.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/identity/_show.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models identity show", + is_preview=True, ) class Show(AAZCommand): """Show the details of managed identities. diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/__cmd_group.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/__cmd_group.py index 85ef75398bb..85c9309777b 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/__cmd_group.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/__cmd_group.py @@ -13,6 +13,7 @@ @register_command_group( "monitor health-models relationship", + is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage Relationship diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_create.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_create.py index 6faadfd28ea..791781877e1 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_create.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_create.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models relationship create", + is_preview=True, ) class Create(AAZCommand): """Create a Relationship :example: Relationships_CreateOrUpdate - az monitor health-models relationship create --resource-group rgopenapi --health-model-name model1 --relationship-name rel1 --display-name My relationship --parent-entity-name Entity1 --child-entity-name Entity2 --tags "{key9681:ixfvzsfnpvkkbrce}" + az monitor health-models relationship create --resource-group rgopenapi --health-model-name model1 --relationship-name rel1 --display-name "My relationship" --parent-entity-name Entity1 --child-entity-name Entity2 --tags "{key9681:ixfvzsfnpvkkbrce}" """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_delete.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_delete.py index e2c04e7f7a5..b81a4465750 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_delete.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_delete.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models relationship delete", + is_preview=True, confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_list.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_list.py index defd2618766..05a1c0a8f2b 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_list.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_list.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models relationship list", + is_preview=True, ) class List(AAZCommand): """List Relationship resources by HealthModel diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_show.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_show.py index 733499d89e9..c627feca0a8 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_show.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_show.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models relationship show", + is_preview=True, ) class Show(AAZCommand): """Get a Relationship diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_update.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_update.py index 4709bcdb10a..68813a2376d 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_update.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/relationship/_update.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models relationship update", + is_preview=True, ) class Update(AAZCommand): """Update a Relationship :example: Relationships_CreateOrUpdate - az monitor health-models relationship update --resource-group rgopenapi --health-model-name model1 --relationship-name rel1 + az monitor health-models relationship update --resource-group rgopenapi --health-model-name model1 --relationship-name rel1 --display-name "My relationship" --tags "{key9681:ixfvzsfnpvkkbrce}" """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/__cmd_group.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/__cmd_group.py index 7e693ae5c66..e9666da1942 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/__cmd_group.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/__cmd_group.py @@ -13,6 +13,7 @@ @register_command_group( "monitor health-models signal-definition", + is_preview=True, ) class __CMDGroup(AAZCommandGroup): """Manage Signaldefinition diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_create.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_create.py index 51d4eac22a2..6a10e831114 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_create.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_create.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models signal-definition create", + is_preview=True, ) class Create(AAZCommand): """Create a SignalDefinition :example: SignalDefinitions_CreateOrUpdate - az monitor health-models signal-definition create --resource-group rgopenapi --health-model-name myHealthModel --signal-definition-name sig1 --display-name cpu usage --refresh-interval PT1M --tags "{key4788:ixfvzsfnpvkkbrce}" --data-unit byte --evaluation-rules "{degraded-rule:{operator:GreaterThan,threshold:70},unhealthy-rule:{operator:Dynamic,sensitivity:Medium,lookBackWindow:PT1H}}" + az monitor health-models signal-definition create --resource-group rgopenapi --health-model-name myHealthModel --signal-definition-name sig1 --display-name "cpu usage" --refresh-interval PT1M --tags "{key4788:ixfvzsfnpvkkbrce}" --data-unit byte --evaluation-rules "{degraded-rule:{operator:GreaterThan,threshold:70},unhealthy-rule:{operator:Dynamic,sensitivity:Medium,lookBackWindow:PT1H}}" """ _aaz_info = { diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_delete.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_delete.py index a0a553a7285..0a24f366082 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_delete.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_delete.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models signal-definition delete", + is_preview=True, confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_list.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_list.py index 4bba9d85790..1a192ac6be0 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_list.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_list.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models signal-definition list", + is_preview=True, ) class List(AAZCommand): """List SignalDefinition resources by HealthModel diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_show.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_show.py index 796cac8edb3..22878def208 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_show.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_show.py @@ -13,6 +13,7 @@ @register_command( "monitor health-models signal-definition show", + is_preview=True, ) class Show(AAZCommand): """Get a SignalDefinition diff --git a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_update.py b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_update.py index 55a804151da..c22e4a8f1d7 100644 --- a/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_update.py +++ b/src/health-models/azext_health_models/aaz/latest/monitor/health_models/signal_definition/_update.py @@ -13,12 +13,13 @@ @register_command( "monitor health-models signal-definition update", + is_preview=True, ) class Update(AAZCommand): """Update a SignalDefinition :example: SignalDefinitions_CreateOrUpdate - az monitor health-models signal-definition update --resource-group rgopenapi --health-model-name myHealthModel --signal-definition-name sig1 + az monitor health-models signal-definition update --resource-group rgopenapi --health-model-name myHealthModel --signal-definition-name sig1 --display-name "cpu usage" --refresh-interval PT1M --tags "{key4788:ixfvzsfnpvkkbrce}" --data-unit byte --evaluation-rules "{degraded-rule:{operator:GreaterThan,threshold:70},unhealthy-rule:{operator:Dynamic,sensitivity:Medium,lookBackWindow:PT1H}}" """ _aaz_info = { diff --git a/src/health-models/setup.py b/src/health-models/setup.py index 7ec539fcac9..13e7eac9b8a 100644 --- a/src/health-models/setup.py +++ b/src/health-models/setup.py @@ -6,7 +6,7 @@ from codecs import open # pylint: disable=redefined-builtin from setuptools import setup, find_packages -VERSION = '1.0.0b1' +VERSION = '1.0.0b2' CLASSIFIERS = [ 'Development Status :: 4 - Beta',