monitor

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Rpc_GetServiceMonitorInfo core.Rpc_Key = "GetServiceMonitorInfo" //获取服务监控信息

	Rpc_SetMonitorServiceSetting core.Rpc_Key = "SetMonitorServiceSetting" //设置服务配置信息
	Rpc_SetMonitorModuleSetting  core.Rpc_Key = "SetMonitorModuleSetting"  //设置模块配置信息
)

Variables

This section is empty.

Functions

func NewModule

func NewModule() core.IServiceMonitor

Types

type IOptions

type IOptions interface {
}

type Monitor

type Monitor struct {
	cbase.ModuleBase

	ServiceMonitor *core.ServiceMonitor
	ServiceSetting map[string]func(newvalue string) (err error)
	ModulesSetting map[core.M_Modules]map[string]func(newvalue string) (err error)
	Process        *process.Process
	// contains filtered or unexported fields
}

func (*Monitor) GetType

func (this *Monitor) GetType() core.M_Modules

func (*Monitor) Init

func (this *Monitor) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error)

func (*Monitor) NewOptions

func (this *Monitor) NewOptions() (options core.IModuleOptions)

func (*Monitor) RegisterModuleSettingItem

func (this *Monitor) RegisterModuleSettingItem(module core.M_Modules, name string, iswrite bool, value interface{}, f func(newvalue string) (err error))

注册模块配置信息

func (*Monitor) RegisterServiceSettingItem

func (this *Monitor) RegisterServiceSettingItem(comp core.S_Comps, name string, iswrite bool, value interface{}, f func(newvalue string) (err error))

注册服务配置信息

func (*Monitor) Rpc_GetServiceMonitorInfo

func (this *Monitor) Rpc_GetServiceMonitorInfo() (result *core.ServiceMonitor, err string)

RPC------------------------------------------------------------------------------------------------------------------------------------------ 读取服务监控信息

func (*Monitor) Rpc_SetMonitorModuleSetting

func (this *Monitor) Rpc_SetMonitorModuleSetting(module, key, value string) (result string, err string)

读取服务监控信息

func (*Monitor) Rpc_SetMonitorServiceSetting

func (this *Monitor) Rpc_SetMonitorServiceSetting(key, value string) (result string, err string)

读取服务监控信息

func (*Monitor) Start

func (this *Monitor) Start() (err error)

type Options

type Options struct {
}

func (*Options) LoadConfig

func (this *Options) LoadConfig(settings map[string]interface{}) (err error)

Jump to

Keyboard shortcuts

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