Documentation ¶
Index ¶
- Constants
- Variables
- func GetClusterTime(client *rest.Client, returnTimeOut *int, logger *logging.Logger) (time.Time, error)
- func GetDataInterval(param *node.Node, defaultInterval time.Duration) (time.Duration, error)
- func GetFlexGroupFabricPoolMetrics(dataMap map[string]*matrix.Matrix, object string, opName string, ...) (*matrix.Matrix, error)
- func InvokeRestCall(client *rest.Client, href string, logger *logging.Logger) ([]gjson.Result, error)
- func IsEmbedShelf(model string, moduleType string) bool
- func IsTimestampOlderThanDuration(nowish time.Time, timestamp float64, duration time.Duration) bool
- func IsValidUnit(unit string) bool
- func JSONToGson(path string, flatten bool) []gjson.Result
- func NewSensor(p *plugin.AbstractPlugin) plugin.Plugin
- func Params(object string, path string) *node.Node
- func ReadPluginKey(param *node.Node, key string) bool
- func SetNameservice(nsDB, nsSource, nisDomain string, instance *matrix.Instance)
- func UpdateLagTime(instance *matrix.Instance, lastTransferSize *matrix.Metric, ...)
- func UpdateProtectedFields(instance *matrix.Instance)
- type Sensor
Constants ¶
View Source
const ( DefaultBatchSize = "500" MaxAllowedTimeDrift = 10 * time.Second )
Variables ¶
View Source
var CurrentRegex = regexp.MustCompile(`^PSU\d (\d+V Curr|Curr|InCurrent|Curr IIN|AC In Curr)$`)
Functions ¶
func GetClusterTime ¶
func GetDataInterval ¶
GetDataInterval fetch pollData interval
func InvokeRestCall ¶
func IsEmbedShelf ¶
func IsTimestampOlderThanDuration ¶
IsTimestampOlderThanDuration - timestamp units are micro seconds The `begin` argument lets us virtualize time without requiring sleeps in test code
func IsValidUnit ¶
func SetNameservice ¶
func UpdateLagTime ¶
func UpdateProtectedFields ¶
Types ¶
Directories ¶
Path | Synopsis |
---|---|
plugins/shelf
Package shelf Copyright NetApp Inc, 2021 All rights reserved
|
Package shelf Copyright NetApp Inc, 2021 All rights reserved |
zapi
|
|
plugins/shelf
Package shelf Copyright NetApp Inc, 2021 All rights reserved
|
Package shelf Copyright NetApp Inc, 2021 All rights reserved |
plugins/disk
Package disk Copyright NetApp Inc, 2021 All rights reserved
|
Package disk Copyright NetApp Inc, 2021 All rights reserved |
Click to show internal directories.
Click to hide internal directories.