TagRule

com.netflix.atlas.core.validation.TagRule
See theTagRule companion object
trait TagRule extends Rule

Helper for rules that can be checked using a single key and value pair.

Attributes

Companion
object
Graph
Supertypes
trait Rule
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def validate(k: String, v: String): String

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

Concrete methods

override def validate(tags: SmallHashMap[String, String]): ValidationResult

Validates that the tag map matches the rule.

Validates that the tag map matches the rule.

Attributes

Definition Classes
override def validate(tags: SortedTagMap): ValidationResult

Validates that the tag map matches the rule.

Validates that the tag map matches the rule.

Attributes

Definition Classes
override def validate(id: Id): ValidationResult

Validates that the id matches the rule.

Validates that the id matches the rule.

Attributes

Definition Classes

Inherited methods

def validate(tags: Map[String, String]): ValidationResult

Validates that the tag map matches the rule.

Validates that the tag map matches the rule.

Attributes

Inherited from:
Rule