funcs

package
v2.0.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExportMetric

func GetExportMetric() []byte

func StartCronTask

func StartCronTask()

func StartHttpServer

func StartHttpServer(port int)

Types

type DbMonitorResultObj

type DbMonitorResultObj struct {
	Name         string  `json:"name"`
	Endpoint     string  `json:"endpoint"`
	Server       string  `json:"server"`
	Port         string  `json:"port"`
	Value        float64 `json:"value"`
	ServiceGroup string  `json:"service_group"`
}

type DbMonitorTaskObj

type DbMonitorTaskObj struct {
	DbType       string       `json:"db_type"`
	Endpoint     string       `json:"endpoint"`
	Name         string       `json:"name"`
	Server       string       `json:"server"`
	Port         string       `json:"port"`
	User         string       `json:"user"`
	Password     string       `json:"password"`
	Sql          string       `json:"sql"`
	Step         int64        `json:"step"`
	LastTime     int64        `json:"last_time"`
	ServiceGroup string       `json:"service_group"`
	Session      *xorm.Engine `json:"session"`
}

Jump to

Keyboard shortcuts

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