Documentation ¶
Overview ¶
Client library to programmatically access cAdvisor API.
Index ¶
- type Client
- func (self *Client) Attributes() (attr *v2.Attributes, err error)
- func (self *Client) MachineInfo() (minfo *v1.MachineInfo, err error)
- func (self *Client) MachineStats() ([]v2.MachineStats, error)
- func (self *Client) Stats(name string, request *v2.RequestOptions) (map[string]v2.ContainerInfo, error)
- func (self *Client) VersionInfo() (version string, err error)
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
}
Client represents the base URL for a cAdvisor client.
func (*Client) Attributes ¶
func (self *Client) Attributes() (attr *v2.Attributes, err error)
Attributes returns hardware and software attributes of the machine.
func (*Client) MachineInfo ¶
func (self *Client) MachineInfo() (minfo *v1.MachineInfo, err error)
MachineInfo returns the JSON machine information for this client. A non-nil error result indicates a problem with obtaining the JSON machine information data.
func (*Client) MachineStats ¶ added in v0.21.0
func (self *Client) MachineStats() ([]v2.MachineStats, error)
MachineStats returns the JSON machine statistics for this client. A non-nil error result indicates a problem with obtaining the JSON machine information data.
func (*Client) Stats ¶ added in v0.23.6
func (self *Client) Stats(name string, request *v2.RequestOptions) (map[string]v2.ContainerInfo, error)
Stats returns stats for the requested container.
func (*Client) VersionInfo ¶
VersionInfo returns the version info for cAdvisor.
Click to show internal directories.
Click to hide internal directories.