Class: Google::Apis::AlertcenterV1beta1::ReportingRule
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::ReportingRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alertcenter_v1beta1/classes.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb
Overview
Alerts from Reporting Rules configured by Admin.
Instance Attribute Summary collapse
-
#alert_details ⇒ String
Any other associated alert details, for example, AlertConfiguration.
-
#name ⇒ String
Rule name Corresponds to the JSON property
name. -
#query ⇒ String
Alert Rule query Sample Query query
conditionfilterexpected_application_id: 777491262838 expected_event_name: " indexable_content_change" filter_op: INconjunction_operator: ORCorresponds to the JSON propertyqueryNOTE: Values are automatically base64 encoded/decoded in the client library.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReportingRule
constructor
A new instance of ReportingRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReportingRule
Returns a new instance of ReportingRule.
1318 1319 1320 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1318 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alert_details ⇒ String
Any other associated alert details, for example, AlertConfiguration.
Corresponds to the JSON property alertDetails
NOTE: Values are automatically base64 encoded/decoded in the client library.
1303 1304 1305 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1303 def alert_details @alert_details end |
#name ⇒ String
Rule name
Corresponds to the JSON property name
1308 1309 1310 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1308 def name @name end |
#query ⇒ String
Alert Rule query Sample Query query condition filter
expected_application_id: 777491262838 expected_event_name: "
indexable_content_change" filter_op: IN conjunction_operator: OR
Corresponds to the JSON property query
NOTE: Values are automatically base64 encoded/decoded in the client library.
1316 1317 1318 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1316 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1323 1324 1325 1326 1327 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1323 def update!(**args) @alert_details = args[:alert_details] if args.key?(:alert_details) @name = args[:name] if args.key?(:name) @query = args[:query] if args.key?(:query) end |