Documentation ¶
Index ¶
- func HandleDuration(value string) float64
- func HandleTimestamp(value string) float64
- func TemplateFn(n *node.Node, obj string) string
- type Metric
- type Rest
- func (r *Rest) CollectAutoSupport(p *collector.Payload)
- func (r *Rest) Fields(prop *prop) []string
- func (r *Rest) GetRestData(href string) ([]gjson.Result, error)
- func (r *Rest) HandleResults(result []gjson.Result, prop *prop, isEndPoint bool) uint64
- func (r *Rest) HarvestModule() plugin.ModuleInfo
- func (r *Rest) Init(a *collector.AbstractCollector) error
- func (r *Rest) InitCache() error
- func (r *Rest) InitClient() error
- func (r *Rest) InitMatrix() error
- func (r *Rest) InitProp()
- func (r *Rest) InitVars(config *node.Node)
- func (r *Rest) LoadPlugin(kind string, abc *plugin.AbstractPlugin) plugin.Plugin
- func (r *Rest) LoadTemplate() (string, error)
- func (r *Rest) ParseRestCounters(counter *node.Node, prop *prop)
- func (r *Rest) PollCounter() (map[string]*matrix.Matrix, error)
- func (r *Rest) PollData() (map[string]*matrix.Matrix, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleDuration ¶
func HandleTimestamp ¶
Types ¶
type Rest ¶
type Rest struct { *collector.AbstractCollector Client *rest.Client Prop *prop // contains filtered or unexported fields }
func (*Rest) CollectAutoSupport ¶
func (*Rest) HandleResults ¶
HandleResults function is used for handling the rest response for parent as well as endpoints calls, isEndPoint would be true only for the endpoint call, and it can't create/delete instance.
func (*Rest) HarvestModule ¶
func (r *Rest) HarvestModule() plugin.ModuleInfo
func (*Rest) InitClient ¶
func (*Rest) InitMatrix ¶
func (*Rest) LoadPlugin ¶
func (*Rest) LoadTemplate ¶
func (*Rest) ParseRestCounters ¶
func (*Rest) PollCounter ¶
PollCounter performs daily tasks such as updating the cluster info and caching href.
Click to show internal directories.
Click to hide internal directories.