Documentation ¶
Index ¶
- type Configuration
- type MetricsClient
- func (c *MetricsClient) Query(ctx context.Context, query string) (*prommodel.Value, error)
- func (c *MetricsClient) QueryArray(ctx context.Context, duration time.Duration, step time.Duration, query string, ...) (*[]data.HistoryEntry, error)
- func (c *MetricsClient) QueryMap(ctx context.Context, query string) (map[string]float64, error)
- func (c *MetricsClient) QueryRange(ctx context.Context, query string, duration time.Duration, step time.Duration) (*prommodel.Value, error)
- func (c *MetricsClient) QuerySingle(ctx context.Context, query string) (*float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Url string
}
func BuildConfiguration ¶
func BuildConfiguration(namespace string) (Configuration, error)
type MetricsClient ¶
type MetricsClient struct {
// contains filtered or unexported fields
}
func NewMetrics ¶
func NewMetrics(configuration Configuration) (*MetricsClient, error)
func (*MetricsClient) QueryArray ¶ added in v0.1.2
func (*MetricsClient) QueryRange ¶ added in v0.1.2
func (*MetricsClient) QuerySingle ¶
Click to show internal directories.
Click to hide internal directories.