performance

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package performance implements the Performance domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the Performance domain with the connection set to conn.

Types

type GetMetricsReply

type GetMetricsReply struct {
	Metrics []Metric `json:"metrics"` // Current values for run-time metrics.
}

GetMetricsReply represents the return values for GetMetrics in the Performance domain.

type Metric

type Metric struct {
	Name  string  `json:"name"`  // Metric name.
	Value float64 `json:"value"` // Metric value.
}

Metric Run-time execution metric.

type MetricsClient

type MetricsClient interface {
	// Recv calls RecvMsg on rpcc.Stream, blocks until the event is
	// triggered, context canceled or connection closed.
	Recv() (*MetricsReply, error)
	rpcc.Stream
}

MetricsClient is a client for Metrics events. Current values of the metrics.

type MetricsReply

type MetricsReply struct {
	Metrics []Metric `json:"metrics"` // Current values of the metrics.
	Title   string   `json:"title"`   // Timestamp title.
}

MetricsReply is the reply for Metrics events.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL