Discover Packages
github.com/loadimpact/k6
output
json
package
Version:
v0.31.1
Opens a new window with list of versions in this module.
Published: Mar 16, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
New returns a new JSON output.
type Envelope struct {
Type string `json:"type"`
Data interface{} `json:"data"`
Metric string `json:"metric,omitempty"`
}
Envelope is the data format we use to export both metrics and metric samples
to the JSON file.
WrapSample is used to package a metric sample in a way that's nice to export
to JSON.
Output funnels all passed metrics to an (optionally gzipped) JSON file.
Description returns a human-readable description of the output.
Start tries to open the specified JSON file and starts the goroutine for
metric flushing. If gzip encoding is specified, it also handles that.
Stop flushes any remaining metrics and stops the goroutine.
Sample is the data format for metric sample data in the JSON file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.