Class: DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes
- Defined in:
- lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb
Overview
A Cloud Workload Security Agent rule returned by the API.
Instance Attribute Summary collapse
-
#category ⇒ Object
The category of the Agent rule.
-
#creation_date ⇒ Object
When the Agent rule was created, timestamp in milliseconds.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#default_rule ⇒ Object
Whether the rule is included by default.
-
#description ⇒ Object
The description of the Agent rule.
-
#enabled ⇒ Object
Whether the Agent rule is enabled.
-
#expression ⇒ Object
The SECL expression of the Agent rule.
-
#name ⇒ Object
The name of the Agent rule.
-
#updated_at ⇒ Object
When the Agent rule was last updated, timestamp in milliseconds.
-
#updater ⇒ Object
Returns the value of attribute updater.
-
#version ⇒ Object
The version of the Agent rule.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CloudWorkloadSecurityAgentRuleAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ CloudWorkloadSecurityAgentRuleAttributes
Initializes the object
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 108 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CloudWorkloadSecurityAgentRuleAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'category') self.category = attributes[:'category'] end if attributes.key?(:'creation_date') self.creation_date = attributes[:'creation_date'] end if attributes.key?(:'creator') self.creator = attributes[:'creator'] end if attributes.key?(:'default_rule') self.default_rule = attributes[:'default_rule'] end if attributes.key?(:'description') self.description = attributes[:'description'] end if attributes.key?(:'enabled') self.enabled = attributes[:'enabled'] end if attributes.key?(:'expression') self.expression = attributes[:'expression'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] end if attributes.key?(:'updater') self.updater = attributes[:'updater'] end if attributes.key?(:'version') self.version = attributes[:'version'] end end |
Instance Attribute Details
#category ⇒ Object
The category of the Agent rule.
27 28 29 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 27 def category @category end |
#creation_date ⇒ Object
When the Agent rule was created, timestamp in milliseconds.
30 31 32 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 30 def creation_date @creation_date end |
#creator ⇒ Object
Returns the value of attribute creator.
32 33 34 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 32 def creator @creator end |
#default_rule ⇒ Object
Whether the rule is included by default.
35 36 37 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 35 def default_rule @default_rule end |
#description ⇒ Object
The description of the Agent rule.
38 39 40 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 38 def description @description end |
#enabled ⇒ Object
Whether the Agent rule is enabled.
41 42 43 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 41 def enabled @enabled end |
#expression ⇒ Object
The SECL expression of the Agent rule.
44 45 46 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 44 def expression @expression end |
#name ⇒ Object
The name of the Agent rule.
47 48 49 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 47 def name @name end |
#updated_at ⇒ Object
When the Agent rule was last updated, timestamp in milliseconds.
50 51 52 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 50 def updated_at @updated_at end |
#updater ⇒ Object
Returns the value of attribute updater.
52 53 54 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 52 def updater @updater end |
#version ⇒ Object
The version of the Agent rule.
55 56 57 |
# File 'lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_attributes.rb', line 55 def version @version end |