Class: Google::Apis::AlertcenterV1beta1::MatchInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/alertcenter_v1beta1/classes.rb,
generated/google/apis/alertcenter_v1beta1/representations.rb,
generated/google/apis/alertcenter_v1beta1/representations.rb

Overview

Proto that contains match information from the condition part of the rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MatchInfo

Returns a new instance of MatchInfo.



1074
1075
1076
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 1074

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

Instance Attribute Details

#predefined_detectorGoogle::Apis::AlertcenterV1beta1::PredefinedDetectorInfo

Detector provided by Google. Corresponds to the JSON property predefinedDetector



1067
1068
1069
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 1067

def predefined_detector
  @predefined_detector
end

#user_defined_detectorGoogle::Apis::AlertcenterV1beta1::UserDefinedDetectorInfo

Detector defined by administrators. Corresponds to the JSON property userDefinedDetector



1072
1073
1074
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 1072

def user_defined_detector
  @user_defined_detector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1079
1080
1081
1082
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 1079

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