Microsoft Azure Alertsmanagement Management Client Library for Python
Project description
Microsoft Azure SDK for Python
This is the Microsoft Azure Alerts Management Client Library. This package has been tested with Python 3.10+. For a more complete view of Azure libraries, see the azure sdk python release.
Disclaimer
Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691
Getting started
Prerequisites
- Python 3.10+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-alertsmanagement
pip install azure-identity
Authentication
By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
AZURE_CLIENT_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor Azure client secret.
With above configuration, client can be authenticated by following code:
from azure.identity import DefaultAzureCredential
from azure.mgmt.alertsmanagement import AlertsManagementClient
client = AlertsManagementClient(credential=DefaultAzureCredential())
Examples
Code samples for this package can be found at:
- Search Alerts Management on docs.microsoft.com
- Azure Python Mgmt SDK Samples Repo
Troubleshooting
Next steps
Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
Release History
2.0.0b3 (2026-05-27)
Features Added
- Client
AlertsManagementClientadded parametercloud_settingin method__init__ - Client
AlertsManagementClientadded methodsend_request - Enum
ActionTypeadded memberINTERNAL - Model
Alertadded propertysystem_data - Model
AlertModificationItemadded propertydetails - Model
AlertPropertiesadded propertycustom_properties - Enum
MonitorServiceadded memberRESOURCE_HEALTH - Model
Operationadded propertyis_data_action - Model
Operationadded propertyaction_type - Model
Resourceadded propertysystem_data - Added model
ActionSuppressedDetails - Added model
ActionTriggeredDetails - Added model
AlertEnrichmentItem - Added model
AlertEnrichmentProperties - Added model
AlertEnrichmentResponse - Added enum
AlertModificationType - Added model
AlertsManagementErrorResponse - Added model
BaseDetails - Added model
NotificationResult - Added enum
Origin - Added model
PrometheusEnrichmentItem - Added model
PrometheusInstantQuery - Added model
PrometheusRangeQuery - Added model
PropertyChangeDetails - Added model
ProxyResource - Added model
ProxyResourceAutoGenerated - Added enum
ResultStatus - Added enum
RuleType - Added enum
Status - Added model
TriggeredRule - Added enum
Type - Operation group
AlertsOperationsadded methodchange_state_tenant - Operation group
AlertsOperationsadded methodget_all_tenant - Operation group
AlertsOperationsadded methodget_by_id_tenant - Operation group
AlertsOperationsadded methodget_enrichments - Operation group
AlertsOperationsadded methodget_history_tenant
Breaking Changes
- 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.
- For the method breakings, please refer to https://aka.ms/azsdk/python/migrate/operations for migration.
- Deleted or renamed client operation group
AlertsManagementClient.alert_processing_rules - Deleted or renamed client operation group
AlertsManagementClient.prometheus_rule_groups - Deleted or renamed client operation group
AlertsManagementClient.smart_groups - Method
AlertsManagementClient.__init__deleted or renamed its parametersubscription_idof kindpositional_or_keyword - Deleted or renamed enum value
ActionType.ADD_ACTION_GROUPS - Deleted or renamed enum value
ActionType.REMOVE_ALL_ACTION_GROUPS - Deleted or renamed enum value
AlertModificationEvent.ACTIONS_FAILED - Deleted or renamed enum value
AlertModificationEvent.ACTION_RULE_SUPPRESSED - Deleted or renamed enum value
AlertModificationEvent.ACTION_RULE_TRIGGERED - Model
AlertsSummaryGrouprenamed its instance variablevaluestovalues_property - Model
AlertsSummaryGroupItemrenamed its instance variablevaluestovalues_property - Method
AlertsOperations.change_statechanged its parameternew_statefrompositional_or_keywordtokeyword_only - Method
AlertsOperations.change_stateinserted apositional_or_keywordparameterscope - Method
AlertsOperations.get_allchanged its parametertarget_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_rangefrompositional_or_keywordtokeyword_only - Method
AlertsOperations.get_allinserted apositional_or_keywordparameterscope - Method
AlertsOperations.get_by_idinserted apositional_or_keywordparameterscope - Method
AlertsOperations.get_historyinserted apositional_or_keywordparameterscope - Method
AlertsOperations.get_summarychanged its parametergroupby/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_rangefrompositional_or_keywordtokeyword_only - Method
AlertsOperations.get_summaryinserted apositional_or_keywordparameterscope - Method
AlertsOperations.meta_datachanged its parameteridentifierfrompositional_or_keywordtokeyword_only - Deleted or renamed operation group
AlertProcessingRulesOperations - Deleted or renamed operation group
PrometheusRuleGroupsOperations - Deleted or renamed operation group
SmartGroupsOperations
Other Changes
- Deleted model
AlertProcessingRulesList/AlertsList/OperationsList/PrometheusRuleGroupResourceCollection/SmartGroupsListwhich actually were not used by SDK users - 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/WeeklyRecurrencewhich actually were not used by SDK users - Deleted enum
DaysOfWeek/Field/Operator/RecurrenceType/SmartGroupModificationEvent/SmartGroupsSortByFields/Statewhich actually were not used by SDK users
1.0.1 (2026-05-13)
Other Changes
- Regenerated with latest code generator tool
2.0.0b2 (2022-12-26)
Features Added
- Added operation group PrometheusRuleGroupsOperations
2.0.0b1 (2022-08-22)
Features Added
- Added operation group AlertProcessingRulesOperations
- Model Condition has a new parameter field
- Model Essentials has a new parameter action_status
- Model Essentials has a new parameter description
- Model Operation has a new parameter origin
- Model PatchObject has a new parameter enabled
Breaking Changes
- Model PatchObject no longer has parameter status
- Operation AlertsOperations.change_state has a new parameter comment
- Removed operation group ActionRulesOperations
- Removed operation group SmartDetectorAlertRulesOperations
1.0.0 (2021-03-16)
- GA release
1.0.0b1 (2020-11-20)
This is beta preview version.
This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).
General breaking changes
-
Credential system has been completly revamped:
azure.common.credentialsormsrestazure.azure_active_directoryinstances are no longer supported, use theazure-identityclasses instead: https://pypi.org/project/azure-identity/credentialsparameter has been renamedcredential
-
The
configattribute no longer exists on a client, configuration should be passed as kwarg. Example:MyClient(credential, subscription_id, enable_logging=True). For a complete set of supported options, see the parameters accept in init documentation of azure-core -
You can't import a
versionmodule anymore, use__version__instead -
Operations that used to return a
msrest.polling.LROPollernow returns aazure.core.polling.LROPollerand are prefixed withbegin_. -
Exceptions tree have been simplified and most exceptions are now
azure.core.exceptions.HttpResponseError(CloudErrorhas been removed). -
Most of the operation kwarg have changed. Some of the most noticeable:
rawhas been removed. Equivalent feature can be found usingcls, a callback that will give access to internal HTTP response for advanced user- For a complete set of supported options, see the parameters accept in Request documentation of azure-core
General new features
- Type annotations support using
typing. SDKs are mypy ready. - This client has now stable and official support for async. Check the
aionamespace of your package to find the async client. - This client now support natively tracing library like OpenCensus or OpenTelemetry. See this tracing quickstart for an overview.
0.2.0rc2 (2019-07-31)
Bugfix
- Fixed autogenerated code problems
0.2.0rc1 (2019-07-29)
Features
- Added operation AlertsOperations.meta_data
- Added operation group SmartDetectorAlertRulesOperations
- Added operation group ActionRulesOperations
General breaking changes
This version uses a next-generation code generator that might introduce breaking changes if from some import. In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place.
- AlertsManagementClient cannot be imported from
azure.mgmt.alertsmanagement.alerts_management_clientanymore (import fromazure.mgmt.alertsmanagementworks like before) - AlertsManagementClientConfiguration import has been moved from
azure.mgmt.alertsmanagement.alerts_management_clienttoazure.mgmt.alertsmanagement - A model
MyClassfrom a "models" sub-module cannot be imported anymore usingazure.mgmt.alertsmanagement.models.my_class(import fromazure.mgmt.alertsmanagement.modelsworks like before) - An operation class
MyClassOperationsfrom anoperationssub-module cannot be imported anymore usingazure.mgmt.alertsmanagement.operations.my_class_operations(import fromazure.mgmt.alertsmanagement.operationsworks like before)
Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process.
0.1.0 (2018-09-17)
- Initial Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure_mgmt_alertsmanagement-2.0.0b3.tar.gz.
File metadata
- Download URL: azure_mgmt_alertsmanagement-2.0.0b3.tar.gz
- Upload date:
- Size: 75.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4985a6c822df1065d469bfa0ae098fa683119aefd9243c5b8bfc03d7c4d9d89
|
|
| MD5 |
3fe3ee51a0d0f28b6d3af8959668c249
|
|
| BLAKE2b-256 |
edec3326f145367ed4a042f8163f4d709a9f0a2b567d3f624e8b49ec72ac1950
|
File details
Details for the file azure_mgmt_alertsmanagement-2.0.0b3-py3-none-any.whl.
File metadata
- Download URL: azure_mgmt_alertsmanagement-2.0.0b3-py3-none-any.whl
- Upload date:
- Size: 80.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
465d87807ef9c3b3a8541af91119df1d8214000fdecfc24751f81e4a6b0993a3
|
|
| MD5 |
5290e49bf252007b3965851d64b70a9e
|
|
| BLAKE2b-256 |
ef7c2d0f380f0458e7b8aea7a8a634bf06316c5696958d94c734d5b9628765c1
|