Class: DatadogAPIClient::V2::CustomRule
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::CustomRule
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/custom_rule.rb
Overview
A custom static analysis rule within a ruleset, as supplied in a create or update
request. Nested rules are sent flat, without a data/type/attributes envelope.
id and name are client-supplied and must match each other. The remaining members
are server-assigned and read-only; they are declared so that a ruleset previously
read back can be supplied unchanged.
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Creation timestamp.
-
#created_by ⇒ Object
Creator identifier.
-
#id ⇒ Object
readonly
Rule identifier, which is the same as the rule name.
-
#last_revision ⇒ Object
A revision of a custom static analysis rule as embedded in a rule supplied by a create or update request.
-
#name ⇒ Object
readonly
Rule name.
-
#revisions ⇒ Object
Revision history of the rule.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#created_at ⇒ Object
Creation timestamp
29 30 31 |
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 29 def created_at @created_at end |
#created_by ⇒ Object
Creator identifier
32 33 34 |
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 32 def created_by @created_by end |
#id ⇒ Object
Rule identifier, which is the same as the rule name.
35 36 37 |
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 35 def id @id end |
#last_revision ⇒ Object
A revision of a custom static analysis rule as embedded in a rule supplied by a create
or update request. Nested revisions are sent flat, without a data/type/attributes
envelope. id, version_id, checksum, created_at and created_by are server-assigned
and read-only; they are declared so that a ruleset previously read back can be supplied
unchanged.
42 43 44 |
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 42 def last_revision @last_revision end |
#name ⇒ Object
Rule name
45 46 47 |
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 45 def name @name end |
#revisions ⇒ Object
Revision history of the rule.
48 49 50 |
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 48 def revisions @revisions end |