Class: Google::Apis::AlertcenterV1beta1::ReportingRule

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportingRule

Returns a new instance of ReportingRule.



1460
1461
1462
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1460

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

Instance Attribute Details

#alert_detailsString

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.

Returns:

  • (String)


1445
1446
1447
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1445

def alert_details
  @alert_details
end

#nameString

Rule name Corresponds to the JSON property name

Returns:

  • (String)


1450
1451
1452
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1450

def name
  @name
end

#queryString

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.

Returns:

  • (String)


1458
1459
1460
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1458

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1465
1466
1467
1468
1469
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1465

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