request

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TimeoutMinutes = 5
	ConvertType    = "json"
)

Variables

This section is empty.

Functions

func ConnectClient

func ConnectClient(clientConn *grpc.ClientConn) *pb.MONClient

func ConnectGRPC

func ConnectGRPC(grpcServerAddr string) (*grpc.ClientConn, error)

Types

type MonitoringAPI

type MonitoringAPI struct {
	// contains filtered or unexported fields
}

func GetMonitoringAPI

func GetMonitoringAPI() *MonitoringAPI

func InitMonitoringAPI

func InitMonitoringAPI() *MonitoringAPI

func (*MonitoringAPI) Close

func (monApi *MonitoringAPI) Close()

func (*MonitoringAPI) GetMCISMonInfo

func (monApi *MonitoringAPI) GetMCISMonInfo(mcisMonQueryRequest pb.VMMCISMonQryRequest) (string, error)

func (*MonitoringAPI) GetMonitoringConfig

func (monApi *MonitoringAPI) GetMonitoringConfig() (string, error)

func (*MonitoringAPI) GetVMMonInfo

func (monApi *MonitoringAPI) GetVMMonInfo(metricName string, vmMonQueryRequest pb.VMMonQryRequest) (string, error)

func (*MonitoringAPI) GetVMOnDemandMonInfo

func (monApi *MonitoringAPI) GetVMOnDemandMonInfo(metricName string, vmMonQueryRequest pb.VMOnDemandMonQryRequest) (string, error)

func (*MonitoringAPI) InstallAgent added in v0.4.2

func (monApi *MonitoringAPI) InstallAgent(installAgentRequest pb.InstallAgentRequest) (string, error)

func (*MonitoringAPI) Open

func (monApi *MonitoringAPI) Open() error

func (*MonitoringAPI) ResetMonitoringConfig

func (monApi *MonitoringAPI) ResetMonitoringConfig() (string, error)

func (*MonitoringAPI) SetMonitoringConfig

func (monApi *MonitoringAPI) SetMonitoringConfig(reqParams pb.MonitoringConfigInfo) (string, error)

func (*MonitoringAPI) SetServerAddr added in v0.4.2

func (monApi *MonitoringAPI) SetServerAddr(addr string) error

type MonitoringRequest

type MonitoringRequest struct {
	Client  pb.MONClient
	Timeout time.Duration
	InType  string
	OutType string
}

func NewMonitoringRequest

func NewMonitoringRequest(monClient *pb.MONClient, timeout time.Duration, inType string, outType string) *MonitoringRequest

func (*MonitoringRequest) GetMCISMonInfo

func (monReq *MonitoringRequest) GetMCISMonInfo(mcisMonQueryRequest pb.VMMCISMonQryRequest) (string, error)

GetVMOnDemandMonInfo

func (*MonitoringRequest) GetMonitoringConfig

func (monReq *MonitoringRequest) GetMonitoringConfig() (string, error)

GetMonitoringConfig

func (*MonitoringRequest) GetVMMonInfo

func (monReq *MonitoringRequest) GetVMMonInfo(metricName string, vmMonQueryRequest pb.VMMonQryRequest) (string, error)

GetVMMonInfo

func (*MonitoringRequest) GetVMOnDemandMonInfo

func (monReq *MonitoringRequest) GetVMOnDemandMonInfo(metricName string, vmMonQueryRequest pb.VMOnDemandMonQryRequest) (string, error)

GetVMOnDemandMonInfo

func (*MonitoringRequest) InstallAgent added in v0.4.2

func (monReq *MonitoringRequest) InstallAgent(installAgentRequest pb.InstallAgentRequest) (string, error)

InstallAgent

func (*MonitoringRequest) ResetMonitoringConfig

func (monReq *MonitoringRequest) ResetMonitoringConfig() (string, error)

ResetMonitoringConfig

func (*MonitoringRequest) SetMonitoringConfig

func (monReq *MonitoringRequest) SetMonitoringConfig(config pb.MonitoringConfigInfo) (string, error)

SetMonitoringConfig

Jump to

Keyboard shortcuts

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