Versions in this module Expand all Collapse all v0 v0.1.9 Mar 6, 2017 Changes in this version + const MaxTCPBannerLength + const MaxTCPBodyLength + const StateAvailable + const StateUnavailable + const StatusSuccess + const StatusUnknownError + var DefaultState = StateAvailable + var DefaultStateLimit = 256 + var DefaultStatus = StatusSuccess + var DefaultStatusLimit = 256 + var MaxHTTPResponseBodyLength = int64(512 * 1024) + var UserAgent = "Rackspace Monitoring Poller/1.0 (https://monitoring.api.rackspacecloud.com/)" + var WaitPeriodTimeMeasurement = time.Second + func ConvertToMetricResults(crs *ResultSet) protocol.MetricWrap + func ExpectedCheckType(checkType string) gomock.Matcher + func NewMetricsPostRequest(crs *ResultSet, clockOffset int64) *protocol.MetricsPostRequest + type Base struct + func (ch *Base) AddTLSMetrics(cr *Result, state tls.ConnectionState) *TLSMetrics + func (ch *Base) Cancel() + func (ch *Base) Done() <-chan struct{} + func (ch *Base) GetCheckIn() *protocheck.CheckIn + func (ch *Base) GetCheckType() string + func (ch *Base) GetEntityID() string + func (ch *Base) GetID() string + func (ch *Base) GetPeriod() uint64 + func (ch *Base) GetTargetIP() (string, error) + func (ch *Base) GetTimeout() uint64 + func (ch *Base) GetTimeoutDuration() time.Duration + func (ch *Base) GetWaitPeriod() time.Duration + func (ch *Base) GetZoneID() string + func (ch *Base) IsDisabled() bool + func (ch *Base) PrintDefaults() + func (ch *Base) SetCheckType(checkType string) + func (ch *Base) SetID(id string) + func (ch *Base) SetPeriod(period uint64) + func (ch *Base) SetTimeout(timeout uint64) + type Check interface + Cancel func() + Done func() <-chan struct{} + GetCheckIn func() *protocheck.CheckIn + GetCheckType func() string + GetEntityID func() string + GetID func() string + GetPeriod func() uint64 + GetTimeout func() uint64 + GetTimeoutDuration func() time.Duration + GetWaitPeriod func() time.Duration + GetZoneID func() string + IsDisabled func() bool + Run func() (*ResultSet, error) + SetCheckType func(checkType string) + SetID func(id string) + SetPeriod func(period uint64) + SetTimeout func(timeout uint64) + func NewCheck(parentContext context.Context, rawParams json.RawMessage) (Check, error) + func NewCheckParsed(parentContext context.Context, checkIn check.CheckIn) (Check, error) + func NewHTTPCheck(base *Base) Check + func NewPingCheck(base *Base) Check + func NewTCPCheck(base *Base) Check + type HTTPCheck struct + func (ch *HTTPCheck) Run() (*ResultSet, error) + type PingCheck struct + func (ch *PingCheck) Run() (*ResultSet, error) + type Pinger interface + Count func() int + Run func() + SetCount func(i int) + SetOnRecv func(f func(*ping.Packet)) + SetTimeout func(d time.Duration) + Statistics func() *ping.Statistics + Timeout func() time.Duration + type PingerFactorySpec func(addr string) (Pinger, error) + var PingerFactory PingerFactorySpec = func(addr string) (Pinger, error) { ... } + type Result struct + Metrics map[string]*metric.Metric + func NewResult(metrics ...*metric.Metric) *Result + func (cr *Result) AddMetric(metric *metric.Metric) + func (cr *Result) AddMetrics(metrics ...*metric.Metric) + func (cr *Result) GetMetric(name string) *metric.Metric + type ResultSet struct + Available bool + Check Check + Metrics []*Result + func NewResultSet(ch Check, cr *Result) *ResultSet + func (crs *ResultSet) Add(cr *Result) + func (crs *ResultSet) ClearMetrics() + func (crs *ResultSet) Get(idx int) *Result + func (crs *ResultSet) Length() int + func (crs *ResultSet) SetStateAvailable() + func (crs *ResultSet) SetStateUnavailable() + type States struct + State string + Status string + func (st *States) SetState(state string) + func (st *States) SetStateAvailable() + func (st *States) SetStateUnavailable() + func (st *States) SetStatus(status string) + func (st *States) SetStatusSuccess() + func (st *States) SetStatusUnknown() + type TCPCheck struct + func (ch *TCPCheck) GenerateAddress() (string, error) + func (ch *TCPCheck) Run() (*ResultSet, error) + type TLSMetrics struct + Verified bool