apache_beam.io.gcp.resource_identifiers module
Helper functions to generate resource labels strings for GCP entitites
These can be used on MonitoringInfo ‘resource’ labels.
- See example entities:
https://s.apache.org/beam-gcp-debuggability
For GCP entities, populate the RESOURCE label with the aip.dev/122 format:
https://google.aip.dev/122
- If an official GCP format does not exist, try to use the following format.
//whatever.googleapis.com/parents/{parentId}/whatevers/{whateverId}
-
apache_beam.io.gcp.resource_identifiers.BigQueryTable(project_id, dataset_id, table_id)[source]
-
apache_beam.io.gcp.resource_identifiers.GoogleCloudStorageBucket(bucket_id)[source]
-
apache_beam.io.gcp.resource_identifiers.DatastoreNamespace(project_id, namespace_id)[source]
-
apache_beam.io.gcp.resource_identifiers.SpannerTable(project_id, database_id, table_id)[source]
-
apache_beam.io.gcp.resource_identifiers.SpannerSqlQuery(project_id, query_name)[source]
-
apache_beam.io.gcp.resource_identifiers.BigtableTable(project_id, instance_id, table_id)[source]