package v2

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

Client library to programmatically access cAdvisor API.

Index

Types

type Client

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

Client represents the base URL for a cAdvisor client.

func NewClient

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

NewClient returns a new client with the specified base URL.

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

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) VersionInfo

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

VersionInfo returns the version info for cAdvisor.

Source Files

client.go

Version
v0.20.5
Published
Jan 27, 2016
Platform
darwin/amd64
Imports
9 packages
Last checked
22 minutes ago

Tools for package owners.