Documentation ¶
Index ¶
- func GetDefaultOutput(sensors []*config.Sensor) string
- func GetGNMISubscriptions(sensors []*config.Sensor) []*gpb.Subscription
- func GetKey(buf *bytes.Buffer, path []*gpb.PathElem) (string, map[string]string)
- func GetPathOutput(sensors []*config.Sensor) map[string]string
- func GetValue(tv *gpb.TypedValue) (interface{}, error)
- func MergeLabels(keyLabels, prefixLabels map[string]string, prefix string) map[string]string
- type DataStore
- type DeviceFilterOpt
- type DeviceFilterOpts
- type ExtDSChan
- type ExtDataStore
- type NMI
- type NMIFactory
- type Registrar
- type Telemetry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultOutput ¶
GetDefaultOutput returns default output if available.
func GetGNMISubscriptions ¶
func GetGNMISubscriptions(sensors []*config.Sensor) []*gpb.Subscription
GetGNMISubscriptions return gNMI subscription based on the sensors.
func GetPathOutput ¶
GetPathOutput returns path to output map.
func GetValue ¶
func GetValue(tv *gpb.TypedValue) (interface{}, error)
GetValue returns telemetry value.
Types ¶
type DataStore ¶
type DataStore map[string]interface{}
DataStore represents a metric and its meta data Meta data: - system_id - labels - timestamp - prefix
type DeviceFilterOpt ¶
DeviceFilterOpt represents filter option
type DeviceFilterOpts ¶
DeviceFilterOpts represents assigned filter options
type ExtDataStore ¶
ExtDataStore represents datastore with output identification
type NMIFactory ¶
NMIFactory is a function that returns a new instance of a NMI
type Registrar ¶
Registrar represents NMI registry
func NewRegistrar ¶
NewRegistrar creates a new registrar instance
func (*Registrar) GetNMIFactory ¶
func (tr *Registrar) GetNMIFactory(name string) (NMIFactory, bool)
GetNMIFactory returns requested NMI factory
func (*Registrar) Register ¶
func (tr *Registrar) Register(name, version string, tf NMIFactory)
Register adds new NMI factory
type Telemetry ¶
type Telemetry struct {
// contains filtered or unexported fields
}
Telemetry represents telemetry
func (*Telemetry) AddFilterOpt ¶
func (t *Telemetry) AddFilterOpt(index string, filterOpt DeviceFilterOpt)
AddFilterOpt adds filter option
func (*Telemetry) DelFilterOpt ¶
DelFilterOpt deletes filter option
func (*Telemetry) GetDevices ¶
GetDevices returns devices based on the filters (if exist)
Directories ¶
Path | Synopsis |
---|---|
proto/GnmiJuniperTelemetryHeader
Package GnmiJuniperTelemetryHeader is a generated protocol buffer package.
|
Package GnmiJuniperTelemetryHeader is a generated protocol buffer package. |
proto/GnmiJuniperTelemetryHeaderExtension
Package GnmiJuniperTelemetryHeaderExtension is a generated protocol buffer package.
|
Package GnmiJuniperTelemetryHeaderExtension is a generated protocol buffer package. |