class Google::Apis::SqladminV1::InsightsConfig

Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration.

Attributes

query_insights_enabled[RW]

Whether Query Insights feature is enabled. Corresponds to the JSON property `queryInsightsEnabled` @return [Boolean]

query_insights_enabled?[RW]

Whether Query Insights feature is enabled. Corresponds to the JSON property `queryInsightsEnabled` @return [Boolean]

query_plans_per_minute[RW]

Number of query execution plans captured by Insights per minute for all queries combined. Default is 5. Corresponds to the JSON property `queryPlansPerMinute` @return [Fixnum]

query_string_length[RW]

Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256- 4500 bytes. Query length more than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database. Corresponds to the JSON property `queryStringLength` @return [Fixnum]

record_application_tags[RW]

Whether Query Insights will record application tags from query when enabled. Corresponds to the JSON property `recordApplicationTags` @return [Boolean]

record_application_tags?[RW]

Whether Query Insights will record application tags from query when enabled. Corresponds to the JSON property `recordApplicationTags` @return [Boolean]

record_client_address[RW]

Whether Query Insights will record client address when enabled. Corresponds to the JSON property `recordClientAddress` @return [Boolean]

record_client_address?[RW]

Whether Query Insights will record client address when enabled. Corresponds to the JSON property `recordClientAddress` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sqladmin_v1/classes.rb, line 1674
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sqladmin_v1/classes.rb, line 1679
def update!(**args)
  @query_insights_enabled = args[:query_insights_enabled] if args.key?(:query_insights_enabled)
  @query_plans_per_minute = args[:query_plans_per_minute] if args.key?(:query_plans_per_minute)
  @query_string_length = args[:query_string_length] if args.key?(:query_string_length)
  @record_application_tags = args[:record_application_tags] if args.key?(:record_application_tags)
  @record_client_address = args[:record_client_address] if args.key?(:record_client_address)
end