Documentation
¶
Overview ¶
Package jmxtool provides some tools for jmx
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentClient ¶
AgentClient stores the information of agent client
func NewAgentClient ¶
func NewAgentClient(host, port string) *AgentClient
NewAgentClient creates the agent client
func (*AgentClient) GetAgentInfo ¶
func (agent *AgentClient) GetAgentInfo() (*AgentInfo, error)
GetAgentInfo gets the information of the agent.
func (*AgentClient) UpdateAgentConfig ¶
func (agent *AgentClient) UpdateAgentConfig(config *AgentConfig) error
UpdateAgentConfig updates agent config.
type AgentConfig ¶
type AgentConfig struct {
spec.Service `json:",inline"`
Headers string `json:"easeagent.progress.forwarded.headers"`
Reporter *AgentReporter `json:"reporter.outputServer"`
}
AgentConfig is the config pushed to agent.
type AgentInterface ¶
type AgentInterface interface {
UpdateAgentConfig(config *AgentConfig) error
}
AgentInterface is the interface operate the agent client.
type AgentReporter ¶
type AgentReporter struct {
ReporterTLS *AgentReporterTLS `json:"tls"`
AppendType string `json:"appendType"`
BootstrapServer string `json:"bootstrapServer"`
Username string `json:"username"`
Password string `json:"password"`
}
AgentReporter is the basic config for agent reporter.
Click to show internal directories.
Click to hide internal directories.