package
Version:
v0.0.0-...-cf3610b
Opens a new window with list of versions in this module.
Published: Dec 19, 2023
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
¶
New creates an instance of bravobeat.
type Match struct {
Match string `json:"match,omitempty"`
Interval int `json:"metrics_interval,omitempty"`
}
type Message struct {
Version string `json:"jsonrpc"`
Method string `json:"method"`
Id int `json:"id"`
Params *SendParams `json:"params,omitempty"`
}
type Metric struct {
Host string `json:"host,omitempty"`
Plugin string `json:"plugin,omitempty"`
Instance string `json:"instance,omitempty"`
Type string `json:"type,omitempty"`
Value interface{} `json:"value,omitempty"`
}
type Metrics struct {
Metrics []string `json:"metrics,omitempty"`
Interval int `json:"metrics_interval,omitempty"`
}
type RespParams struct {
Metrics map[string]Value `json:"metrics"`
Interval int `json:"interval"`
}
type Response struct {
Version string `json:"jsonrpc"`
Method string `json:"method"`
Params *RespParams `json:"params,omitempty"`
}
type Value struct {
Timestamp string `json:"timestamp"`
Value float64 `json:"value"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.