backend

package
v1.36.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package backend : 裏方の処理

Index

Constants

This section is empty.

Variables

View Source
var MonitorDataes []*MonitorDataEnt

MonitorDataes : モニターデータ

Functions

func CmpVersion added in v1.5.0

func CmpVersion(mv, sv string) int

func DeleteAIResult

func DeleteAIResult(id string) error

func GetPortList added in v1.12.0

func GetPortList(n *datastore.NodeEnt) ([]*PortEnt, []*PortEnt)

func GetVPanelPowerInfo added in v1.6.0

func GetVPanelPowerInfo(n *datastore.NodeEnt) bool

GetVPanelPowerInfo : パネルの電源状態を取得

func HasNewVersion

func HasNewVersion() bool

func MakeAIData added in v1.2.0

func MakeAIData(req *AIReq) error

func Start

func Start(ctx context.Context, dsp, vn string, wg *sync.WaitGroup) error

Types

type AIReq added in v1.2.0

type AIReq struct {
	PollingID string
	TimeStamp []int64
	Data      [][]float64
}

type HostResourceEnt added in v1.6.0

type HostResourceEnt struct {
	System     []*HrSystem
	Storage    []*HrStorage
	Device     []*HrDevice
	FileSystem []*HrFileSystem
	Process    []*HrProcess
}

func GetHostResource added in v1.6.0

func GetHostResource(n *datastore.NodeEnt) *HostResourceEnt

type HrDevice added in v1.6.0

type HrDevice struct {
	Index  string
	Type   string
	Descr  string
	Status string
	Errors string
}

type HrFileSystem added in v1.6.0

type HrFileSystem struct {
	Index    string
	Type     string
	Mount    string
	Remote   string
	Bootable int64
	Access   int64
}

type HrProcess added in v1.6.0

type HrProcess struct {
	PID    string
	Name   string
	Type   string
	Status string
	Path   string
	Param  string
	CPU    int64
	Mem    int64
}

type HrStorage added in v1.6.0

type HrStorage struct {
	Index string
	Type  string
	Descr string
	Size  int64
	Used  int64
	Unit  int64
}

type HrSystem added in v1.6.0

type HrSystem struct {
	Index   int
	Name    string
	Value   string
	Polling string
}

type MonitorDataEnt

type MonitorDataEnt struct {
	CPU   float64
	Mem   float64
	Disk  float64
	Load  float64
	Bytes float64
	Net   float64
	Proc  int
	Conn  int
	At    int64
}

MonitorDataEnt :

type PortEnt added in v1.12.0

type PortEnt struct {
	Port    int
	Address string
	Process string
	Descr   string
}

type RMONEnt added in v1.16.0

type RMONEnt struct {
	ProtocolDir map[int]string
	SysUptime   int64
	LocalTime   int64
	MIBs        map[string]map[string]string
}

func GetRMON added in v1.16.0

func GetRMON(n *datastore.NodeEnt, t string) *RMONEnt

type TimeAnalyzedPollingLog added in v1.2.0

type TimeAnalyzedPollingLog struct {
	PX2        int64
	TimeH      []int64
	TimePX2    []int64
	DataMapH   map[string][]float64
	StlMapH    map[string]stl.Result
	DataMapPX2 map[string][]float64
	StlMapPX2  map[string]stl.Result
	FFTH       map[string][][]float64
	FFTPX2     map[string][][]float64
}

func TimeAnalyzePollingLog added in v1.2.0

func TimeAnalyzePollingLog(id string) (TimeAnalyzedPollingLog, error)

type VPanelPortEnt added in v1.6.0

type VPanelPortEnt struct {
	Index      int64
	State      string
	Name       string
	Speed      int64
	OutPacktes int64
	OutBytes   int64
	OutError   int64
	InPacktes  int64
	InBytes    int64
	InError    int64
	Type       int64
	Admin      int64
	Oper       int64
	MAC        string
	// contains filtered or unexported fields
}

func GetVPanelPorts added in v1.6.0

func GetVPanelPorts(n *datastore.NodeEnt) []*VPanelPortEnt

GetVPanelPorts : パネルに表示するポートの情報を取得する 優先順位は 1.ポーリングの設定 2.SNMPから取得 3.ラインの設定

Jump to

Keyboard shortcuts

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