The `google-cloud-monitoring-dashboards` client library provides Python access to the Google Cloud Monitoring Dashboards API. It allows programmatic creation, management, and listing of custom dashboards for visualizing metrics in Google Cloud Monitoring. Part of the larger `google-cloud-python` monorepo, it receives frequent updates alongside other Google Cloud client libraries.
pip install google-cloud-monitoring-dashboardsVerified import paths — ran on the pinned version, not inferred.
Initializes the Monitoring Dashboards client and lists the first 5 dashboards in a specified Google Cloud project. Requires `GOOGLE_CLOUD_PROJECT_ID` environment variable or direct replacement of 'your-gcp-project-id'.
Authenticate using `gcloud auth application-default login` for local development or set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable to a service account key file path for production/CI.
Always ensure the correct Google Cloud project ID is provided, often in the `parent` argument of requests, and that resource names follow the API's expected format (e.g., `projects/{project_id}/dashboards/{dashboard_id}`).The current version requires Python >=3.9. Upgrade your Python environment to 3.9 or higher if you encounter installation issues or runtime errors related to unsupported Python versions. Check `requires_python` in `setup.py` or PyPI metadata for exact requirements.
No dependency data recorded yet.