blob: b0f02c9a3af5279f3943a1fed02f56d2c2e3d365 [file] [log] [blame]
package anomalies
import (
"context"
"go.skia.org/infra/perf/go/chromeperf"
)
// Store provides the interface to get anomalies.
type Store interface {
// GetAnomalies retrieve anomalies for each trace within the begin commit and end commit.
GetAnomalies(ctx context.Context, traceNames []string, startCommitPosition int, endCommitPosition int) (chromeperf.AnomalyMap, error)
// GetAnomaliesAroundRevision retrieves traces with anomalies that were generated around a specific commit
GetAnomaliesAroundRevision(ctx context.Context, revision int) ([]chromeperf.AnomalyForRevision, error)
}