Skip to content

Commit 9df5fda

Browse files
azure-sdkmsyycCopilot
authored
Refresh azure-mgmt-alertsmanagement after migrate to Typespec (#47128)
* Configurations: 'specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/AlertsManagement/tspconfig.yaml', API Version: 2025-05-25-preview, SDK Release Type: beta, and CommitSHA: 'd0beff06ece5e53277d93233b70d46b703346576' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6351024 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Optimize changelog for azure-mgmt-alertsmanagement Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add live tests for azure-mgmt-alertsmanagement * update project.toml * Configurations: 'specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/AlertsManagement/tspconfig.yaml', API Version: 2025-05-25-preview, SDK Release Type: beta, and CommitSHA: '5376576f4c7cd72c82446ddaab93642c9fad6b6e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6355283 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update * changelog --------- Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 21b3c3a commit 9df5fda

79 files changed

Lines changed: 7691 additions & 10072 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdk/alertsmanagement/azure-mgmt-alertsmanagement/CHANGELOG.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,80 @@
11
# Release History
22

3+
## 2.0.0b3 (2026-05-27)
4+
5+
### Features Added
6+
7+
- Client `AlertsManagementClient` added parameter `cloud_setting` in method `__init__`
8+
- Client `AlertsManagementClient` added method `send_request`
9+
- Enum `ActionType` added member `INTERNAL`
10+
- Model `Alert` added property `system_data`
11+
- Model `AlertModificationItem` added property `details`
12+
- Model `AlertProperties` added property `custom_properties`
13+
- Enum `MonitorService` added member `RESOURCE_HEALTH`
14+
- Model `Operation` added property `is_data_action`
15+
- Model `Operation` added property `action_type`
16+
- Model `Resource` added property `system_data`
17+
- Added model `ActionSuppressedDetails`
18+
- Added model `ActionTriggeredDetails`
19+
- Added model `AlertEnrichmentItem`
20+
- Added model `AlertEnrichmentProperties`
21+
- Added model `AlertEnrichmentResponse`
22+
- Added enum `AlertModificationType`
23+
- Added model `AlertsManagementErrorResponse`
24+
- Added model `BaseDetails`
25+
- Added model `NotificationResult`
26+
- Added enum `Origin`
27+
- Added model `PrometheusEnrichmentItem`
28+
- Added model `PrometheusInstantQuery`
29+
- Added model `PrometheusRangeQuery`
30+
- Added model `PropertyChangeDetails`
31+
- Added model `ProxyResource`
32+
- Added model `ProxyResourceAutoGenerated`
33+
- Added enum `ResultStatus`
34+
- Added enum `RuleType`
35+
- Added enum `Status`
36+
- Added model `TriggeredRule`
37+
- Added enum `Type`
38+
- Operation group `AlertsOperations` added method `change_state_tenant`
39+
- Operation group `AlertsOperations` added method `get_all_tenant`
40+
- Operation group `AlertsOperations` added method `get_by_id_tenant`
41+
- Operation group `AlertsOperations` added method `get_enrichments`
42+
- Operation group `AlertsOperations` added method `get_history_tenant`
43+
44+
### Breaking Changes
45+
46+
- This version introduces new hybrid models which have dual dictionary and model nature. And please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.
47+
- For the method breakings, please refer to https://aka.ms/azsdk/python/migrate/operations for migration.
48+
- Deleted or renamed client operation group `AlertsManagementClient.alert_processing_rules`
49+
- Deleted or renamed client operation group `AlertsManagementClient.prometheus_rule_groups`
50+
- Deleted or renamed client operation group `AlertsManagementClient.smart_groups`
51+
- Method `AlertsManagementClient.__init__` deleted or renamed its parameter `subscription_id` of kind `positional_or_keyword`
52+
- Deleted or renamed enum value `ActionType.ADD_ACTION_GROUPS`
53+
- Deleted or renamed enum value `ActionType.REMOVE_ALL_ACTION_GROUPS`
54+
- Deleted or renamed enum value `AlertModificationEvent.ACTIONS_FAILED`
55+
- Deleted or renamed enum value `AlertModificationEvent.ACTION_RULE_SUPPRESSED`
56+
- Deleted or renamed enum value `AlertModificationEvent.ACTION_RULE_TRIGGERED`
57+
- Model `AlertsSummaryGroup` renamed its instance variable `values` to `values_property`
58+
- Model `AlertsSummaryGroupItem` renamed its instance variable `values` to `values_property`
59+
- Method `AlertsOperations.change_state` changed its parameter `new_state` from `positional_or_keyword` to `keyword_only`
60+
- Method `AlertsOperations.change_state` inserted a `positional_or_keyword` parameter `scope`
61+
- Method `AlertsOperations.get_all` changed its parameter `target_resource`/`target_resource_type`/`target_resource_group`/`monitor_service`/`monitor_condition`/`severity`/`alert_state`/`alert_rule`/`smart_group_id`/`include_context`/`include_egress_config`/`page_count`/`sort_by`/`sort_order`/`select`/`time_range`/`custom_time_range` from `positional_or_keyword` to `keyword_only`
62+
- Method `AlertsOperations.get_all` inserted a `positional_or_keyword` parameter `scope`
63+
- Method `AlertsOperations.get_by_id` inserted a `positional_or_keyword` parameter `scope`
64+
- Method `AlertsOperations.get_history` inserted a `positional_or_keyword` parameter `scope`
65+
- Method `AlertsOperations.get_summary` changed its parameter `groupby`/`include_smart_groups_count`/`target_resource`/`target_resource_type`/`target_resource_group`/`monitor_service`/`monitor_condition`/`severity`/`alert_state`/`alert_rule`/`time_range`/`custom_time_range` from `positional_or_keyword` to `keyword_only`
66+
- Method `AlertsOperations.get_summary` inserted a `positional_or_keyword` parameter `scope`
67+
- Method `AlertsOperations.meta_data` changed its parameter `identifier` from `positional_or_keyword` to `keyword_only`
68+
- Deleted or renamed operation group `AlertProcessingRulesOperations`
69+
- Deleted or renamed operation group `PrometheusRuleGroupsOperations`
70+
- Deleted or renamed operation group `SmartGroupsOperations`
71+
72+
### Other Changes
73+
74+
- Deleted model `AlertProcessingRulesList`/`AlertsList`/`OperationsList`/`PrometheusRuleGroupResourceCollection`/`SmartGroupsList` which actually were not used by SDK users
75+
- Deleted model `Action`/`AddActionGroups`/`AlertProcessingRule`/`AlertProcessingRuleProperties`/`Condition`/`DailyRecurrence`/`ErrorResponseAutoGenerated`/`ErrorResponseAutoGenerated2`/`ErrorResponseAutoGenerated3`/`ErrorResponseBodyAutoGenerated`/`ErrorResponseBodyAutoGenerated2`/`ManagedResource`/`MonthlyRecurrence`/`PatchObject`/`PrometheusRule`/`PrometheusRuleGroupAction`/`PrometheusRuleGroupResource`/`PrometheusRuleGroupResourcePatch`/`PrometheusRuleGroupResourcePatchProperties`/`PrometheusRuleResolveConfiguration`/`Recurrence`/`RemoveAllActionGroups`/`ResourceAutoGenerated`/`Schedule`/`SmartGroup`/`SmartGroupAggregatedProperty`/`SmartGroupModification`/`SmartGroupModificationItem`/`SmartGroupModificationProperties`/`TrackedResource`/`WeeklyRecurrence` which actually were not used by SDK users
76+
- Deleted enum `DaysOfWeek`/`Field`/`Operator`/`RecurrenceType`/`SmartGroupModificationEvent`/`SmartGroupsSortByFields`/`State` which actually were not used by SDK users
77+
378
## 1.0.1 (2026-05-13)
479

580
### Other Changes

sdk/alertsmanagement/azure-mgmt-alertsmanagement/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,13 @@ By default, [Azure Active Directory](https://aka.ms/awps/aad) token authenticati
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
3131
- `AZURE_CLIENT_SECRET` for Azure client secret.
3232

33-
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
34-
3533
With above configuration, client can be authenticated by following code:
3634

3735
```python
3836
from azure.identity import DefaultAzureCredential
3937
from azure.mgmt.alertsmanagement import AlertsManagementClient
40-
import os
4138

42-
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43-
client = AlertsManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
39+
client = AlertsManagementClient(credential=DefaultAzureCredential())
4440
```
4541

4642
## Examples
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"commit": "952177df3c7616a6edd9cc8763088113b18aca15",
2+
"apiVersion": "2025-05-25-preview",
3+
"apiVersions": {
4+
"Microsoft.AlertsManagement": "2025-05-25-preview"
5+
},
6+
"commit": "5376576f4c7cd72c82446ddaab93642c9fad6b6e",
37
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.10.2",
5-
"use": [
6-
"@autorest/python@6.50.0",
7-
"@autorest/modelerfour@4.27.0"
8-
],
9-
"autorest_command": "autorest specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/AlertsManagement/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/home/codespace/workspace/sdk --tag=package-2019-06-preview --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
10-
"readme": "specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/AlertsManagement/readme.md"
8+
"typespec_src": "specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/AlertsManagement",
9+
"emitterVersion": "0.62.1"
1110
}

0 commit comments

Comments
 (0)