Using python-genai with googleapis.com

Python integration

✓ Official SDK
Install
pip install python-genai
Quick start
import python-genai

# Use an OAuth2 access token
client = python_genai.Client(access_token="YOUR_ACCESS_TOKEN")
Fetches a specific dashboard.This method requires the monitoring.dashboards.g…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://monitoring.googleapis.com/v1/{name}
Lists the existing dashboards.This method requires the monitoring.dashboards.…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://monitoring.googleapis.com/v1/{parent}/dashboards
Lists labels for metrics.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://monitoring.googleapis.com/v1/{name}/location/{location}/prometheus/api/v1/labels
SDK on GitHub 📄 API Docs
SDK
python-genai
Python
API
googleapis.com
googleapis.com:monitoring
At a glance
Language Python
Endpoints15
Base URLhttps://monitoring.googleapis.com
✓ Official