jmxtool

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonToKVMap

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

Types

type APIErr

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

type AgentClient

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

func NewAgentClient

func NewAgentClient(host, port string) *AgentClient

func (*AgentClient) UpdateCanary

func (agent *AgentClient) UpdateCanary(globalHeaders *spec.GlobalCanaryHeaders, version int64) error

func (*AgentClient) UpdateService

func (agent *AgentClient) UpdateService(newService *spec.Service, version int64) error

type AgentInterface

type AgentInterface interface {
	UpdateService(newService *spec.Service, version int64) error
	UpdateCanary(globalHeaders *spec.GlobalCanaryHeaders, version int64) error
}

type JMXRequestOperationType

type JMXRequestOperationType string

type JXMInterface

type JXMInterface interface {
	GetMbeanAttribute(mbean string, attribute string, path string) (interface{}, error)
	SetMbeanAttribute(mbean string, attribute string, path string, value interface{}) (interface{}, error)
	ExecuteMbeanOperation(mbean string, operation string, arguments []interface{}) (interface{}, error)
	ListMbean(mbean string) (interface{}, error)
	SearchMbeans(pattern string) (interface{}, error)
}

type JolokiaClient

type JolokiaClient struct {
	URL        string
	HttpClient *http.Client
}

func NewJolokiaClient

func NewJolokiaClient(host, port, path string) *JolokiaClient

func (*JolokiaClient) ExecuteMbeanOperation

func (client *JolokiaClient) ExecuteMbeanOperation(mbean string, operation string, arguments []interface{}) (interface{}, error)

func (*JolokiaClient) GetMbeanAttribute

func (client *JolokiaClient) GetMbeanAttribute(mbean string, attribute string, path string) (interface{}, error)

func (*JolokiaClient) ListMbean

func (client *JolokiaClient) ListMbean(mbean string) (interface{}, error)

func (*JolokiaClient) SearchMbeans

func (client *JolokiaClient) SearchMbeans(pattern string) (interface{}, error)

func (*JolokiaClient) SetMbeanAttribute

func (client *JolokiaClient) SetMbeanAttribute(mbean string, attribute string, path string, value interface{}) (interface{}, error)

type JolokiaResponse

type JolokiaResponse struct {
	Status    uint32
	Timestamp uint32
	Request   map[string]interface{}
	Value     interface{}
	Error     string
}

Jump to

Keyboard shortcuts

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