constants

package
v0.0.0-...-afa4f7c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2018 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const SpoonImage = `
    __________        .-"""-.
   /          ''''---' .'    \
   \__________....---. '.    /
                      '-...-'
`

SpoonImage is just an ascii spoon image for fun

View Source
const ValidAgentPathRegex = "\\.?" + ValidPathPartRegex + "(?:\\." + ValidPathPartRegex + ")*"

ValidAgentPathRegex is a pattern matching the path of a metric as reported by an agent. It must contain one or more path segments and may begin with a dot to indicate a relative path. examples: - .something - .something.else.entirely - another.thing - singularity

View Source
const ValidAgentPathRegexStrict = "^" + ValidAgentPathRegex + "$"

ValidAgentPathRegexStrict is ValidAgentPathRegex with string bounderies on either side

View Source
const ValidBasePathRegex = ValidPathPartRegex + "(?:\\." + ValidPathPartRegex + ")*"

ValidBasePathRegex is a stricter form of the ValidAgentPathRegex which must contain one or more path segments but may not start with a dot examples: - something - something.else

View Source
const ValidBasePathRegexStrict = "^" + ValidBasePathRegex + "$"

ValidBasePathRegexStrict is ValidBasePathRegex with string bounderies on either side

View Source
const ValidPathPartRegex = "[a-zA-Z0-9\\-\\_]+"

ValidPathPartRegex is the format of a part of a metric path

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL