Documentation
¶
Index ¶
- Constants
- func GetElasticLogFileContent(ctx context.Context, instance *model.Instance, body interface{}) (interface{}, error)
- func GetElasticLogFiles(ctx context.Context, instance *model.Instance, logsPath string) (interface{}, error)
- func GetElasticsearchNodesViaAgent(ctx context.Context, endpoint string) (*elastic.DiscoveryResult, error)
- func GetEnrolledNodesByAgent(instanceID string) (map[string]BindingItem, error)
- func Init()
- func NewClusterSettings(clusterID string) *model.Setting
- func NewIndexSettings(clusterID, nodeID, agentID, indexName, indexID string) *model.Setting
- func NewNodeAgentSettings(instanceID string, item *BindingItem) *model.Setting
- type APIHandler
- type BindingItem
- type ClusterInfo
- type RemoteConfig
Constants ¶
View Source
const Cluster = "cluster_settings"
View Source
const Index = "index_settings"
View Source
const LastAgentHash = "last_agent_hash"
View Source
const Node = "node_settings"
Variables ¶
This section is empty.
Functions ¶
func GetElasticLogFiles ¶
func GetElasticsearchNodesViaAgent ¶
func GetElasticsearchNodesViaAgent(ctx context.Context, endpoint string) (*elastic.DiscoveryResult, error)
get nodes info via agent
func GetEnrolledNodesByAgent ¶
func GetEnrolledNodesByAgent(instanceID string) (map[string]BindingItem, error)
node -> binding item
func NewClusterSettings ¶
func NewIndexSettings ¶
func NewNodeAgentSettings ¶
func NewNodeAgentSettings(instanceID string, item *BindingItem) *model.Setting
Types ¶
type APIHandler ¶
func (*APIHandler) GetHostAgentInfo ¶
func (h *APIHandler) GetHostAgentInfo(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
func (*APIHandler) GetHostElasticProcess ¶
func (h *APIHandler) GetHostElasticProcess(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
type BindingItem ¶
type ClusterInfo ¶
type ClusterInfo struct {
ClusterIDs []string `json:"cluster_id"`
}
type RemoteConfig ¶
type RemoteConfig struct { orm.ORMObjectBase Metadata model.Metadata `json:"metadata" elastic_mapping:"metadata: { type: object }"` Payload common.ConfigFile `json:"payload" elastic_mapping:"payload: { type: object}"` }
Click to show internal directories.
Click to hide internal directories.