Package

com.netflix.atlas.core

validation

Permalink

package validation

Visibility
  1. Public
  2. All

Type Members

  1. case class HasKeyRule(key: String) extends Rule with Product with Serializable

    Permalink

    Verifies that the tags contain a specified key.

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

    key = name

  2. case class KeyLengthRule(minLength: Int, maxLength: Int) extends TagRule with Product with Serializable

    Permalink

    Verifies that the keys are within the specified length bounds.

    Verifies that the keys are within the specified length bounds. Sample config:

    min-length = 2 max-length = 60

  3. case class KeyPatternRule(pattern: Pattern) extends TagRule with Product with Serializable

    Permalink

    Verifies that the keys match a specified pattern.

    Verifies that the keys match a specified pattern. Sample config:

    pattern = "^[-_.a-zA-Z0-9]{4,60}$"

  4. case class MaxUserTagsRule(limit: Int) extends Rule with Product with Serializable

    Permalink

    Verifies that the number of custom user tags are within a specified limit.

    Verifies that the number of custom user tags are within a specified limit. Sample config:

    limit = 10

  5. case class ReservedKeyRule(prefix: String, allowedKeys: Set[String]) extends TagRule with Product with Serializable

    Permalink

    Verifies that only allowed keys are used for reserved prefixes.

    Verifies that only allowed keys are used for reserved prefixes. Reserved prefixes are used to prevent user defined tags from overlapping with common infrastructure tagging that should be consistent for all data. Sample config:

    prefix = "nf." allowed-keys = ["app", "cluster"]

    This config would only allow "nf.app" and "nf.cluster" with a prefix of "nf.".

  6. trait Rule extends AnyRef

    Permalink

    Base type for validation rules.

  7. trait TagRule extends Rule

    Permalink

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

  8. case class ValidCharactersRule(defaultSet: AsciiSet, overrides: Map[String, AsciiSet]) extends TagRule with Product with Serializable

    Permalink

    Verifies that the keys and values only use the set of ASCII characters specificied in the config.

    Verifies that the keys and values only use the set of ASCII characters specificied in the config. By default it will be alpha-numeric, underscore, dash, and period. Sample config:

    default-pattern = "-._A-Za-z0-9" overrides = [ { key = "nf.cluster" value = "-._A-Za-z0-9~" }, { key = "nf.asg" value = "-._A-Za-z0-9~" } ]

  9. sealed trait ValidationResult extends AnyRef

    Permalink
  10. case class ValueLengthRule(minLength: Int, maxLength: Int) extends TagRule with Product with Serializable

    Permalink

    Verifies that the values are within the specified length bounds.

    Verifies that the values are within the specified length bounds. Sample config:

    min-length = 2 max-length = 60

  11. case class ValuePatternRule(pattern: Pattern) extends TagRule with Product with Serializable

    Permalink

    Verifies that the values match a specified pattern.

    Verifies that the values match a specified pattern. Sample config:

    pattern = "^[-_.a-zA-Z0-9]{4,60}$"

Value Members

  1. object HasKeyRule extends Serializable

    Permalink
  2. object KeyLengthRule extends Serializable

    Permalink
  3. object KeyPatternRule extends Serializable

    Permalink
  4. object MaxUserTagsRule extends Serializable

    Permalink
  5. object ReservedKeyRule extends Serializable

    Permalink
  6. object Rule

    Permalink
  7. object ValidCharactersRule extends Serializable

    Permalink
  8. object ValidationResult

    Permalink
  9. object ValueLengthRule extends Serializable

    Permalink
  10. object ValuePatternRule extends Serializable

    Permalink

Ungrouped