jolokia

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(jolokiaURL string, username, password string, logr *zap.SugaredLogger) *Client

func (*Client) Post

func (j *Client) Post(ctx context.Context, jmxReq JMXRequest, ip string) (JMXResponse, error)

type JMXRequest

type JMXRequest struct {
	Type       string   `json:"type"`
	Mbean      string   `json:"mbean"`
	Attributes []string `json:"attribute,omitempty"`
	Operation  string   `json:"operation,omitempty"`
	Arguments  []string `json:"arguments,omitempty"` //args are identified based on the order they are passed
}

type JMXResponse

type JMXResponse struct {
	Request json.RawMessage `json:"request"`
	Value   json.RawMessage `json:"value"`
	Status  int             `json:"status"`
	Error   string          `json:"error"`
}

type Target

type Target struct {
	URL      string `json:"url"`
	User     string `json:"user"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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