Discover Packages
github.com/rs/jplot
data
package
Version:
v1.1.6
Opens a new window with list of versions in this module.
Published: Dec 28, 2022
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
Documentation
¶
Field describe a field in a graph.
Getter is the interface used by Points to get next points.
type Points struct {
Size int
Source Getter
}
Points is a series of Size data points gathered from Source.
FromHTTP fetch data points from url every interval and keep size points.
FromStdin reads data from stdin as one JSON object per line.
Close calls Close on Source.
Get gets the points vector for name.
Run get data from the source and capture metrics following specs.
type Spec struct {
Fields []Field
}
Spec specify a list of field for a single graph.
ParseSpec parses a graph specification. Each spec is a string with one or
more JSON path separated by + with fields options prefixed with colon and
separated by commas.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.