Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Host string // contains filtered or unexported fields }
func NewClient ¶
func NewClient() *Client
NewClient returns a new MetricClient representing a metric client.
func (Client) AllMetrics ¶
AllMetrics returns all the metrics available for the pod.
func (Client) RequestCount ¶
RequestCount returns the average pod request within the current time window.
func (Client) ResponseTime ¶
ResponseTime returns the average pod response time.
type MetricType ¶
type MetricType string
const ( ResponseTime MetricType = "response_time" RequestCount MetricType = "request_count" Throughput MetricType = "throughput" All MetricType = "" )
func (MetricType) String ¶
func (m MetricType) String() string
Click to show internal directories.
Click to hide internal directories.