# Functions
IsSeriesByTag returns true if the given query is a `seriesByTag` query.
No description provided by the author
NewQueryFromStrings parses a list of graphite tag expressions as used by the graphite `seriesByTag` function.tag expression definitions: https://graphite.readthedocs.io/en/latest/tags.html#queryingseriesByTag documentation: https://graphite.readthedocs.io/en/latest/functions.html#graphite.render.functions.seriesByTagSome possible tag expressions are: "status=200", "path!=/", "name=~cpu\..*" (`name` is a special tag which is automatically applied to the metric name).
ParseExpression returns an expression that's been generated from the given string, in case of an error the error gets returned as the second value.
ParseExpressions parses a list of graphite tag expressions (as used by the `seriesByTag` function).tag expression definitions: https://graphite.readthedocs.io/en/latest/tags.html#queryingseriesBytTag documentation: https://graphite.readthedocs.io/en/latest/functions.html#graphite.render.functions.seriesByTagSome possible tag expressions are: "status=200", "path!=/", "name=~cpu\..*" (`name` is a special tag which is automatically applied to the metric name).
No description provided by the author
ParseSeriesByTagExpression takes a `seriesByTag` query which includes multiple tag query expressions example query: "seriesByTag('a=b', 'c=d', 'e!=~f.*')" it then returns a slice of strings where each string is one of the expressions, and an error which is non-nil if there was an error in the expression parsing and validation.
No description provided by the author
ParseTags parses a list of key value pairs into a list of Tags.ParseTags([]string{"key=value", "name=whatever"}) -> Tags{{Key: "key", Value: "value"}, {Key: "name", Value: "whatever"}}}.
No description provided by the author
# Constants
=.
it has been decided by the filter that this metric does not end up in the result set.
<tag>!="" specified tag must be present.
=~ regular expression.
special case of expression that matches every metric (f.e.
special case of expression that matches no metric (f.e.
__tag=~ relies on special key __tag.
no decision has been made, because the decision might change depending on what other indexes defines.
!=.
<tag>="" specified tag must not be present.
!=~.
the filter has passed.
^= exact prefix, not regex.
__tag^= exact prefix with tag.
# Variables
No description provided by the author
No description provided by the author
the function we use to get the hash for hashing the meta records it can be replaced for mocking in tests.
# Structs
No description provided by the author
Query is a set of graphite tag expressions as used by the graphite `seriesByTag` function.tag expression definitions: https://graphite.readthedocs.io/en/latest/tags.html#queryingseriesByTag documentation: https://graphite.readthedocs.io/en/latest/functions.html#graphite.render.functions.seriesByTag.
No description provided by the author
# Interfaces
Expression represents a single Graphite tag expression (see documentation for `ParseExpressions`).
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MetricDefinitionFilter takes a metric name together with its tags and returns a FilterDecision.
go:generate msgp.