Documentation ¶
Index ¶
Constants ¶
const SpoonImage = `
__________ .-"""-.
/ ''''---' .' \
\__________....---. '. /
'-...-'
`
SpoonImage is just an ascii spoon image for fun
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
const ValidAgentPathRegexStrict = "^" + ValidAgentPathRegex + "$"
ValidAgentPathRegexStrict is ValidAgentPathRegex with string bounderies on either side
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
const ValidBasePathRegexStrict = "^" + ValidBasePathRegex + "$"
ValidBasePathRegexStrict is ValidBasePathRegex with string bounderies on either side
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.