Class: Google::Apis::LoggingV2::OpsAnalyticsQuery

Inherits:
Object
  • Object
show all
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

Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.Preview: This is a preview feature and may be subject to change before final release.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OpsAnalyticsQuery

Returns a new instance of OpsAnalyticsQuery.



3175
3176
3177
# File 'lib/google/apis/logging_v2/classes.rb', line 3175

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

Instance Attribute Details

#sql_query_textString

Required. A logs analytics SQL query, which generally follows BigQuery format. This is the SQL query that appears in the Log Analytics UI's query editor. Corresponds to the JSON property sqlQueryText

Returns:

  • (String)


3173
3174
3175
# File 'lib/google/apis/logging_v2/classes.rb', line 3173

def sql_query_text
  @sql_query_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3180
3181
3182
# File 'lib/google/apis/logging_v2/classes.rb', line 3180

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