Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoValuesFound = errors.New("no values found")
)
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (*Factory) NewProvider ¶
func (f *Factory) NewProvider(providerCfg *config.PipedAnalysisProvider) (provider Provider, err error)
NewProvider generates an appropriate provider according to analysis provider config.
type Provider ¶
type Provider interface { analysisprovider.Provider // RunQuery runs the given query against the metrics provider, // and then checks if the results are expected or not. RunQuery(ctx context.Context, query string, expected config.AnalysisExpected) (result bool, err error) }
Provider represents a client for metrics provider which provides metrics for analysis.
Click to show internal directories.
Click to hide internal directories.