Documentation ¶
Index ¶
- type TMClient
- func (c *TMClient) BandwidthCapacityKBPS() (float64, error)
- func (c *TMClient) BandwidthKBPS() (float64, error)
- func (c *TMClient) CRConfig() (tc.CRConfig, error)
- func (c *TMClient) CRConfigBytes() ([]byte, error)
- func (c *TMClient) CRConfigHistory() ([]towrap.CRConfigStat, error)
- func (c *TMClient) CRStates(raw bool) (tc.CRStates, error)
- func (c *TMClient) CacheAvailableCount() (int, error)
- func (c *TMClient) CacheCount() (int, error)
- func (c *TMClient) CacheDownCount() (int, error)
- func (c *TMClient) CacheStats() (tc.LegacyStats, error)
- func (c *TMClient) CacheStatsNew() (tc.Stats, error)
- func (c *TMClient) CacheStatuses() (map[tc.CacheName]datareq.CacheStatus, error)
- func (c *TMClient) ConfigDoc() (handler.OpsConfig, error)
- func (c *TMClient) DSStats() (dsdata.Stats, error)
- func (c *TMClient) EventLog() (datareq.JSONEvents, error)
- func (c *TMClient) GetJSON(path string, obj interface{}) error
- func (c *TMClient) MonitorConfig() (tc.TrafficMonitorConfigMap, error)
- func (c *TMClient) PeerStates() (datareq.APIPeerStates, error)
- func (c *TMClient) StatSummary() (datareq.StatSummary, error)
- func (c *TMClient) Stats() (datareq.Stats, error)
- func (c *TMClient) TrafficOpsURI() (string, error)
- func (c *TMClient) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TMClient ¶
type TMClient struct { Transport *http.Transport // optional http Transport // contains filtered or unexported fields }
func (*TMClient) BandwidthCapacityKBPS ¶
func (*TMClient) BandwidthKBPS ¶
func (*TMClient) CRConfigBytes ¶
CRConfigBytes returns the raw bytes of the Monitor's CRConfig.
If you need a deserialized object, use TMClient.CRConfig() instead.
This function exists because the Monitor very intentionally serves the CRConfig bytes as published by Traffic Ops, without deserializing or reserializing it.
This can be useful to check for serialization or versioning issues, in case the Go object is missing values sent by Traffic Ops, or has other serialization issues.
func (*TMClient) CRConfigHistory ¶
func (c *TMClient) CRConfigHistory() ([]towrap.CRConfigStat, error)
func (*TMClient) CacheAvailableCount ¶
func (*TMClient) CacheCount ¶
func (*TMClient) CacheDownCount ¶
func (*TMClient) CacheStats ¶
func (*TMClient) CacheStatsNew ¶
func (*TMClient) CacheStatuses ¶
func (c *TMClient) CacheStatuses() (map[tc.CacheName]datareq.CacheStatus, error)
func (*TMClient) MonitorConfig ¶
func (*TMClient) PeerStates ¶
func (c *TMClient) PeerStates() (datareq.APIPeerStates, error)
func (*TMClient) StatSummary ¶
func (c *TMClient) StatSummary() (datareq.StatSummary, error)
func (*TMClient) TrafficOpsURI ¶
Click to show internal directories.
Click to hide internal directories.