Queries module

Documentation for queries module

gcpdiag.queries.apigee

Queries related to Apigee.

gcpdiag.queries.apis

Build and cache GCP APIs + handle authentication.

gcpdiag.queries.apis_utils

GCP API-related utility functions.

gcpdiag.queries.artifact_registry

Queries related to GCP Artifact Registry

gcpdiag.queries.billing

Queries related to GCP Billing Accounts.

gcpdiag.queries.cloudrun

Queries related to GCP Cloud Run service.

gcpdiag.queries.cloudsql

Queries related to CloudSQL.

gcpdiag.queries.composer

Queries related to Composer.

gcpdiag.queries.crm

Queries related to Resource Manager (projects, resources).

gcpdiag.queries.dataflow

Queries related to Dataflow.

gcpdiag.queries.datafusion

Queries related to Data Fusion.

gcpdiag.queries.dataproc

Queries related to Dataproc.

gcpdiag.queries.dns

Queries related to DNS.

gcpdiag.queries.gae

Queries related to GCP App Engine Standard app.

gcpdiag.queries.gcb

Queries related to GCP Cloud Build instances.

gcpdiag.queries.gce

Queries related to GCP Compute Engine.

gcpdiag.queries.gcf

Queries related to GCP CloudFunctions instances.

gcpdiag.queries.gcs

Queries related to GCP Cloud Storage

gcpdiag.queries.gke

Queries related to GCP Kubernetes Engine clusters.

gcpdiag.queries.iam

Queries related to GCP Identity and Access Management.

gcpdiag.queries.interconnect

Queries related to interconnects.

gcpdiag.queries.kms

Queries related to GCP Cloud Key Management.

gcpdiag.queries.kubectl

Queries related to Kubectl plugins.

gcpdiag.queries.lb

Queries related to load balancer.

gcpdiag.queries.logs

Queries related to Cloud Logging. The main functionality is querying log entries, which is supposed to be used as follows: 1. Call query() with the logs query parameters that you need. This returns a LogsQuery object which can be used to retrieve the logs later. 2. Call execute_queries() to execute all log query jobs. Similar queries will be grouped together to minimize the number of required API calls. Multiple queries will be done in parallel, while always respecting the Cloud Logging limit of 60 queries per 60 seconds. 3. Use the entries property on the LogsQuery object to iterate over the fetched logs. Note that the entries are not guaranteed to be filtered by what was given in the "filter_str" argument to query(), you will need to filter out the entries in code as well when iterating over the log entries. Side note: this module is not called 'logging' to avoid using the same name as the standard python library for logging.

gcpdiag.queries.monitoring

Queries related to Monitoring / Metrics / MQL.

gcpdiag.queries.network

Queries related to VPC Networks.

gcpdiag.queries.networkmanagement

Queries related networkmanagement API.

gcpdiag.queries.notebooks

Queries related to GCP Vertex AI Workbench Notebooks

gcpdiag.queries.orgpolicy

Queries related to organization policy constraints.

gcpdiag.queries.osconfig

Queries related to GCP OS Config

gcpdiag.queries.pubsub

Queries related to GCP PubSub

gcpdiag.queries.quotas

Queries related to Quota.

gcpdiag.queries.vertex

Queries related to GCP Vertex AI

gcpdiag.queries.web

Fetch the html content from the given page url.