golint monitor
parent
13e3dd5828
commit
faf153d233
|
@ -31,7 +31,7 @@ type Diagnostics struct {
|
|||
Rows [][]interface{}
|
||||
}
|
||||
|
||||
// NewDiagnostic initialises a new Diagnostics with the specified columns.
|
||||
// NewDiagnostics initialises a new Diagnostics with the specified columns.
|
||||
func NewDiagnostics(columns []string) *Diagnostics {
|
||||
return &Diagnostics{
|
||||
Columns: columns,
|
||||
|
|
|
@ -129,8 +129,10 @@ func (m *Monitor) Open() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// Enabled returns true if any underlying Config is Enabled.
|
||||
func (m *Monitor) Enabled() bool { return m.storeEnabled }
|
||||
|
||||
// WritePoints writes the points the monitor gathers.
|
||||
func (m *Monitor) WritePoints(p models.Points) error {
|
||||
if !m.storeEnabled {
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue