backend

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package backend : 裏方の処理

Index

Constants

This section is empty.

Variables

View Source
var MonitorDataes []*MonitorDataEnt

MonitorDataes : モニターデータ

Functions

func DeleteAIResult

func DeleteAIResult(id string) error

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) error

Types

type AIReq added in v1.2.0

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

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 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)

Jump to

Keyboard shortcuts

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