Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterWatcher ¶
type ClusterWatcher struct {
// contains filtered or unexported fields
}
ClusterWatcher cluster watcher
func NewClusterWatcher ¶
func NewClusterWatcher(pCtx context.Context, clusterID string, storage storage.Storage, zk zk.Zk, config *config.Config) *ClusterWatcher
NewClusterWatcher create cluster watcher
func (*ClusterWatcher) Start ¶
func (cw *ClusterWatcher) Start(event chan *MetricEvent)
Start start watcher
type MetricEvent ¶
type MetricEvent struct { ID string Type EventType Metric *types.Metric First bool Last bool Meta map[string]btypes.ObjectMeta }
MetricEvent metric event
type StorageApplicationIf ¶
type StorageApplicationIf struct {
Data string `json:"data"`
}
StorageApplicationIf storage application struct
type StorageCollectorIf ¶
type StorageCollectorIf struct {
Data *types.ApplicationCollectorCfg `json:"data"`
}
StorageCollectorIf storage collector struct
type StorageMetricIf ¶
StorageMetricIf store metric struct
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher watcher for storage
func NewWatcher ¶
NewWatcher create watcher
Click to show internal directories.
Click to hide internal directories.