com.netflix.atlas.core.validation.ValueLengthRule
See theValueLengthRule companion object
case class ValueLengthRule(minLength: Int, maxLength: Int) extends TagRule
Verifies that the values are within the specified length bounds. Sample config:
min-length = 2
max-length = 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