Class: DatadogAPIClient::V2::Selectors

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/selectors.rb

Overview

Selectors are used to filter security issues for which notifications should be generated. Users can specify rule severities, rule types, a query to filter security issues on tags and attributes, and the trigger source. Only the trigger_source field is required.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



39
40
41
# File 'lib/datadog_api_client/v2/models/selectors.rb', line 39

def additional_properties
  @additional_properties
end

#queryObject

The query is composed of one or several key:value pairs, which can be used to filter security issues on tags and attributes.



27
28
29
# File 'lib/datadog_api_client/v2/models/selectors.rb', line 27

def query
  @query
end

#rule_typesObject

Security rule types used as filters in security rules.



30
31
32
# File 'lib/datadog_api_client/v2/models/selectors.rb', line 30

def rule_types
  @rule_types
end

#severitiesObject

The security rules severities to consider.



33
34
35
# File 'lib/datadog_api_client/v2/models/selectors.rb', line 33

def severities
  @severities
end

#trigger_sourceObject

The type of security issues on which the rule applies. Notification rules based on security signals need to use the trigger source "security_signals", while notification rules based on security vulnerabilities need to use the trigger source "security_findings".



37
38
39
# File 'lib/datadog_api_client/v2/models/selectors.rb', line 37

def trigger_source
  @trigger_source
end