Class: Google::Apis::LoggingV2::OpsAnalyticsQuery
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::OpsAnalyticsQuery
- 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
-
#sql_query_text ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OpsAnalyticsQuery
constructor
A new instance of OpsAnalyticsQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_text ⇒ String
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
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 |