heartbeatmemory

package
v1.13.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName plugin name
	PluginName = "heartbeatMemory"
)

把操作记录记录到日志文件中

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartbeatRecord

type HeartbeatRecord struct {
	Server     string
	CurTimeSec int64
}

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

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

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

Type for health check plugin, only one same type plugin is allowed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL