Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoDataFound = errors.New("no data found")
)
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
Type() string
// QueryPoints gives back data points within the given range.
QueryPoints(ctx context.Context, query string, queryRange QueryRange) (points []DataPoint, err error)
}
Provider represents a client for metrics provider which provides metrics for analysis.
type QueryRange ¶
type QueryRange struct {
// Required: Start of the queried time period
From time.Time
// End of the queried time period. Defaults to the current time.
To time.Time
}
QueryRange represents a sliced time range.
func (*QueryRange) String ¶
func (q *QueryRange) String() string
func (*QueryRange) Validate ¶
func (q *QueryRange) Validate() error
Click to show internal directories.
Click to hide internal directories.