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
}
Client is a metrics client for DC/OS.
func NewClient ¶
func NewClient(baseClient *httpclient.Client) *Client
NewClient creates a new metrics client.
type Container ¶
type Container struct { Datapoints []Datapoint `json:"datapoints"` Dimensions struct { MesosID string `json:"mesos_id"` ClusterID string `json:"cluster_id"` ContainerID string `json:"container_id"` FrameworkName string `json:"framework_name"` TaskName string `json:"task_name"` Hostname string `json:"hostname"` Labels struct { DcosClusterID string `json:"dcos_cluster_id"` DcosClusterName string `json:"dcos_cluster_name"` FaultDomainRegion string `json:"fault_domain_region"` FaultDomainZone string `json:"fault_domain_zone"` Host string `json:"host"` } `json:"labels"` } `json:"dimensions"` }
Container represents the metrics of a container.
Click to show internal directories.
Click to hide internal directories.