Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationToString ¶
DurationToString formats a time.Duration as a string with the assumption that a year always has 365 days and a day always has 24h. (The former doesn't work in leap years, the latter is broken by DST switches, not to speak about leap seconds, but those are not even treated properly by the duration strings in the standard library.)
func GraphLinkForExpression ¶
GraphLinkForExpression creates an escaped relative link to the graph view of the provided expression.
func SanitizeLabelName ¶
SanitizeLabelName replaces anything that doesn't match client_label.LabelNameRE with an underscore.
func StringToDuration ¶
StringToDuration parses a string into a time.Duration, assuming that a year always has 365d, a week 7d, a day 24h. See DurationToString for problems with that.
func TableLinkForExpression ¶
TableLinkForExpression creates an escaped relative link to the table view of the provided expression.
Types ¶
This section is empty.