client

package
v0.0.0-...-db4604a Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMonitorService

func CreateMonitorService(ctx context.Context, serviceName string, tags map[string]string) (err error)

func DeleteMonitorService

func DeleteMonitorService(ctx context.Context, serviceName string) (err error)

func FetchSerialData

func FetchSerialData(ctx context.Context, startTime, endTime time.Time, tags map[string]string) (data map[string][]SerialDataPoint, err error)

func GetConfigMap

func GetConfigMap(ctx context.Context, name string) (configMap *corev1.ConfigMap, err error)

获取ConfigMap

func InitClient

func InitClient()

func InitHTTPClient

func InitHTTPClient()

func InitK8sClient

func InitK8sClient()

func InitPrometheusClient

func InitPrometheusClient()

func UpdateConfigMap

func UpdateConfigMap(ctx context.Context, name string, configMap *corev1.ConfigMap) (err error)

更新ConfigMap

Types

type SerialDataPoint

type SerialDataPoint struct {
	Timestamp string
	Value     float64
}

Jump to

Keyboard shortcuts

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