# Functions
CountMetricParts counts the number of segments in the given metric string.
DropLastMetricPart returns the metric string without the last segment.
ExtendedGlobToRegexPattern converts a graphite-style glob into a regex pattern with extended options.
ExtractNthMetricPart returns the nth part of the metric string.
ExtractNthStringPart returns the nth part of the metric string.
FormatTime translates a time.Time until a Graphite from/until string.
GlobToRegexPattern converts a graphite-style glob into a regex pattern, with a boolean indicating if the glob is regexed or not.
ParseDuration parses a duration.
ParseJSONResponse takes a byteBuffer and returns Results.
ParseOffset parses a time offset (like a duration, but can be 0 or positive).
ParseRenderResultsPickle parses a byte stream containing a pickle render response.
ParseTime translates a Graphite from/until string into a timestamp relative to the provide time.
ParseTimeReference takes a Graphite time reference ("8am", "today", "monday") and returns a time.Time.
RespondWithPickle sends a python pickle response.
TagIndex returns the index given the tag.
TagName gets a preallocated or generate a tag name for the given graphite path index.
TagNameID gets a preallocated or generate a tag name ID for the given graphite path index.
# Constants
MatchAllPattern that is used to match all metrics.
MIMETypeApplicationPickle defines the MIME type for application/pickle content.
ValidIdentifierRunes contains all the runes allowed in a graphite identifier.
# Variables
Prefix is the prefix for graphite metrics.
# Structs
A Datapoint is a Timestamp/Value pair representing a single value in a target.
FindResultsCompleterJSON is graphite's "completer" format for /metrics/find results sample: {"metrics": [...]}.
FindResultsPickle is graphite's pickle format for /metrics/find results.
FindResultsTreeJSON is graphite's "treeJSON" format for /metrics/find results.
GlobOptions allows for matching everything.
MetricsPathMetadata is an internal element of graphite's "completer" format for /metrics/find results.
RenderResultsPickle is an alternate form of graphite result, consisting of a start time, an end time, a step size (in seconds), and values for each step.
A RenderTarget is the result of rendering a given target.
# Type aliases
A Datavalue is a float64 which knows how to marshal and unmarshal itself as Graphite expects (NaNs becomes nulls).
RenderDatapoints are the set of datapoints returned from Graphite rendering.
RenderResults are the results from a render API call.
Results are a map of graphite target names to their corresponding datapoints.
A Timestamp is a time.Time that knows how to marshal and unmarshal itself as Graphite expects (as seconds since Unix epoch).