script

package
v1.8.4-beta1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMetrics

func CreateMetrics(tableInfo [][]string, columnNames []string) []prometheus.Metric

func ParseTableData

func ParseTableData(content string, lineSperator string, rowPattern string) [][]string

func RequestHandler

func RequestHandler(w http.ResponseWriter, r *http.Request)

func SetLogger

func SetLogger(g_logger log.Logger)

Types

type ExporterConfig

type ExporterConfig struct {
	Shells []ShellConfig `json:"scripts"`
}

type ShellConfig

type ShellConfig struct {
	Name     string `json:"name"`
	Host     string `json:"host"`
	User     string `json:"user"`
	Password string `json:"password"`
	Mode     string `json:"mode"`
	Command  string `json:"command"`
	Prompt   string `json:"prompt"`
}

type Template

type Template struct {
	Name         string
	Pattern      string
	LineSperator string
	MoreCommand  string
	ClearLine    string
	StartLine    string
	EndLine      string

	Fields []string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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