Class: Google::Apis::ThreatintelligenceV1beta::CustomThreatScenarioConfig
- Inherits:
-
Object
- Object
- Google::Apis::ThreatintelligenceV1beta::CustomThreatScenarioConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/threatintelligence_v1beta/classes.rb,
lib/google/apis/threatintelligence_v1beta/representations.rb,
lib/google/apis/threatintelligence_v1beta/representations.rb
Overview
CustomThreatScenarioConfig represents a user-defined threat scenario configuration.
Instance Attribute Summary collapse
-
#compiled_lucene_query ⇒ String
Output only.
-
#document_condition ⇒ String
Required.
-
#legacy_monitor_metadata ⇒ Google::Apis::ThreatintelligenceV1beta::LegacyMetadata
Legacy metadata associated with this scenario/monitor.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomThreatScenarioConfig
constructor
A new instance of CustomThreatScenarioConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomThreatScenarioConfig
Returns a new instance of CustomThreatScenarioConfig.
535 536 537 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 535 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compiled_lucene_query ⇒ String
Output only. The compiled Lucene query string.
Corresponds to the JSON property compiledLuceneQuery
522 523 524 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 522 def compiled_lucene_query @compiled_lucene_query end |
#document_condition ⇒ String
Required. The condition driving the scenario, stored as a stringified JSON.
This is used to query/filter documents.
Corresponds to the JSON property documentCondition
528 529 530 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 528 def document_condition @document_condition end |
#legacy_monitor_metadata ⇒ Google::Apis::ThreatintelligenceV1beta::LegacyMetadata
Legacy metadata associated with this scenario/monitor.
Corresponds to the JSON property legacyMonitorMetadata
533 534 535 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 533 def @legacy_monitor_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
540 541 542 543 544 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 540 def update!(**args) @compiled_lucene_query = args[:compiled_lucene_query] if args.key?(:compiled_lucene_query) @document_condition = args[:document_condition] if args.key?(:document_condition) @legacy_monitor_metadata = args[:legacy_monitor_metadata] if args.key?(:legacy_monitor_metadata) end |