Documentation ¶
Index ¶
- Constants
- func ConnectClient(clientConn *grpc.ClientConn) *pb.MONClient
- func ConnectGRPC(grpcServerAddr string) (*grpc.ClientConn, error)
- type MonitoringAPI
- func (monApi *MonitoringAPI) Close()
- func (monApi *MonitoringAPI) GetMCISMonInfo(mcisMonQueryRequest pb.VMMCISMonQryRequest) (string, error)
- func (monApi *MonitoringAPI) GetMonitoringConfig() (string, error)
- func (monApi *MonitoringAPI) GetVMMonInfo(metricName string, vmMonQueryRequest pb.VMMonQryRequest) (string, error)
- func (monApi *MonitoringAPI) GetVMOnDemandMonInfo(metricName string, vmMonQueryRequest pb.VMOnDemandMonQryRequest) (string, error)
- func (monApi *MonitoringAPI) InstallAgent(installAgentRequest pb.InstallAgentRequest) (string, error)
- func (monApi *MonitoringAPI) Open() error
- func (monApi *MonitoringAPI) ResetMonitoringConfig() (string, error)
- func (monApi *MonitoringAPI) SetMonitoringConfig(reqParams pb.MonitoringConfigInfo) (string, error)
- func (monApi *MonitoringAPI) SetServerAddr(addr string) error
- type MonitoringRequest
- func (monReq *MonitoringRequest) GetMCISMonInfo(mcisMonQueryRequest pb.VMMCISMonQryRequest) (string, error)
- func (monReq *MonitoringRequest) GetMonitoringConfig() (string, error)
- func (monReq *MonitoringRequest) GetVMMonInfo(metricName string, vmMonQueryRequest pb.VMMonQryRequest) (string, error)
- func (monReq *MonitoringRequest) GetVMOnDemandMonInfo(metricName string, vmMonQueryRequest pb.VMOnDemandMonQryRequest) (string, error)
- func (monReq *MonitoringRequest) InstallAgent(installAgentRequest pb.InstallAgentRequest) (string, error)
- func (monReq *MonitoringRequest) ResetMonitoringConfig() (string, error)
- func (monReq *MonitoringRequest) SetMonitoringConfig(config pb.MonitoringConfigInfo) (string, error)
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 (*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
Click to show internal directories.
Click to hide internal directories.