Discover Packages
github.com/VictoriaMetrics/VictoriaMetrics
app
vmalert
templates
package
Version:
v1.6.1-victorialogs
Opens a new window with list of versions in this module.
Published: Jan 16, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
FuncsWithQuery returns a function map that depends on metric data
GetWithFuncs returns a copy of current template with additional FuncMap
provided with funcs argument
Load func loads templates from multiple globs specified in pathPatterns and either
sets them directly to current template if it's the first init;
or sets replacement templates and wait for Reload() to replace current template with replacement.
Reload func replaces current template with a replacement template
which was set by Load with override=false
QueryFn is used to wrap a call to datasource into simple-to-use function
for templating functions.
Time is the number of milliseconds since the epoch
(1970-01-01 00:00 UTC) excluding leap seconds.
Time returns the time.Time representation of t.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.