com.netflix.atlas.core.validation.KeyPatternRule
See theKeyPatternRule companion object
case class KeyPatternRule(pattern: Pattern) extends TagRule
Verifies that the keys match a specified pattern. Sample config:
pattern = "^[-_.a-zA-Z0-9]{4,60}$"
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Check the key/value pair and return null
if it is valid or a reason string if there is a validation failure. The null
type for success is used to avoid allocations or other overhead since the validation checks tend to be a hot path.
Check the key/value pair and return null
if it is valid or a reason string if there is a validation failure. The null
type for success is used to avoid allocations or other overhead since the validation checks tend to be a hot path.
Attributes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Validates that the tag map matches the rule.
In this article