mirror of
https://github.com/unpoller/unpoller.git
synced 2026-03-31 06:24:19 -04:00
make dumper work
This commit is contained in:
@@ -17,6 +17,7 @@ var (
|
||||
type Input interface {
|
||||
Initialize(Logger) error // Called once on startup to initialize the plugin.
|
||||
Metrics() (*Metrics, error) // Called every time new metrics are requested.
|
||||
RawMetrics(Filter) ([]byte, error)
|
||||
}
|
||||
|
||||
// InputPlugin describes an input plugin's consumable interface.
|
||||
@@ -25,6 +26,12 @@ type InputPlugin struct {
|
||||
Input
|
||||
}
|
||||
|
||||
// Filter is used for raw metrics filters.
|
||||
type Filter struct {
|
||||
Type string
|
||||
Term string
|
||||
}
|
||||
|
||||
// NewInput creates a metric input. This should be called by input plugins
|
||||
// init() functions.
|
||||
func NewInput(i *InputPlugin) {
|
||||
|
||||
Reference in New Issue
Block a user