Python client library for the OpenStack Aodh alarming service. Provides programmatic access to alarm management (create, update, delete, list) and alarm evaluation history. Current version is 3.10.1, released for Python >=3.10. Maintained as part of the OpenStack project.
pip install aodhclientVerified import paths — ran on the pinned version, not inferred.
Authenticate using Keystone v3 and list all alarms.
Import from aodhclient.v2.client instead of aodhclient.client.
Always include required fields like 'name', 'type', 'threshold_rule', etc. Check official Aodh documentation for valid alarm schemas.
Consider using keystoneauth1.identity.v3.ApplicationCredential instead.
Use 'from aodhclient.v2 import client'
Double-check environment variables: OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, OS_PROJECT_NAME, OS_USER_DOMAIN_NAME, OS_PROJECT_DOMAIN_NAME.
Ensure all required fields (e.g., 'name', 'type', 'threshold_rule' with 'meter_name'/'threshold') are present and correct.