Versions in this module Expand all Collapse all v1 v1.4.0 Sep 25, 2020 v1.3.2 Sep 21, 2020 v1.3.1 Sep 21, 2020 v1.3.0 Sep 18, 2020 v1.2.2 Sep 10, 2020 v1.2.1 Aug 18, 2020 v1.2.0 Aug 13, 2020 Changes in this version type IndexedMeasure + ToNats bool type ScalarMeasure + ToNats bool v1.1.0 Aug 6, 2020 v1.0.0 Aug 5, 2020 Changes in this version + const CheckURI + const OngoingURI + const PingJobURI + const ReportURI + const SnmpJobURI + const Version1 + const Version2c + const Version3 + var PostProcessorPat = regexp.MustCompile(`^parse-hex-[bl]e|parse-int|trim|(div|mul)[:-]\d+$`) + func GroupByOid(metrics []Metric) [][]Metric + func Names(metrics []Metric) []string + type Device struct + Active bool + Hostname string + ID int + PingFrequency int + PollingFrequency int + Tags string + func (dev *Device) UnmarshalJSON(data []byte) error + type IndexedMeasure struct + Description string + FilterMetricID NullInt64 + FilterPattern string + FilterPos int + FilterRegex *regexp.Regexp + ID int + IndexMetricID NullInt64 + IndexPos int + InvertFilterMatch bool + LabelsOnly bool + Metrics []Metric + Name string + ToInflux bool + ToKafka bool + ToProm bool + UseAlternateCommunity bool + func (x *IndexedMeasure) RemoveInactive() + func (x *IndexedMeasure) UnmarshalJSON(data []byte) error + type Metric struct + Active bool + Description string + ExportAsLabel bool + ExportedName string + ID int + IndexPattern string + IndexRegex *regexp.Regexp + LastPolledAt NullTime + Name string + Oid OID + PollingFrequency int + PostProcessors pq.StringArray + func (m *Metric) UnmarshalJSON(data []byte) error + type NullInt64 sql.NullInt64 + func (n *NullInt64) Scan(value interface{}) error + func (n *NullInt64) UnmarshalJSON(data []byte) error + func (n NullInt64) MarshalJSON() ([]byte, error) + func (n NullInt64) Value() (driver.Value, error) + type NullTime struct + Time time.Time + Valid bool + func (nt *NullTime) Scan(value interface{}) error + func (nt *NullTime) UnmarshalJSON(data []byte) error + func (nt NullTime) MarshalJSON() ([]byte, error) + func (nt NullTime) Value() (driver.Value, error) + type OID string + func (o *OID) UnmarshalJSON(value []byte) error + func (o OID) CacheKey(useAltCommunity bool) string + func (o OID) MarshalJSON() ([]byte, error) + type OngoingPolls struct + Load float64 + Requests []string + type PingHost struct + Category string + ID int + IPAddr string + Model string + Name string + Vendor string + type PingRequest struct + Hosts []PingHost + Stamp time.Time + UID string + func (r PingRequest) HostIDs() []int + func (r PingRequest) Targets() []string + type Profile struct + Category string + ID int + Model string + Vendor string + func (prof *Profile) UnmarshalJSON(data []byte) error + type ScalarMeasure struct + Description string + ID int + Metrics []Metric + Name string + ToInflux bool + ToKafka bool + ToProm bool + UseAlternateCommunity bool + func (scalar *ScalarMeasure) RemoveInactive() + type SnmpParams struct + AlternateCommunity string + AuthPasswd string + AuthProto string + AuthUser string + Community string + ConnectionCount int + DisableBulk bool + IPAddress string + Port int + PrivPasswd string + PrivProto string + Retries int + SecLevel string + Timeout int + Version string + func (s *SnmpParams) UnmarshalJSON(data []byte) error + func (s SnmpParams) GoSnmpVersion() gosnmp.SnmpVersion + type SnmpRequest struct + AgentID int + Device Device + IndexedMeasures []IndexedMeasure + ReportURL string + ScalarMeasures []ScalarMeasure + UID string + func (r *SnmpRequest) UnmarshalJSON(data []byte) error