Documentation
¶
Index ¶
- func ClusterLogReadFile() error
- func DecodeByte(bts []byte) (int64, error)
- func DecodeCephFsStatus() (string, error)
- func DecodeFree() (int64, error)
- func DecodeHostCpu() error
- func GetMdsMasterHostname(client *host_client.HostClient) (string, error)
- type CephHealth
- type DumpHistoricOps
- type ExecConfig
- type MonitorResultItem
- type Ops
- type TypeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterLogReadFile ¶
func ClusterLogReadFile() error
func DecodeByte ¶
func DecodeCephFsStatus ¶
func DecodeFree ¶
func DecodeHostCpu ¶
func DecodeHostCpu() error
func GetMdsMasterHostname ¶
func GetMdsMasterHostname(client *host_client.HostClient) (string, error)
Types ¶
type CephHealth ¶
type DumpHistoricOps ¶
type DumpHistoricOps struct {
Size int64 `json:"size"`
Duration int64 `json:"duration"`
Ops []Ops `json:"ops"`
}
func ReadFile ¶
func ReadFile() (*DumpHistoricOps, error)
type ExecConfig ¶
type ExecConfig struct {
Hostnames []string `json:"hostnames"`
Ips []string `json:"ips"`
HostClients []*host_client.HostClient
}
func NewExecConfig ¶
func NewExecConfig(configPath string) (*ExecConfig, error)
func (*ExecConfig) CheckHostCpu ¶
func (execConfig *ExecConfig) CheckHostCpu() error
func (*ExecConfig) CheckHostFree ¶
func (execConfig *ExecConfig) CheckHostFree() error
func (*ExecConfig) ReadConfig ¶
func (execConfig *ExecConfig) ReadConfig(configFilePath string) error
func (*ExecConfig) Run ¶
func (execConfig *ExecConfig) Run() error
type MonitorResultItem ¶
type MonitorResultItem struct {
IsOk bool `json:"is_ok"`
Error string `json:"error"`
Success string `json:"success"`
}
func DecodeCephHealth ¶
func DecodeCephHealth() (MonitorResultItem, error)
func GetCephHealth ¶
func GetCephHealth(client *host_client.HostClient) (MonitorResultItem, error)
func GetHostFree ¶
func GetHostFree(client *host_client.HostClient) (MonitorResultItem, error)
func MonitorMdsOps ¶
func MonitorMdsOps(client *host_client.HostClient, hostname string) (MonitorResultItem, error)
type TypeData ¶
type TypeData struct {
FlagPoint string `json:"flag_point"`
ReqID string `json:"reqid"`
OpType string `json:"op_type"`
ClientInfo struct {
Client string `json:"client"`
Tid int64 `json:"tid"`
} `json:"client_info"`
Events []struct {
Time string `json:"time"`
Event string `json:"event"`
} `json:"events"`
}
Click to show internal directories.
Click to hide internal directories.