Class: DatadogAPIClient::V2::CustomRule

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#created_atObject

Creation timestamp



29
30
31
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 29

def created_at
  @created_at
end

#created_byObject

Creator identifier



32
33
34
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 32

def created_by
  @created_by
end

#idObject

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_revisionObject

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

#nameObject

Rule name



45
46
47
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 45

def name
  @name
end

#revisionsObject

Revision history of the rule.



48
49
50
# File 'lib/datadog_api_client/v2/models/custom_rule.rb', line 48

def revisions
  @revisions
end