Class: Google::Apis::AlloydbV1alpha::ObservabilityInstanceConfig

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

Overview

Observability Instance specific configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ObservabilityInstanceConfig

Returns a new instance of ObservabilityInstanceConfig.



1828
1829
1830
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1828

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Observability feature status for an instance. This is a read-only flag and modifiable only by producer API. This flag is turned "off" by default. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1776
1777
1778
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1776

def enabled
  @enabled
end

#max_query_string_lengthFixnum

Query string length. The default value is 10k. Corresponds to the JSON property maxQueryStringLength

Returns:

  • (Fixnum)


1782
1783
1784
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1782

def max_query_string_length
  @max_query_string_length
end

#preserve_commentsBoolean Also known as: preserve_comments?

Preserve comments in query string for an instance. This flag is turned "off" by default. Corresponds to the JSON property preserveComments

Returns:

  • (Boolean)


1788
1789
1790
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1788

def preserve_comments
  @preserve_comments
end

#query_plans_per_minuteFixnum

Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 to 20 is considered valid. Corresponds to the JSON property queryPlansPerMinute

Returns:

  • (Fixnum)


1796
1797
1798
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1796

def query_plans_per_minute
  @query_plans_per_minute
end

#record_application_tagsBoolean Also known as: record_application_tags?

Record application tags for an instance. This flag is turned "off" by default. Corresponds to the JSON property recordApplicationTags

Returns:

  • (Boolean)


1801
1802
1803
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1801

def record_application_tags
  @record_application_tags
end

#track_active_queriesBoolean Also known as: track_active_queries?

Track actively running queries on the instance. If not set, this flag is "off" by default. Corresponds to the JSON property trackActiveQueries

Returns:

  • (Boolean)


1808
1809
1810
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1808

def track_active_queries
  @track_active_queries
end

#track_wait_event_typesBoolean Also known as: track_wait_event_types?

Output only. Track wait event types during query execution for an instance. This flag is turned "on" by default but tracking is enabled only after observability enabled flag is also turned on. This is read-only flag and only modifiable by producer API. Corresponds to the JSON property trackWaitEventTypes

Returns:

  • (Boolean)


1817
1818
1819
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1817

def track_wait_event_types
  @track_wait_event_types
end

#track_wait_eventsBoolean Also known as: track_wait_events?

Track wait events during query execution for an instance. This flag is turned " on" by default but tracking is enabled only after observability enabled flag is also turned on. Corresponds to the JSON property trackWaitEvents

Returns:

  • (Boolean)


1825
1826
1827
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1825

def track_wait_events
  @track_wait_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 1833

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @max_query_string_length = args[:max_query_string_length] if args.key?(:max_query_string_length)
  @preserve_comments = args[:preserve_comments] if args.key?(:preserve_comments)
  @query_plans_per_minute = args[:query_plans_per_minute] if args.key?(:query_plans_per_minute)
  @record_application_tags = args[:record_application_tags] if args.key?(:record_application_tags)
  @track_active_queries = args[:track_active_queries] if args.key?(:track_active_queries)
  @track_wait_event_types = args[:track_wait_event_types] if args.key?(:track_wait_event_types)
  @track_wait_events = args[:track_wait_events] if args.key?(:track_wait_events)
end