Extended prediction algorithm in Initial Resource to use also namespace

This commit is contained in:
Piotr Szczesniak
2015-10-02 12:08:22 +02:00
parent cb306f5935
commit f3cfdb0ef7
7 changed files with 153 additions and 73 deletions

View File

@@ -39,7 +39,7 @@ type dataSource interface {
// withing time range (start, end), number of samples considered and error if occured.
// If <exactMatch> then take only samples that concern the same image (both name and take are the same),
// otherwise consider also samples with the same image a possibly different tag.
GetUsagePercentile(kind api.ResourceName, perc int64, image string, exactMatch bool, start, end time.Time) (usage int64, samples int64, err error)
GetUsagePercentile(kind api.ResourceName, perc int64, image, namespace string, exactMatch bool, start, end time.Time) (usage int64, samples int64, err error)
}
func newDataSource(kind string) (dataSource, error) {