Documentation ¶
Index ¶
- Constants
- func AggregatePerScanner(logger *slog.Logger, data *matrix.Matrix, latencyKey string, rateKey string) ([]*matrix.Matrix, *util.Metadata, error)
- func GatherClusterInfo(pollerName string, cred *auth.Credentials) (conf.Remote, error)
- func GetClusterTime(client *rest.Client, returnTimeOut *int, logger *slog.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) ([]gjson.Result, error)
- func InvokeRestCallWithTestFile(client *rest.Client, href string, testFilePath string) ([]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 MergeRemotes(remoteZapi conf.Remote, remoteRest conf.Remote, errZapi error, errRest error) (conf.Remote, error)
- func NewSensor(p *plugin.AbstractPlugin) plugin.Plugin
- func Params(object string, path string) *node.Node
- func PopulateIfgroupMetrics(portIfgroupMap map[string]string, portDataMap map[string]PortData, ...) error
- func ProcessFlexGroupData(logger *slog.Logger, data *matrix.Matrix, style string, ...) ([]*matrix.Matrix, *util.Metadata, error)
- func QosSetLabel(labelName string, data *matrix.Matrix, instance *matrix.Instance, value string, ...)
- func ReadPluginKey(param *node.Node, key string) bool
- func SetNameservice(nsDB, nsSource, nisDomain string, instance *matrix.Instance)
- func SetThroughput(data *matrix.Matrix, instance *matrix.Instance, labelName string, ...)
- func TruncateURL(href string) string
- func UpdateLagTime(instance *matrix.Instance, lastTransferSize *matrix.Metric, ...)
- func UpdateProtectedFields(instance *matrix.Instance)
- type MaxXput
- type PortData
- type Sensor
- type VscanNames
Constants ¶
View Source
const ( DefaultBatchSize = "500" MaxAllowedTimeDrift = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func AggregatePerScanner ¶
func GatherClusterInfo ¶
func GetClusterTime ¶
func GetDataInterval ¶
GetDataInterval fetch pollData interval
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 MergeRemotes ¶
func PopulateIfgroupMetrics ¶
func ProcessFlexGroupData ¶
func QosSetLabel ¶
func SetNameservice ¶
func SetThroughput ¶
func TruncateURL ¶
func UpdateLagTime ¶
func UpdateProtectedFields ¶
Types ¶
type MaxXput ¶
func ZapiXputToRest ¶
type Sensor ¶
type Sensor struct { *plugin.AbstractPlugin // contains filtered or unexported fields }
type VscanNames ¶
func SplitVscanName ¶
func SplitVscanName(ontapName string, isZapi bool) (VscanNames, bool)
SplitVscanName splits the vscan name into three parts and returns them as a VscanNames
Source Files ¶
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.