Documentation ¶
Index ¶
- func HandleDuration(value string) float64
- func HandleTimestamp(value string) float64
- func TemplateFn(n *node.Node, obj string) string
- type EndPoint
- type Metric
- type Rest
- func (r *Rest) CollectAutoSupport(p *collector.Payload)
- func (r *Rest) Fields(prop *prop) []string
- func (r *Rest) GetRestData(href string, headers ...map[string]string) ([]gjson.Result, error)
- func (r *Rest) HandleResults(mat *matrix.Matrix, result []gjson.Result, prop *prop, isEndPoint bool, ...) (uint64, 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) InitEndPoints() 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)
- func (r *Rest) ProcessEndPoint(e *EndPoint) ([]gjson.Result, time.Duration, error)
- func (r *Rest) ProcessEndPoints(mat *matrix.Matrix, ...) (uint64, time.Duration)
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 BatchSize string // contains filtered or unexported fields }
func (*Rest) CollectAutoSupport ¶
func (*Rest) GetRestData ¶
func (*Rest) HandleResults ¶
func (r *Rest) HandleResults(mat *matrix.Matrix, result []gjson.Result, prop *prop, isEndPoint bool, oldInstances *set.Set) (uint64, uint64)
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) InitEndPoints ¶
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.
func (*Rest) ProcessEndPoint ¶
Click to show internal directories.
Click to hide internal directories.