Documentation
¶
Index ¶
- type AgentMetaReportRequest
- type AgentMetaResponse
- type Handler
- type NodeMetaRequest
- type NodeMetaResponse
- type NodeMetaUpdateRequest
- type OpsAgentMetaResponse
- type OpsAgentMetaUpdateRequest
- type OpsNodeMetaRequest
- type OpsNodeMetaResponse
- type OpsServiceMetadata
- type OpsServiceProcess
- type RootRequest
- type RootResponse
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentMetaReportRequest ¶
type AgentMetaReportRequest struct{}
AgentMetaReportRequest Agent元数据上报请求
type AgentMetaResponse ¶
type AgentMetaResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
AgentMetaResponse Agent元数据响应
type NodeMetaRequest ¶
type NodeMetaRequest struct {
ID string `uri:"id"`
}
NodeMetaRequest Node元数据请求
type NodeMetaResponse ¶
type NodeMetaResponse struct {
Meta interface{} `json:"meta"`
}
NodeMetaResponse Node元数据响应
type NodeMetaUpdateRequest ¶
type NodeMetaUpdateRequest struct {
ID string `uri:"id"`
Meta interface{} `json:"meta"`
}
NodeMetaUpdateRequest Node元数据更新请求
type OpsAgentMetaResponse ¶
type OpsAgentMetaResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
OpsAgentMetaResponse Ops Agent元数据响应
type OpsAgentMetaUpdateRequest ¶
type OpsAgentMetaUpdateRequest struct {
AgentID string `json:"agentId"`
Meta interface{} `json:"meta"`
}
OpsAgentMetaUpdateRequest Ops Agent元数据更新请求
type OpsNodeMetaRequest ¶
type OpsNodeMetaRequest struct {
NodeID string `uri:"nodeId"`
}
OpsNodeMetaRequest Ops Node元数据请求
type OpsNodeMetaResponse ¶
type OpsNodeMetaResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
OpsNodeMetaResponse Ops Node元数据响应
type OpsServiceMetadata ¶
type OpsServiceMetadata struct {
Processes []OpsServiceProcess `json:"processes"`
ProcessesCount int `json:"processesCount"`
}
OpsServiceMetadata Ops服务元数据
type OpsServiceProcess ¶
type OpsServiceProcess struct {
ServiceID string `json:"service_id"`
Addr string `json:"addr"`
Version string `json:"version"`
LastSeenUnix int64 `json:"last_seen_unix"`
FunctionIDs []string `json:"function_ids"`
Functions int `json:"functions"`
}
OpsServiceProcess Ops服务进程信息
type RootResponse ¶
type RootResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data map[string]interface{} `json:"data"`
}
RootResponse 根路径响应
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svcCtx *svc.ServiceContext) *Service
Click to show internal directories.
Click to hide internal directories.