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.



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

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)


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

def sql_query_text
  @sql_query_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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