cadvisor: github.com/google/cadvisor/client/v2 Index | Files

package v2

import "github.com/google/cadvisor/client/v2"

Client library to programmatically access cAdvisor API.

Index

Package Files

client.go

type Client Uses

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

Client represents the base URL for a cAdvisor client.

func NewClient Uses

func NewClient(url string) (*Client, error)

NewClient returns a new client with the specified base URL.

func (*Client) Attributes Uses

func (c *Client) Attributes() (attr *v2.Attributes, err error)

Attributes returns hardware and software attributes of the machine.

func (*Client) MachineInfo Uses

func (c *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 Uses

func (c *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 Uses

func (c *Client) Stats(name string, request *v2.RequestOptions) (map[string]v2.ContainerInfo, error)

Stats returns stats for the requested container.

func (*Client) VersionInfo Uses

func (c *Client) VersionInfo() (version string, err error)

VersionInfo returns the version info for cAdvisor.

Package v2 imports 11 packages (graph) and is imported by 26 packages. Updated 2020-04-23. Refresh now. Tools for package owners.