jmxtool

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONToKVMap added in v1.2.0

func JSONToKVMap(jsonStr string) (map[string]string, error)

JSONToKVMap converts JSON string to key value pairs

Types

type APIErr

type APIErr struct {
	Code    int    `yaml:"code"`
	Message string `yaml:"message"`
}

APIErr is the error struct for API

type AgentClient

type AgentClient struct {
	URL        string
	HTTPClient *http.Client
}

AgentClient stores the information of agent client

func NewAgentClient

func NewAgentClient(host, port string) *AgentClient

NewAgentClient creates the agent client

func (*AgentClient) UpdateAgentConfig added in v1.5.1

func (agent *AgentClient) UpdateAgentConfig(config *AgentConfig) error

UpdateAgentConfig updates agent config.

type AgentConfig added in v1.5.1

type AgentConfig struct {
	spec.Service `yaml:",inline"`

	Headers  string         `yaml:"easeagent.progress.forwarded.headers"`
	Reporter *AgentReporter `yaml:"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 added in v1.5.1

type AgentReporter struct {
	ReporterTLS *AgentReporterTLS `yaml:"tls"`

	AppendType      string `yaml:"appendType"`
	BootstrapServer string `yaml:"bootstrapServer"`
	Username        string `yaml:"username"`
	Password        string `yaml:"password"`
}

AgentReporter is the basic config for agent reporter.

type AgentReporterTLS added in v1.5.1

type AgentReporterTLS struct {
	Enable bool   `yaml:"enable"`
	Key    string `yaml:"key"`
	Cert   string `yaml:"cert"`
	CACert string `yaml:"ca_cert"`
}

AgentReporterTLS is the TLS config for agent resporter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL