Documentation
¶
Index ¶
- type GaugeDefinition
- type MetricsClient
- func (c *MetricsClient) Fetch(ctx context.Context) (*Snapshot, error)
- func (c *MetricsClient) WaitForGauge(ctx context.Context, definition GaugeDefinition, pollInterval time.Duration) error
- func (c *MetricsClient) WaitForSnapshot(ctx context.Context, pollInterval time.Duration, check func(*Snapshot) error) (*Snapshot, error)
- type Option
- type Snapshot
- type SnapshotCheck
- func GaugeAtLeast(name string, labels map[string]string, minimum float64) SnapshotCheck
- func GaugeEquals(name string, labels map[string]string, expected float64) SnapshotCheck
- func GaugeSumEquals(name string, labels map[string]string, expected float64) SnapshotCheck
- func HistogramCountAtLeast(name string, labels map[string]string, minimum uint64) SnapshotCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GaugeDefinition ¶
type MetricsClient ¶
type MetricsClient struct {
// contains filtered or unexported fields
}
func NewMetricsClient ¶
func NewMetricsClient(httpClient client.HTTP, options ...Option) *MetricsClient
func (*MetricsClient) WaitForGauge ¶
func (c *MetricsClient) WaitForGauge(ctx context.Context, definition GaugeDefinition, pollInterval time.Duration) error
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
func (*Snapshot) HistogramCount ¶
type SnapshotCheck ¶
func GaugeAtLeast ¶
func GaugeAtLeast(name string, labels map[string]string, minimum float64) SnapshotCheck
func GaugeEquals ¶
func GaugeEquals(name string, labels map[string]string, expected float64) SnapshotCheck
func GaugeSumEquals ¶
func GaugeSumEquals(name string, labels map[string]string, expected float64) SnapshotCheck
func HistogramCountAtLeast ¶
func HistogramCountAtLeast(name string, labels map[string]string, minimum uint64) SnapshotCheck
Click to show internal directories.
Click to hide internal directories.