collectors

package
v0.3.9-2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REDIS_CRON_JOB_NAME = "redis_cron"
)

Variables

This section is empty.

Functions

func Ping

func Ping(addrList []string, count int, timeout time.Duration, debug bool) (map[string]*SPingResult, error)

Types

type BucketStatsOptions

type BucketStatsOptions struct {
	Debug bool `help:"debug"`
}

type PingProbeColectorFactory

type PingProbeColectorFactory struct {
	common.CommonReportFactory
}

func (PingProbeColectorFactory) GetId

func (p PingProbeColectorFactory) GetId() string

func (PingProbeColectorFactory) NewCloudReport

func (p PingProbeColectorFactory) NewCloudReport(provider *common.SProvider, session *mcclient.ClientSession, args *options.ReportOptions, operatorType string) common.ICloudReport

type SPingProbeColectorReport

type SPingProbeColectorReport struct {
	common.CloudReportBase
}

func (*SPingProbeColectorReport) Report

func (self *SPingProbeColectorReport) Report() error

type SPingResult

type SPingResult struct {
	// contains filtered or unexported fields
}

func NewPingResult

func NewPingResult(addr string, count int) *SPingResult

func (*SPingResult) Add

func (pr *SPingResult) Add(rtt time.Duration)

func (SPingResult) Loss

func (pr SPingResult) Loss() int

func (SPingResult) Rtt

func (pr SPingResult) Rtt() (min time.Duration, avg time.Duration, max time.Duration)

func (SPingResult) String

func (pr SPingResult) String() string

type SUsageColectorReport

type SUsageColectorReport struct {
	common.CloudReportBase
}

func (*SUsageColectorReport) Report

func (self *SUsageColectorReport) Report() error

type TProcessFunc

type TProcessFunc func(jsonutils.JSONObject) error

type UsageColectorFactory

type UsageColectorFactory struct {
	common.CommonReportFactory
}

func (UsageColectorFactory) GetId

func (p UsageColectorFactory) GetId() string

func (UsageColectorFactory) NewCloudReport

func (p UsageColectorFactory) NewCloudReport(provider *common.SProvider, session *mcclient.ClientSession, args *options.ReportOptions, operatorType string) common.ICloudReport

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL