Class: Google::Apis::LoggingV2::BigQueryOptions
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::BigQueryOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/representations.rb
Overview
Options that change functionality of a sink exporting data to BigQuery.
Instance Attribute Summary collapse
-
#use_partitioned_tables ⇒ Boolean
(also: #use_partitioned_tables?)
Optional.
-
#uses_timestamp_column_partitioning ⇒ Boolean
(also: #uses_timestamp_column_partitioning?)
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BigQueryOptions
constructor
A new instance of BigQueryOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BigQueryOptions
Returns a new instance of BigQueryOptions.
145 146 147 |
# File 'lib/google/apis/logging_v2/classes.rb', line 145 def initialize(**args) update!(**args) end |
Instance Attribute Details
#use_partitioned_tables ⇒ Boolean Also known as: use_partitioned_tables?
Optional. Whether to use BigQuery's partition tables (https://cloud.google.com/
bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated
tables based on the log entries' timestamps, e.g. syslog_20170523. With
partitioned tables the date suffix is no longer present and special query
syntax (https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
has to be used instead. In both cases, tables are sharded based on UTC
timezone.
Corresponds to the JSON property usePartitionedTables
132 133 134 |
# File 'lib/google/apis/logging_v2/classes.rb', line 132 def use_partitioned_tables @use_partitioned_tables end |
#uses_timestamp_column_partitioning ⇒ Boolean Also known as: uses_timestamp_column_partitioning?
Output only. True if new timestamp column based partitioning is in use, false
if legacy ingress-time partitioning is in use.All new sinks will have this
field set true and will use timestamp column based partitioning. If
use_partitioned_tables is false, this value has no meaning and will be false.
Legacy sinks using partitioned tables will have this field set to false.
Corresponds to the JSON property usesTimestampColumnPartitioning
142 143 144 |
# File 'lib/google/apis/logging_v2/classes.rb', line 142 def @uses_timestamp_column_partitioning end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
150 151 152 153 |
# File 'lib/google/apis/logging_v2/classes.rb', line 150 def update!(**args) @use_partitioned_tables = args[:use_partitioned_tables] if args.key?(:use_partitioned_tables) @uses_timestamp_column_partitioning = args[:uses_timestamp_column_partitioning] if args.key?(:uses_timestamp_column_partitioning) end |