Documentation
¶
Index ¶
- type AgentInfo
- type AgentMetaResponse
- type AgentMetaUpdateRequest
- type AgentMetricsRequest
- type AgentMetricsResponse
- type AgentProcessesRequest
- type AgentProcessesResponse
- type AgentService
- func (s *AgentService) ExecCommand(ctx context.Context, agentId, command string, args []string, timeout int) (*OpsExecCommandResult, error)
- func (s *AgentService) GetMeta(ctx context.Context, agentId string) (*OpsAgentSystemInfo, error)
- func (s *AgentService) List(ctx context.Context, gameId, env, status string) ([]OpsAgentInfo, error)
- func (s *AgentService) RestartProcess(ctx context.Context, agentId string, pid int) error
- func (s *AgentService) StartProcess(ctx context.Context, agentId, command string, args, env []string, dir string) (int, error)
- func (s *AgentService) StopProcess(ctx context.Context, agentId string, pid int) error
- type AgentSystemInfo
- type AgentSystemInfoRequest
- type AgentSystemInfoResponse
- type AgentsListRequest
- type AgentsListResponse
- type AlertService
- func (s *AlertService) DeleteSilence(ctx context.Context, silenceId string) error
- func (s *AlertService) List(ctx context.Context, gameId, env, status string) ([]OpsAlert, error)
- func (s *AlertService) ListSilences(ctx context.Context, gameId string) ([]OpsAlert, error)
- func (s *AlertService) Silence(ctx context.Context, alertId string, duration int, comment string) (string, error)
- type AlertSilenceDeleteRequest
- type AlertSilenceRequest
- type AlertSilenceResponse
- type AlertsRequest
- type AlertsResponse
- type Backup
- type BackupCreateRequest
- type BackupDeleteRequest
- type BackupDetailResponse
- type BackupDownloadRequest
- type BackupService
- func (s *BackupService) Create(ctx context.Context, gameId, env, backupType string, timeout int) (string, error)
- func (s *BackupService) Delete(ctx context.Context, backupId string) error
- func (s *BackupService) GetDownloadURL(ctx context.Context, backupId string) (string, string, error)
- func (s *BackupService) List(ctx context.Context, gameId, env string) ([]Backup, error)
- type BackupsListRequest
- type BackupsListResponse
- type CpuMetrics
- type DiskMetrics
- type ExecCommandRequest
- type ExecCommandResponse
- type ExecCommandResult
- type FunctionsRequest
- type FunctionsResponse
- type Handler
- func (h *Handler) AgentExecCommand(c *gin.Context)
- func (h *Handler) AgentMeta(c *gin.Context)
- func (h *Handler) AgentMetrics(c *gin.Context)
- func (h *Handler) AgentProcessRestart(c *gin.Context)
- func (h *Handler) AgentProcessStart(c *gin.Context)
- func (h *Handler) AgentProcessStop(c *gin.Context)
- func (h *Handler) AgentProcesses(c *gin.Context)
- func (h *Handler) AgentSystemInfo(c *gin.Context)
- func (h *Handler) AgentsList(c *gin.Context)
- func (h *Handler) AlertSilence(c *gin.Context)
- func (h *Handler) Alerts(c *gin.Context)
- func (h *Handler) BackupCreate(c *gin.Context)
- func (h *Handler) BackupDelete(c *gin.Context)
- func (h *Handler) BackupDownload(c *gin.Context)
- func (h *Handler) BackupsList(c *gin.Context)
- func (h *Handler) Config(c *gin.Context)
- func (h *Handler) Functions(c *gin.Context)
- func (h *Handler) HealthGet(c *gin.Context)
- func (h *Handler) HealthRun(c *gin.Context)
- func (h *Handler) HealthUpdate(c *gin.Context)
- func (h *Handler) MQ(c *gin.Context)
- func (h *Handler) MaintenanceGet(c *gin.Context)
- func (h *Handler) MaintenanceUpdate(c *gin.Context)
- func (h *Handler) Metrics(c *gin.Context)
- func (h *Handler) NodeCommands(c *gin.Context)
- func (h *Handler) NodeDrain(c *gin.Context)
- func (h *Handler) NodeMeta(c *gin.Context)
- func (h *Handler) NodeRestart(c *gin.Context)
- func (h *Handler) NodeUndrain(c *gin.Context)
- func (h *Handler) Nodes(c *gin.Context)
- func (h *Handler) NotificationsGet(c *gin.Context)
- func (h *Handler) NotificationsUpdate(c *gin.Context)
- func (h *Handler) OpsAgentExecCommand(c *gin.Context)
- func (h *Handler) OpsAgentMeta(c *gin.Context)
- func (h *Handler) OpsAgentMetrics(c *gin.Context)
- func (h *Handler) OpsAgentProcessRestart(c *gin.Context)
- func (h *Handler) OpsAgentProcessStart(c *gin.Context)
- func (h *Handler) OpsAgentProcessStop(c *gin.Context)
- func (h *Handler) OpsAgentProcesses(c *gin.Context)
- func (h *Handler) OpsAgentSystemInfo(c *gin.Context)
- func (h *Handler) OpsAgentsList(c *gin.Context)
- func (h *Handler) OpsAlertSilence(c *gin.Context)
- func (h *Handler) OpsAlerts(c *gin.Context)
- func (h *Handler) OpsBackupCreate(c *gin.Context)
- func (h *Handler) OpsBackupDelete(c *gin.Context)
- func (h *Handler) OpsBackupDownload(c *gin.Context)
- func (h *Handler) OpsBackupsList(c *gin.Context)
- func (h *Handler) OpsConfig(c *gin.Context)
- func (h *Handler) OpsFunctions(c *gin.Context)
- func (h *Handler) OpsHealthGet(c *gin.Context)
- func (h *Handler) OpsHealthRun(c *gin.Context)
- func (h *Handler) OpsHealthUpdate(c *gin.Context)
- func (h *Handler) OpsMQ(c *gin.Context)
- func (h *Handler) OpsMaintenanceGet(c *gin.Context)
- func (h *Handler) OpsMaintenanceUpdate(c *gin.Context)
- func (h *Handler) OpsMetrics(c *gin.Context)
- func (h *Handler) OpsNodeCommands(c *gin.Context)
- func (h *Handler) OpsNodeDrain(c *gin.Context)
- func (h *Handler) OpsNodeMeta(c *gin.Context)
- func (h *Handler) OpsNodeRestart(c *gin.Context)
- func (h *Handler) OpsNodeUndrain(c *gin.Context)
- func (h *Handler) OpsNodes(c *gin.Context)
- func (h *Handler) OpsNotificationsGet(c *gin.Context)
- func (h *Handler) OpsNotificationsUpdate(c *gin.Context)
- func (h *Handler) OpsServices(c *gin.Context)
- func (h *Handler) OpsSilenceDelete(c *gin.Context)
- func (h *Handler) OpsSilences(c *gin.Context)
- func (h *Handler) Services(c *gin.Context)
- func (h *Handler) SilenceDelete(c *gin.Context)
- func (h *Handler) Silences(c *gin.Context)
- type HealthCheck
- type HealthGetRequest
- type HealthGetResponse
- type HealthRunRequest
- type HealthRunResponse
- type HealthUpdateRequest
- type HealthUpdateResponse
- type MaintenanceGetRequest
- type MaintenanceGetResponse
- type MaintenanceUpdateRequest
- type MaintenanceUpdateResponse
- type MaintenanceWindow
- type ManagedProcess
- type MemoryMetrics
- type MetricsData
- type MetricsQuery
- type MetricsResponse
- type NetworkMetrics
- type Node
- type NodeActionRequest
- type NodeCommand
- type NodeCommandsQuery
- type NodeCommandsResponse
- type NodeDrainResponse
- type NodeMetaRequest
- type NodeMetaResponse
- type NodeRestartResponse
- type NodeService
- func (s *NodeService) Drain(ctx context.Context, nodeId string) error
- func (s *NodeService) GetCommands(ctx context.Context, nodeId string) ([]NodeCommand, error)
- func (s *NodeService) GetMeta(ctx context.Context, nodeId string) (map[string]string, error)
- func (s *NodeService) List(ctx context.Context, gameId, env, status string) ([]Node, error)
- func (s *NodeService) Restart(ctx context.Context, nodeId string) error
- func (s *NodeService) Undrain(ctx context.Context, nodeId string) error
- type NodeUndrainResponse
- type NodesRequest
- type NodesResponse
- type NotificationChannel
- type NotificationRule
- type NotificationsGetRequest
- type NotificationsGetResponse
- type NotificationsUpdateRequest
- type NotificationsUpdateResponse
- type OpsAgentInfo
- type OpsAgentMetaRequest
- type OpsAgentMetaResponse
- type OpsAgentMetaUpdateRequest
- type OpsAgentMetricsRequest
- type OpsAgentMetricsResponse
- type OpsAgentProcessesRequest
- type OpsAgentProcessesResponse
- type OpsAgentSystemInfo
- type OpsAgentSystemInfoRequest
- type OpsAgentSystemInfoResponse
- type OpsAgentsListRequest
- type OpsAgentsListResponse
- type OpsAlert
- type OpsAlertSilenceDeleteRequest
- type OpsAlertSilenceRequest
- type OpsAlertSilenceResponse
- type OpsAlertsRequest
- type OpsAlertsResponse
- type OpsBackupCreateRequest
- type OpsBackupCreateResponse
- type OpsBackupDeleteRequest
- type OpsBackupDeleteResponse
- type OpsBackupDownloadRequest
- type OpsBackupDownloadResponse
- type OpsBackupsListRequest
- type OpsBackupsListResponse
- type OpsConfigRequest
- type OpsConfigResponse
- type OpsCpuMetrics
- type OpsDiskMetrics
- type OpsExecCommandRequest
- type OpsExecCommandResponse
- type OpsExecCommandResult
- type OpsFunctionsRequest
- type OpsFunctionsResponse
- type OpsHealthCheck
- type OpsHealthGetRequest
- type OpsHealthGetResponse
- type OpsHealthRunRequest
- type OpsHealthRunResponse
- type OpsHealthUpdateRequest
- type OpsHealthUpdateResponse
- type OpsMQRequest
- type OpsMQResponse
- type OpsMaintenanceGetRequest
- type OpsMaintenanceGetResponse
- type OpsMaintenanceUpdateRequest
- type OpsMaintenanceUpdateResponse
- type OpsMaintenanceWindow
- type OpsManagedProcess
- type OpsMemoryMetrics
- type OpsMetricsData
- type OpsMetricsQuery
- type OpsMetricsRequest
- type OpsMetricsResponse
- type OpsNetworkMetrics
- type OpsNodeActionRequest
- type OpsNodeCommandsQuery
- type OpsNodeCommandsRequest
- type OpsNodeCommandsResponse
- type OpsNodeDrainResponse
- type OpsNodeMetaRequest
- type OpsNodeMetaResponse
- type OpsNodeRestartResponse
- type OpsNodeUndrainResponse
- type OpsNodesRequest
- type OpsNodesResponse
- type OpsNotificationChannel
- type OpsNotificationRule
- type OpsNotificationsGetRequest
- type OpsNotificationsGetResponse
- type OpsNotificationsUpdateRequest
- type OpsNotificationsUpdateResponse
- type OpsProcessActionRequest
- type OpsProcessActionResponse
- type OpsProcessStartRequest
- type OpsProcessStartResponse
- type OpsServiceItem
- type OpsServiceMetadata
- type OpsServiceProcess
- type OpsServicesRequest
- type OpsServicesResponse
- type OpsSilenceDeleteResponse
- type OpsSilencesRequest
- type OpsSilencesResponse
- type ProcessActionRequest
- type ProcessActionResponse
- type ProcessStartRequest
- type ProcessStartResponse
- type Service
- func (s *Service) OpsAgentExecCommand(ctx context.Context, req *OpsExecCommandRequest) (*OpsExecCommandResponse, error)
- func (s *Service) OpsAgentMeta(ctx context.Context, req *OpsAgentMetaRequest) (*OpsAgentMetaResponse, error)
- func (s *Service) OpsAgentMetrics(ctx context.Context, req *OpsAgentMetricsRequest) (*OpsAgentMetricsResponse, error)
- func (s *Service) OpsAgentProcessRestart(ctx context.Context, req *OpsProcessActionRequest) (*OpsProcessActionResponse, error)
- func (s *Service) OpsAgentProcessStart(ctx context.Context, req *OpsProcessStartRequest) (*OpsProcessStartResponse, error)
- func (s *Service) OpsAgentProcessStop(ctx context.Context, req *OpsProcessActionRequest) (*OpsProcessActionResponse, error)
- func (s *Service) OpsAgentProcesses(ctx context.Context, req *OpsAgentProcessesRequest) (*OpsAgentProcessesResponse, error)
- func (s *Service) OpsAgentSystemInfo(ctx context.Context, req *OpsAgentSystemInfoRequest) (*OpsAgentSystemInfoResponse, error)
- func (s *Service) OpsAgentsList(ctx context.Context, req *OpsAgentsListRequest) (*OpsAgentsListResponse, error)
- func (s *Service) OpsAlertSilence(ctx context.Context, req *OpsAlertSilenceRequest) (*OpsAlertSilenceResponse, error)
- func (s *Service) OpsAlerts(ctx context.Context, req *OpsAlertsRequest) (*OpsAlertsResponse, error)
- func (s *Service) OpsBackupCreate(ctx context.Context, req *OpsBackupCreateRequest) (*OpsBackupCreateResponse, error)
- func (s *Service) OpsBackupDelete(ctx context.Context, req *OpsBackupDeleteRequest) (*OpsBackupDeleteResponse, error)
- func (s *Service) OpsBackupDownload(ctx context.Context, req *OpsBackupDownloadRequest) (*OpsBackupDownloadResponse, error)
- func (s *Service) OpsBackupsList(ctx context.Context, req *OpsBackupsListRequest) (*OpsBackupsListResponse, error)
- func (s *Service) OpsConfig(ctx context.Context, req *OpsConfigRequest) (*OpsConfigResponse, error)
- func (s *Service) OpsFunctions(ctx context.Context, req *OpsFunctionsRequest) (*OpsFunctionsResponse, error)
- func (s *Service) OpsHealthGet(ctx context.Context, req *OpsHealthGetRequest) (*OpsHealthGetResponse, error)
- func (s *Service) OpsHealthRun(ctx context.Context, req *OpsHealthRunRequest) (*OpsHealthRunResponse, error)
- func (s *Service) OpsHealthUpdate(ctx context.Context, req *OpsHealthUpdateRequest) (*OpsHealthUpdateResponse, error)
- func (s *Service) OpsMQ(ctx context.Context, req *OpsMQRequest) (*OpsMQResponse, error)
- func (s *Service) OpsMaintenanceGet(ctx context.Context, req *OpsMaintenanceGetRequest) (*OpsMaintenanceGetResponse, error)
- func (s *Service) OpsMaintenanceUpdate(ctx context.Context, req *OpsMaintenanceUpdateRequest) (*OpsMaintenanceUpdateResponse, error)
- func (s *Service) OpsMetrics(ctx context.Context, req *OpsMetricsRequest) (*OpsMetricsResponse, error)
- func (s *Service) OpsNodeCommands(ctx context.Context, req *OpsNodeCommandsRequest) (*OpsNodeCommandsResponse, error)
- func (s *Service) OpsNodeDrain(ctx context.Context, req *OpsNodeCommandsRequest) (*OpsNodeDrainResponse, error)
- func (s *Service) OpsNodeMeta(ctx context.Context, req *OpsNodeMetaRequest) (*OpsNodeMetaResponse, error)
- func (s *Service) OpsNodeRestart(ctx context.Context, req *OpsNodeCommandsRequest) (*OpsNodeRestartResponse, error)
- func (s *Service) OpsNodeUndrain(ctx context.Context, req *OpsNodeCommandsRequest) (*OpsNodeUndrainResponse, error)
- func (s *Service) OpsNodes(ctx context.Context, req *OpsNodesRequest) (*OpsNodesResponse, error)
- func (s *Service) OpsNotificationsGet(ctx context.Context, req *OpsNotificationsGetRequest) (*OpsNotificationsGetResponse, error)
- func (s *Service) OpsNotificationsUpdate(ctx context.Context, req *OpsNotificationsUpdateRequest) (*OpsNotificationsUpdateResponse, error)
- func (s *Service) OpsServices(ctx context.Context, req *OpsServicesRequest) (*OpsServicesResponse, error)
- func (s *Service) OpsSilenceDelete(ctx context.Context, req *OpsAlertSilenceRequest) (*OpsSilenceDeleteResponse, error)
- func (s *Service) OpsSilences(ctx context.Context, req *OpsSilencesRequest) (*OpsSilencesResponse, error)
- type ServiceItem
- type ServiceMetadata
- type ServiceProcess
- type ServicesRequest
- type ServicesResponse
- type Silence
- type SilenceDeleteRequest
- type SilenceDeleteResponse
- type SilencesListRequest
- type SilencesListResponse
- type SilencesRequest
- type SilencesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentInfo ¶
type AgentInfo = OpsAgentInfo
type AgentMetaResponse ¶
type AgentMetaResponse = OpsAgentMetaResponse
type AgentMetaUpdateRequest ¶
type AgentMetaUpdateRequest = OpsAgentMetaUpdateRequest
type AgentMetricsRequest ¶
type AgentMetricsRequest = OpsAgentMetricsRequest
type AgentMetricsResponse ¶
type AgentMetricsResponse = OpsAgentMetricsResponse
type AgentProcessesRequest ¶
type AgentProcessesRequest = OpsAgentProcessesRequest
type AgentProcessesResponse ¶
type AgentProcessesResponse = OpsAgentProcessesResponse
type AgentService ¶
type AgentService struct {
// contains filtered or unexported fields
}
func NewAgentService ¶
func NewAgentService(svcCtx *svc.ServiceContext) *AgentService
func (*AgentService) ExecCommand ¶
func (s *AgentService) ExecCommand(ctx context.Context, agentId, command string, args []string, timeout int) (*OpsExecCommandResult, error)
func (*AgentService) GetMeta ¶
func (s *AgentService) GetMeta(ctx context.Context, agentId string) (*OpsAgentSystemInfo, error)
func (*AgentService) List ¶
func (s *AgentService) List(ctx context.Context, gameId, env, status string) ([]OpsAgentInfo, error)
func (*AgentService) RestartProcess ¶
func (*AgentService) StartProcess ¶
func (*AgentService) StopProcess ¶
type AgentSystemInfo ¶
type AgentSystemInfo = OpsAgentSystemInfo
type AgentSystemInfoRequest ¶
type AgentSystemInfoRequest = OpsAgentSystemInfoRequest
type AgentSystemInfoResponse ¶
type AgentSystemInfoResponse = OpsAgentSystemInfoResponse
type AgentsListRequest ¶
type AgentsListRequest = OpsAgentsListRequest
type AgentsListResponse ¶
type AgentsListResponse = OpsAgentsListResponse
type AlertService ¶
type AlertService struct {
// contains filtered or unexported fields
}
func NewAlertService ¶
func NewAlertService(svcCtx *svc.ServiceContext) *AlertService
func (*AlertService) DeleteSilence ¶
func (s *AlertService) DeleteSilence(ctx context.Context, silenceId string) error
func (*AlertService) ListSilences ¶
type AlertSilenceDeleteRequest ¶
type AlertSilenceDeleteRequest = OpsAlertSilenceDeleteRequest
type AlertSilenceRequest ¶
type AlertSilenceRequest = OpsAlertSilenceRequest
type AlertSilenceResponse ¶
type AlertSilenceResponse = OpsAlertSilenceResponse
type AlertsRequest ¶
type AlertsRequest = OpsAlertsRequest
type AlertsResponse ¶
type AlertsResponse = OpsAlertsResponse
type BackupCreateRequest ¶
type BackupDeleteRequest ¶
type BackupDeleteRequest struct {
ID string `uri:"id"`
}
type BackupDetailResponse ¶
type BackupDetailResponse struct {
Backup
}
type BackupDownloadRequest ¶
type BackupDownloadRequest struct {
ID string `uri:"id"`
}
type BackupService ¶
type BackupService struct {
// contains filtered or unexported fields
}
func NewBackupService ¶
func NewBackupService(svcCtx *svc.ServiceContext) *BackupService
func (*BackupService) Delete ¶
func (s *BackupService) Delete(ctx context.Context, backupId string) error
func (*BackupService) GetDownloadURL ¶
type BackupsListRequest ¶
type BackupsListResponse ¶
type CpuMetrics ¶
type CpuMetrics = OpsCpuMetrics
type DiskMetrics ¶
type DiskMetrics = OpsDiskMetrics
type ExecCommandRequest ¶
type ExecCommandRequest = OpsExecCommandRequest
type ExecCommandResponse ¶
type ExecCommandResponse = OpsExecCommandResponse
type ExecCommandResult ¶
type ExecCommandResult = OpsExecCommandResult
type FunctionsRequest ¶
type FunctionsRequest = OpsFunctionsRequest
type FunctionsResponse ¶
type FunctionsResponse = OpsFunctionsResponse
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AgentExecCommand ¶
func (*Handler) AgentMetrics ¶
func (*Handler) AgentProcessRestart ¶
func (*Handler) AgentProcessStart ¶
func (*Handler) AgentProcessStop ¶
func (*Handler) AgentProcesses ¶
func (*Handler) AgentSystemInfo ¶
func (*Handler) AgentsList ¶
func (*Handler) AlertSilence ¶
func (*Handler) BackupCreate ¶
func (*Handler) BackupDelete ¶
func (*Handler) BackupDownload ¶
func (*Handler) BackupsList ¶
func (*Handler) HealthUpdate ¶
func (*Handler) MaintenanceGet ¶
func (*Handler) MaintenanceUpdate ¶
func (*Handler) NodeCommands ¶
func (*Handler) NodeRestart ¶
func (*Handler) NodeUndrain ¶
func (*Handler) NotificationsGet ¶
func (*Handler) NotificationsUpdate ¶
func (*Handler) OpsAgentExecCommand ¶
func (*Handler) OpsAgentMeta ¶
func (*Handler) OpsAgentMetrics ¶
func (*Handler) OpsAgentProcessRestart ¶
func (*Handler) OpsAgentProcessStart ¶
func (*Handler) OpsAgentProcessStop ¶
func (*Handler) OpsAgentProcesses ¶
func (*Handler) OpsAgentSystemInfo ¶
func (*Handler) OpsAgentsList ¶
func (*Handler) OpsAlertSilence ¶
func (*Handler) OpsBackupCreate ¶
func (*Handler) OpsBackupDelete ¶
func (*Handler) OpsBackupDownload ¶
func (*Handler) OpsBackupsList ¶
func (*Handler) OpsFunctions ¶
func (*Handler) OpsHealthGet ¶
func (*Handler) OpsHealthRun ¶
func (*Handler) OpsHealthUpdate ¶
func (*Handler) OpsMaintenanceGet ¶
func (*Handler) OpsMaintenanceUpdate ¶
func (*Handler) OpsMetrics ¶
func (*Handler) OpsNodeCommands ¶
func (*Handler) OpsNodeDrain ¶
func (*Handler) OpsNodeMeta ¶
func (*Handler) OpsNodeRestart ¶
func (*Handler) OpsNodeUndrain ¶
func (*Handler) OpsNotificationsGet ¶
func (*Handler) OpsNotificationsUpdate ¶
func (*Handler) OpsServices ¶
func (*Handler) OpsSilenceDelete ¶
func (*Handler) OpsSilences ¶
func (*Handler) SilenceDelete ¶
type HealthCheck ¶
type HealthCheck = OpsHealthCheck
type HealthGetRequest ¶
type HealthGetRequest = OpsHealthGetRequest
type HealthGetResponse ¶
type HealthGetResponse = OpsHealthGetResponse
type HealthRunRequest ¶
type HealthRunRequest = OpsHealthRunRequest
type HealthRunResponse ¶
type HealthRunResponse = OpsHealthRunResponse
type HealthUpdateRequest ¶
type HealthUpdateRequest = OpsHealthUpdateRequest
type HealthUpdateResponse ¶
type HealthUpdateResponse = OpsHealthUpdateResponse
type MaintenanceGetRequest ¶
type MaintenanceGetRequest = OpsMaintenanceGetRequest
type MaintenanceGetResponse ¶
type MaintenanceGetResponse = OpsMaintenanceGetResponse
type MaintenanceUpdateRequest ¶
type MaintenanceUpdateRequest = OpsMaintenanceUpdateRequest
type MaintenanceUpdateResponse ¶
type MaintenanceUpdateResponse = OpsMaintenanceUpdateResponse
type MaintenanceWindow ¶
type MaintenanceWindow = OpsMaintenanceWindow
type ManagedProcess ¶
type ManagedProcess = OpsManagedProcess
type MemoryMetrics ¶
type MemoryMetrics = OpsMemoryMetrics
type MetricsData ¶
type MetricsData = OpsMetricsData
type MetricsQuery ¶
type MetricsQuery = OpsMetricsQuery
type MetricsResponse ¶
type MetricsResponse = OpsMetricsResponse
type NetworkMetrics ¶
type NetworkMetrics = OpsNetworkMetrics
type Node ¶
type Node struct {
Id string `json:"id"`
Hostname string `json:"hostname"`
Addr string `json:"addr"`
GameId string `json:"gameId"`
Env string `json:"env"`
Status string `json:"status"`
Labels map[string]string `json:"labels"`
LastSeen string `json:"lastSeen"`
}
Node represents a node in the system
type NodeActionRequest ¶
type NodeActionRequest = OpsNodeActionRequest
type NodeCommand ¶
type NodeCommand struct {
Name string `json:"name"`
Description string `json:"description"`
Params map[string]string `json:"params"`
}
NodeCommand represents a command that can be executed on a node
type NodeCommandsQuery ¶
type NodeCommandsQuery = OpsNodeCommandsQuery
type NodeCommandsResponse ¶
type NodeCommandsResponse = OpsNodeCommandsResponse
type NodeDrainResponse ¶
type NodeDrainResponse = OpsNodeDrainResponse
type NodeMetaRequest ¶
type NodeMetaRequest = OpsNodeMetaRequest
type NodeMetaResponse ¶
type NodeMetaResponse = OpsNodeMetaResponse
type NodeRestartResponse ¶
type NodeRestartResponse = OpsNodeRestartResponse
type NodeService ¶
type NodeService struct {
// contains filtered or unexported fields
}
func NewNodeService ¶
func NewNodeService(svcCtx *svc.ServiceContext) *NodeService
func (*NodeService) GetCommands ¶
func (s *NodeService) GetCommands(ctx context.Context, nodeId string) ([]NodeCommand, error)
type NodeUndrainResponse ¶
type NodeUndrainResponse = OpsNodeUndrainResponse
type NodesRequest ¶
type NodesRequest = OpsNodesRequest
type NodesResponse ¶
type NodesResponse = OpsNodesResponse
type NotificationChannel ¶
type NotificationChannel = OpsNotificationChannel
type NotificationRule ¶
type NotificationRule = OpsNotificationRule
type NotificationsGetRequest ¶
type NotificationsGetRequest = OpsNotificationsGetRequest
type NotificationsGetResponse ¶
type NotificationsGetResponse = OpsNotificationsGetResponse
type NotificationsUpdateRequest ¶
type NotificationsUpdateRequest = OpsNotificationsUpdateRequest
type NotificationsUpdateResponse ¶
type NotificationsUpdateResponse = OpsNotificationsUpdateResponse
type OpsAgentInfo ¶
type OpsAgentInfo struct {
AgentID string `json:"agentId"`
GameID string `json:"gameId"`
Env string `json:"env"`
Version string `json:"version"`
RPCAddr string `json:"rpcAddr"`
Connected bool `json:"connected"`
LastSeen string `json:"lastSeen"`
Functions []string `json:"functions"`
Processes []string `json:"processes"`
Labels map[string]string `json:"labels"`
}
type OpsAgentMetaRequest ¶
type OpsAgentMetaRequest struct {
AgentId string `json:"agentId" binding:"required"`
}
OpsAgentMetaRequest is used to get agent metadata
type OpsAgentMetaResponse ¶
type OpsAgentMetaUpdateRequest ¶
type OpsAgentMetaUpdateRequest struct {
AgentID string `json:"agentId"`
Meta interface{} `json:"meta"`
}
type OpsAgentMetricsRequest ¶
type OpsAgentMetricsResponse ¶
type OpsAgentMetricsResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data []OpsMetricsData `json:"data,omitempty"`
}
type OpsAgentProcessesRequest ¶
type OpsAgentProcessesRequest struct {
AgentID string `uri:"agentId"`
}
type OpsAgentProcessesResponse ¶
type OpsAgentProcessesResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data []OpsManagedProcess `json:"data,omitempty"`
}
type OpsAgentSystemInfo ¶
type OpsAgentSystemInfo struct {
Hostname string `json:"hostname"`
OS string `json:"os"`
OSVersion string `json:"osVersion"`
KernelVersion string `json:"kernelVersion"`
Arch string `json:"arch"`
CPUCores int32 `json:"cpuCores"`
TotalMemory uint64 `json:"totalMemory"`
BootTime string `json:"bootTime"`
AgentVersion string `json:"agentVersion"`
}
type OpsAgentSystemInfoRequest ¶
type OpsAgentSystemInfoRequest struct {
AgentID string `uri:"agentId"`
}
type OpsAgentSystemInfoResponse ¶
type OpsAgentSystemInfoResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data OpsAgentSystemInfo `json:"data,omitempty"`
}
type OpsAgentsListRequest ¶
type OpsAgentsListRequest struct {
}
type OpsAgentsListResponse ¶
type OpsAgentsListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data []OpsAgentInfo `json:"data,omitempty"`
}
type OpsAlert ¶
type OpsAlert struct {
Severity string `json:"severity,omitempty"`
Service string `json:"service,omitempty"`
Instance string `json:"instance,omitempty"`
Summary string `json:"summary,omitempty"`
StartsAt string `json:"starts_at,omitempty"`
EndsAt string `json:"ends_at,omitempty"`
Duration string `json:"duration,omitempty"`
Silenced bool `json:"silenced,omitempty"`
Labels map[string]interface{} `json:"labels,omitempty"`
Annotations map[string]interface{} `json:"annotations,omitempty"`
}
type OpsAlertSilenceDeleteRequest ¶
type OpsAlertSilenceDeleteRequest struct {
ID string `uri:"id"`
}
type OpsAlertSilenceRequest ¶
type OpsAlertSilenceResponse ¶
type OpsAlertsRequest ¶
type OpsAlertsRequest struct {
}
type OpsAlertsResponse ¶
type OpsAlertsResponse struct {
Alerts []OpsAlert `json:"alerts"`
}
type OpsBackupCreateRequest ¶
type OpsBackupCreateRequest struct {
Name string `json:"name"`
}
type OpsBackupCreateResponse ¶
type OpsBackupDeleteRequest ¶
type OpsBackupDeleteRequest struct {
ID string `uri:"id"`
}
type OpsBackupDeleteResponse ¶
type OpsBackupDownloadRequest ¶
type OpsBackupDownloadRequest struct {
ID string `uri:"id"`
}
type OpsBackupsListRequest ¶
type OpsBackupsListResponse ¶
type OpsConfigRequest ¶
type OpsConfigRequest struct {
}
type OpsConfigResponse ¶
type OpsCpuMetrics ¶
type OpsDiskMetrics ¶
type OpsExecCommandRequest ¶
type OpsExecCommandResponse ¶
type OpsExecCommandResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data OpsExecCommandResult `json:"data,omitempty"`
}
type OpsExecCommandResult ¶
type OpsFunctionsRequest ¶
type OpsFunctionsRequest struct {
}
type OpsFunctionsResponse ¶
type OpsHealthCheck ¶
type OpsHealthCheck struct {
ID string `json:"id"`
Name string `json:"name"`
Enabled bool `json:"enabled"`
Type string `json:"type"`
Kind string `json:"kind"`
Target string `json:"target"`
Expect string `json:"expect"`
Region string `json:"region"`
Interval int `json:"interval"`
IntervalSec int `json:"intervalSec"`
TimeoutMs int `json:"timeoutMs"`
}
type OpsHealthGetRequest ¶
type OpsHealthGetRequest struct {
}
type OpsHealthGetResponse ¶
type OpsHealthRunRequest ¶
type OpsHealthRunRequest struct {
ID string `json:"id"`
}
type OpsHealthRunResponse ¶
type OpsHealthUpdateRequest ¶
type OpsHealthUpdateRequest struct {
Enabled bool `json:"enabled"`
Checks []OpsHealthCheck `json:"checks"`
}
type OpsHealthUpdateResponse ¶
type OpsMQRequest ¶
type OpsMQRequest struct {
}
type OpsMQResponse ¶
type OpsMaintenanceGetRequest ¶
type OpsMaintenanceGetRequest struct {
}
type OpsMaintenanceUpdateRequest ¶
type OpsMaintenanceUpdateRequest struct {
Enabled bool `json:"enabled"`
Message string `json:"message"`
Windows []OpsMaintenanceWindow `json:"windows"`
}
type OpsMaintenanceWindow ¶
type OpsManagedProcess ¶
type OpsMemoryMetrics ¶
type OpsMetricsData ¶
type OpsMetricsData struct {
AgentID string `json:"agentId"`
Timestamp string `json:"timestamp"`
CPU OpsCpuMetrics `json:"cpu"`
Memory OpsMemoryMetrics `json:"memory"`
Disks []OpsDiskMetrics `json:"disks,omitempty"`
Networks []OpsNetworkMetrics `json:"networks,omitempty"`
}
type OpsMetricsQuery ¶
type OpsMetricsRequest ¶
type OpsMetricsRequest struct {
GameId string `json:"gameId" binding:"required"`
Env string `json:"env"`
Metric string `json:"metric"`
Start string `json:"start"`
End string `json:"end"`
Aggregation string `json:"aggregation"`
}
OpsMetricsRequest is used to query metrics
type OpsMetricsResponse ¶
type OpsNetworkMetrics ¶
type OpsNodeActionRequest ¶
type OpsNodeActionRequest struct {
NodeID string `uri:"nodeId"`
}
type OpsNodeCommandsQuery ¶
type OpsNodeCommandsQuery struct {
NodeID string `form:"nodeId"`
}
type OpsNodeCommandsRequest ¶
type OpsNodeCommandsRequest struct {
NodeId string `json:"nodeId" binding:"required"`
}
OpsNodeCommandsRequest is used to get node commands
type OpsNodeCommandsResponse ¶
type OpsNodeDrainResponse ¶
type OpsNodeMetaRequest ¶
type OpsNodeMetaRequest struct {
NodeID string `uri:"nodeId"`
}
type OpsNodeMetaResponse ¶
type OpsNodeRestartResponse ¶
type OpsNodeUndrainResponse ¶
type OpsNodesRequest ¶
type OpsNodesRequest struct {
}
type OpsNodesResponse ¶
type OpsNotificationChannel ¶
type OpsNotificationRule ¶
type OpsNotificationsGetRequest ¶
type OpsNotificationsGetRequest struct {
}
type OpsNotificationsUpdateRequest ¶
type OpsNotificationsUpdateRequest struct {
Enabled bool `json:"enabled"`
Channels []OpsNotificationChannel `json:"channels"`
Rules []OpsNotificationRule `json:"rules"`
}
type OpsProcessActionRequest ¶
type OpsProcessStartRequest ¶
type OpsProcessStartResponse ¶
type OpsServiceItem ¶
type OpsServiceItem struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Status string `json:"status"`
Address string `json:"address"`
GameID string `json:"gameId"`
Env string `json:"env"`
Version string `json:"version"`
Region string `json:"region"`
Zone string `json:"zone"`
Labels map[string]string `json:"labels"`
FunctionsCount int `json:"functionsCount"`
LastSeen string `json:"lastSeen"`
Metadata *OpsServiceMetadata `json:"metadata"`
}
type OpsServiceMetadata ¶
type OpsServiceMetadata struct {
Processes []OpsServiceProcess `json:"processes"`
ProcessesCount int `json:"processesCount"`
}
type OpsServiceProcess ¶
type OpsServicesRequest ¶
type OpsServicesRequest struct {
}
type OpsServicesResponse ¶
type OpsServicesResponse struct {
Services []OpsServiceItem `json:"services"`
Total int `json:"total"`
}
type OpsSilencesRequest ¶
type OpsSilencesRequest struct {
}
type OpsSilencesResponse ¶
type ProcessActionRequest ¶
type ProcessActionRequest = OpsProcessActionRequest
type ProcessActionResponse ¶
type ProcessActionResponse = OpsProcessActionResponse
type ProcessStartRequest ¶
type ProcessStartRequest = OpsProcessStartRequest
type ProcessStartResponse ¶
type ProcessStartResponse = OpsProcessStartResponse
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svcCtx *svc.ServiceContext) *Service
func (*Service) OpsAgentExecCommand ¶
func (s *Service) OpsAgentExecCommand(ctx context.Context, req *OpsExecCommandRequest) (*OpsExecCommandResponse, error)
func (*Service) OpsAgentMeta ¶
func (s *Service) OpsAgentMeta(ctx context.Context, req *OpsAgentMetaRequest) (*OpsAgentMetaResponse, error)
func (*Service) OpsAgentMetrics ¶
func (s *Service) OpsAgentMetrics(ctx context.Context, req *OpsAgentMetricsRequest) (*OpsAgentMetricsResponse, error)
func (*Service) OpsAgentProcessRestart ¶
func (s *Service) OpsAgentProcessRestart(ctx context.Context, req *OpsProcessActionRequest) (*OpsProcessActionResponse, error)
func (*Service) OpsAgentProcessStart ¶
func (s *Service) OpsAgentProcessStart(ctx context.Context, req *OpsProcessStartRequest) (*OpsProcessStartResponse, error)
func (*Service) OpsAgentProcessStop ¶
func (s *Service) OpsAgentProcessStop(ctx context.Context, req *OpsProcessActionRequest) (*OpsProcessActionResponse, error)
func (*Service) OpsAgentProcesses ¶
func (s *Service) OpsAgentProcesses(ctx context.Context, req *OpsAgentProcessesRequest) (*OpsAgentProcessesResponse, error)
func (*Service) OpsAgentSystemInfo ¶
func (s *Service) OpsAgentSystemInfo(ctx context.Context, req *OpsAgentSystemInfoRequest) (*OpsAgentSystemInfoResponse, error)
func (*Service) OpsAgentsList ¶
func (s *Service) OpsAgentsList(ctx context.Context, req *OpsAgentsListRequest) (*OpsAgentsListResponse, error)
func (*Service) OpsAlertSilence ¶
func (s *Service) OpsAlertSilence(ctx context.Context, req *OpsAlertSilenceRequest) (*OpsAlertSilenceResponse, error)
func (*Service) OpsAlerts ¶
func (s *Service) OpsAlerts(ctx context.Context, req *OpsAlertsRequest) (*OpsAlertsResponse, error)
func (*Service) OpsBackupCreate ¶
func (s *Service) OpsBackupCreate(ctx context.Context, req *OpsBackupCreateRequest) (*OpsBackupCreateResponse, error)
func (*Service) OpsBackupDelete ¶
func (s *Service) OpsBackupDelete(ctx context.Context, req *OpsBackupDeleteRequest) (*OpsBackupDeleteResponse, error)
func (*Service) OpsBackupDownload ¶
func (s *Service) OpsBackupDownload(ctx context.Context, req *OpsBackupDownloadRequest) (*OpsBackupDownloadResponse, error)
func (*Service) OpsBackupsList ¶
func (s *Service) OpsBackupsList(ctx context.Context, req *OpsBackupsListRequest) (*OpsBackupsListResponse, error)
func (*Service) OpsConfig ¶
func (s *Service) OpsConfig(ctx context.Context, req *OpsConfigRequest) (*OpsConfigResponse, error)
func (*Service) OpsFunctions ¶
func (s *Service) OpsFunctions(ctx context.Context, req *OpsFunctionsRequest) (*OpsFunctionsResponse, error)
func (*Service) OpsHealthGet ¶
func (s *Service) OpsHealthGet(ctx context.Context, req *OpsHealthGetRequest) (*OpsHealthGetResponse, error)
func (*Service) OpsHealthRun ¶
func (s *Service) OpsHealthRun(ctx context.Context, req *OpsHealthRunRequest) (*OpsHealthRunResponse, error)
func (*Service) OpsHealthUpdate ¶
func (s *Service) OpsHealthUpdate(ctx context.Context, req *OpsHealthUpdateRequest) (*OpsHealthUpdateResponse, error)
func (*Service) OpsMQ ¶
func (s *Service) OpsMQ(ctx context.Context, req *OpsMQRequest) (*OpsMQResponse, error)
func (*Service) OpsMaintenanceGet ¶
func (s *Service) OpsMaintenanceGet(ctx context.Context, req *OpsMaintenanceGetRequest) (*OpsMaintenanceGetResponse, error)
func (*Service) OpsMaintenanceUpdate ¶
func (s *Service) OpsMaintenanceUpdate(ctx context.Context, req *OpsMaintenanceUpdateRequest) (*OpsMaintenanceUpdateResponse, error)
func (*Service) OpsMetrics ¶
func (s *Service) OpsMetrics(ctx context.Context, req *OpsMetricsRequest) (*OpsMetricsResponse, error)
func (*Service) OpsNodeCommands ¶
func (s *Service) OpsNodeCommands(ctx context.Context, req *OpsNodeCommandsRequest) (*OpsNodeCommandsResponse, error)
func (*Service) OpsNodeDrain ¶
func (s *Service) OpsNodeDrain(ctx context.Context, req *OpsNodeCommandsRequest) (*OpsNodeDrainResponse, error)
func (*Service) OpsNodeMeta ¶
func (s *Service) OpsNodeMeta(ctx context.Context, req *OpsNodeMetaRequest) (*OpsNodeMetaResponse, error)
func (*Service) OpsNodeRestart ¶
func (s *Service) OpsNodeRestart(ctx context.Context, req *OpsNodeCommandsRequest) (*OpsNodeRestartResponse, error)
func (*Service) OpsNodeUndrain ¶
func (s *Service) OpsNodeUndrain(ctx context.Context, req *OpsNodeCommandsRequest) (*OpsNodeUndrainResponse, error)
func (*Service) OpsNodes ¶
func (s *Service) OpsNodes(ctx context.Context, req *OpsNodesRequest) (*OpsNodesResponse, error)
func (*Service) OpsNotificationsGet ¶
func (s *Service) OpsNotificationsGet(ctx context.Context, req *OpsNotificationsGetRequest) (*OpsNotificationsGetResponse, error)
func (*Service) OpsNotificationsUpdate ¶
func (s *Service) OpsNotificationsUpdate(ctx context.Context, req *OpsNotificationsUpdateRequest) (*OpsNotificationsUpdateResponse, error)
func (*Service) OpsServices ¶
func (s *Service) OpsServices(ctx context.Context, req *OpsServicesRequest) (*OpsServicesResponse, error)
func (*Service) OpsSilenceDelete ¶
func (s *Service) OpsSilenceDelete(ctx context.Context, req *OpsAlertSilenceRequest) (*OpsSilenceDeleteResponse, error)
func (*Service) OpsSilences ¶
func (s *Service) OpsSilences(ctx context.Context, req *OpsSilencesRequest) (*OpsSilencesResponse, error)
type ServiceItem ¶
type ServiceItem = OpsServiceItem
type ServiceMetadata ¶
type ServiceMetadata = OpsServiceMetadata
type ServiceProcess ¶
type ServiceProcess = OpsServiceProcess
type ServicesRequest ¶
type ServicesRequest = OpsServicesRequest
type ServicesResponse ¶
type ServicesResponse = OpsServicesResponse
type Silence ¶
type Silence struct {
Id string `json:"id"`
AlertType string `json:"alertType"`
Matchers interface{} `json:"matchers"`
StartAt string `json:"startAt"`
EndAt string `json:"endAt"`
CreatedBy string `json:"createdBy"`
}
Silence represents a silence rule
type SilenceDeleteRequest ¶
type SilenceDeleteRequest struct {
ID string `uri:"id"`
}
SilenceDeleteRequest represents the request to delete a silence
type SilenceDeleteResponse ¶
type SilenceDeleteResponse = OpsSilenceDeleteResponse
type SilencesListRequest ¶
type SilencesListRequest struct{}
SilencesListRequest represents the request to list silences
type SilencesListResponse ¶
type SilencesListResponse struct {
Items []Silence `json:"items"`
}
SilencesListResponse represents the response with a list of silences
type SilencesRequest ¶
type SilencesRequest = OpsSilencesRequest
type SilencesResponse ¶
type SilencesResponse = OpsSilencesResponse
Click to show internal directories.
Click to hide internal directories.