task

package
v0.0.0-...-1bf96ee Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: AGPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SlaveFireWall

func SlaveFireWall()

slave firewall

func SlaveHealth

func SlaveHealth()

slave 心跳

Types

type HostGroupTask

type HostGroupTask struct {
	MonitorHostGroupDto *monitor.MonitorHostGroupDto
}

func (HostGroupTask) Run

func (h HostGroupTask) Run()

type MonitorCommonTask

type MonitorCommonTask struct {
	MonitorTaskDto *monitor.MonitorTaskDto
}

func (MonitorCommonTask) Run

func (h MonitorCommonTask) Run()

type MonitorCommonTaskImpl

type MonitorCommonTaskImpl struct {
	HostDto host.HostDto
	TaskDto monitor.MonitorTaskDto
}

func (*MonitorCommonTaskImpl) CheckProcess

func (h *MonitorCommonTaskImpl) CheckProcess()

* 检查host cpu_rate,cpu 使用率 mem_rate,内存使用率 disk_rate,磁盘使用率 free_mem,空闲内存,单位为G free_disk,空闲磁盘单位为G

type ProcessDto

type ProcessDto struct {
	ProcessName string `json:"processName"`
}

type ResourcesBackUpTask

type ResourcesBackUpTask struct {
	ResourcesBackUpDto *resources.ResourcesBackUpDto
	// contains filtered or unexported fields
}

func (ResourcesBackUpTask) Run

func (h ResourcesBackUpTask) Run()

Jump to

Keyboard shortcuts

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