Class: DatadogAPIClient::V2::TagRuleUpdateAttributes

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

Overview

Mutable attributes of a tag rule. Each field is optional; omitting a field leaves its current value unchanged. The source of a rule cannot be changed. Tag keys, patterns, and metrics scopes have the same constraints as on creation. If the effective tag_value_patterns contains *, set required and negated to different values.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



53
54
55
# File 'lib/datadog_api_client/v2/models/tag_rule_update_attributes.rb', line 53

def additional_properties
  @additional_properties
end

#enabled ⇒ Object

Whether the rule is currently enforced.



28
29
30
# File 'lib/datadog_api_client/v2/models/tag_rule_update_attributes.rb', line 28

def enabled
  @enabled
end

#name ⇒ Object

Human-readable name for the tag rule.



31
32
33
# File 'lib/datadog_api_client/v2/models/tag_rule_update_attributes.rb', line 31

def name
  @name
end

#negated ⇒ Object

When true, the rule matches tag values that do NOT match any of the supplied patterns.



34
35
36
# File 'lib/datadog_api_client/v2/models/tag_rule_update_attributes.rb', line 34

def negated
  @negated
end

#required ⇒ Object

When true, telemetry without this tag is treated as a violation.



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

def required
  @required
end

#rule_type ⇒ Object

How the rule is enforced. blocking rejects telemetry that violates the rule. surfacing only highlights non-compliant telemetry without blocking it. RUM supports only surfacing rules.



42
43
44
# File 'lib/datadog_api_client/v2/models/tag_rule_update_attributes.rb', line 42

def rule_type
  @rule_type
end

#scope ⇒ Object

The scope the rule applies within.



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

def scope
  @scope
end

#tag_key ⇒ Object

The tag key that the rule governs.



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

def tag_key
  @tag_key
end

#tag_value_patterns ⇒ Object

One or more patterns that valid values for the tag key must match.



51
52
53
# File 'lib/datadog_api_client/v2/models/tag_rule_update_attributes.rb', line 51

def tag_value_patterns
  @tag_value_patterns
end