1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// SPDX-License-Identifier: GPL-3.0-or-later package freeradius import ( "github.com/netdata/go.d.plugin/pkg/stm" ) func (f *FreeRADIUS) collect() (map[string]int64, error) { status, err := f.client.Status() if err != nil { return nil, err } return stm.ToMap(status), nil }