Class: DatadogAPIClient::V2::TagRuleCreateAttributes

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

Overview

Attributes that can be supplied when creating a tag rule.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



54
55
56
# File 'lib/datadog_api_client/v2/models/tag_rule_create_attributes.rb', line 54

def additional_properties
  @additional_properties
end

#enabledObject

Whether the rule is currently enforced. Defaults to true for newly created rules.



25
26
27
# File 'lib/datadog_api_client/v2/models/tag_rule_create_attributes.rb', line 25

def enabled
  @enabled
end

#nameObject

Human-readable name for the tag rule.



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

def name
  @name
end

#negatedObject

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



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

def negated
  @negated
end

#requiredObject

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



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

def required
  @required
end

#rule_typeObject

The rule type allowed when creating a tag rule. Only surfacing is accepted at creation time.



38
39
40
# File 'lib/datadog_api_client/v2/models/tag_rule_create_attributes.rb', line 38

def rule_type
  @rule_type
end

#scopeObject

The scope the rule applies within. Typically an environment, team, or organization-level identifier used to limit where the rule is enforced.



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

def scope
  @scope
end

#sourceObject

The telemetry source that a tag rule applies to.



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

def source
  @source
end

#tag_keyObject

The tag key that the rule governs (for example, service).



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

def tag_key
  @tag_key
end

#tag_value_patternsObject

One or more patterns that valid values for the tag key must match. At least one pattern is required.



52
53
54
# File 'lib/datadog_api_client/v2/models/tag_rule_create_attributes.rb', line 52

def tag_value_patterns
  @tag_value_patterns
end