HasKeyRule

com.netflix.atlas.core.validation.HasKeyRule
See theHasKeyRule companion object
case class HasKeyRule(key: String) extends Rule

Verifies that the tags contain a specified key. Sample config:

key = name

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Rule
class Object
trait Matchable
class Any
Show all

Members list

Value members

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 productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
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