package
Version:
v0.1.13
Opens a new window with list of versions in this module.
Published: Feb 22, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetPath returns a filesystem path where an archive should be written.
MustMarshalJSON accepts a Model object and returns marshalled JSON.
Write writes out JSON data to a file on disk.
type Model struct {
Experiment string `json:"experiment"`
Hostname string `json:"hostname"`
Metric string `json:"metric"`
Samples []Sample `json:"sample"`
}
Model represents the structure of metric for DISCO.
type Sample struct {
Timestamp int64 `json:"timestamp"`
CollectStart int64 `json:"collectstart"`
CollectEnd int64 `json:"collectend"`
Value uint64 `json:"value"`
Counter uint64 `json:"counter"`
}
Sample represents the basic structure for metric samples.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.