Class: Google::Apis::LoggingV2::BigQueryOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/logging_v2/classes.rb,
generated/google/apis/logging_v2/representations.rb,
generated/google/apis/logging_v2/representations.rb

Overview

Options that change functionality of a sink exporting data to BigQuery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BigQueryOptions

Returns a new instance of BigQueryOptions



39
40
41
# File 'generated/google/apis/logging_v2/classes.rb', line 39

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#use_partitioned_tablesBoolean Also known as: use_partitioned_tables?

Optional. Whether to use BigQuery's partition tables. By default, 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 has to be used instead. In both cases, tables are sharded based on UTC timezone. Corresponds to the JSON property usePartitionedTables

Returns:

  • (Boolean)


36
37
38
# File 'generated/google/apis/logging_v2/classes.rb', line 36

def use_partitioned_tables
  @use_partitioned_tables
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44
45
46
# File 'generated/google/apis/logging_v2/classes.rb', line 44

def update!(**args)
  @use_partitioned_tables = args[:use_partitioned_tables] if args.key?(:use_partitioned_tables)
end