Documentation ¶
Index ¶
- Constants
- type HeartbeatRecord
- type MemoryHealthChecker
- func (r *MemoryHealthChecker) AddToCheck(request *plugin.AddCheckRequest) error
- func (r *MemoryHealthChecker) Check(request *plugin.CheckRequest) (*plugin.CheckResponse, error)
- func (r *MemoryHealthChecker) Delete(id string) error
- func (r *MemoryHealthChecker) Destroy() error
- func (r *MemoryHealthChecker) Initialize(c *plugin.ConfigEntry) error
- func (r *MemoryHealthChecker) Name() string
- func (r *MemoryHealthChecker) Query(request *plugin.QueryRequest) (*plugin.QueryResponse, error)
- func (r *MemoryHealthChecker) RemoveFromCheck(request *plugin.AddCheckRequest) error
- func (r *MemoryHealthChecker) Report(request *plugin.ReportRequest) error
- func (r *MemoryHealthChecker) Type() plugin.HealthCheckType
Constants ¶
View Source
const (
// PluginName plugin name
PluginName = "heartbeatMemory"
)
把操作记录记录到日志文件中
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeartbeatRecord ¶
HeartbeatRecord record for heartbeat
type MemoryHealthChecker ¶
type MemoryHealthChecker struct {
// contains filtered or unexported fields
}
MemoryHealthChecker memory health checker
func (*MemoryHealthChecker) AddToCheck ¶
func (r *MemoryHealthChecker) AddToCheck(request *plugin.AddCheckRequest) error
AddToCheck add the instances to check procedure
func (*MemoryHealthChecker) Check ¶
func (r *MemoryHealthChecker) Check(request *plugin.CheckRequest) (*plugin.CheckResponse, error)
Check Report process the instance check
func (*MemoryHealthChecker) Delete ¶
func (r *MemoryHealthChecker) Delete(id string) error
Delete delete the id
func (*MemoryHealthChecker) Destroy ¶
func (r *MemoryHealthChecker) Destroy() error
Destroy plugin destruction
func (*MemoryHealthChecker) Initialize ¶
func (r *MemoryHealthChecker) Initialize(c *plugin.ConfigEntry) error
Initialize initialize plugin
func (*MemoryHealthChecker) Name ¶
func (r *MemoryHealthChecker) Name() string
Name return plugin name
func (*MemoryHealthChecker) Query ¶
func (r *MemoryHealthChecker) Query(request *plugin.QueryRequest) (*plugin.QueryResponse, error)
Query queries the heartbeat time
func (*MemoryHealthChecker) RemoveFromCheck ¶
func (r *MemoryHealthChecker) RemoveFromCheck(request *plugin.AddCheckRequest) error
RemoveFromCheck removes the instances from check procedure
func (*MemoryHealthChecker) Report ¶
func (r *MemoryHealthChecker) Report(request *plugin.ReportRequest) error
Report process heartbeat info report
func (*MemoryHealthChecker) Type ¶
func (r *MemoryHealthChecker) Type() plugin.HealthCheckType
Type for health check plugin, only one same type plugin is allowed
Click to show internal directories.
Click to hide internal directories.