Example #1
0
func pipelineSummarize() transformer.Pipeline {
	flagset := flag.NewFlagSet("csv", flag.ExitOnError)
	dbRoot := flagset.String("uploads_leveldb_root", "/data/users/sburnett/bismark-upload-stats-leveldb", "Write leveldbs in this directory.")
	csvOutput := flagset.String("csv_output", "/dev/null", "Directory where we will write statistics in CSV format.")
	flagset.Parse(flag.Args()[1:])
	return stats.SummarizePipeline(store.NewLevelDbManager(*dbRoot), store.NewCsvFileManager(*csvOutput))
}
Example #2
0
func pipelineFilesystem() transformer.Pipeline {
	flagset := flag.NewFlagSet("filesystem", flag.ExitOnError)
	dbRoot := flagset.String("health_leveldb_root", "/data/users/sburnett/bismark-health-leveldb", "Write leveldbs in this directory.")
	csvOutput := flagset.String("csv_output", "/dev/null", "Write filesystem usage in CSV format to this file.")
	flagset.Parse(flag.Args()[1:])
	return health.FilesystemUsagePipeline(store.NewLevelDbManager(*dbRoot), store.NewCsvFileManager(*csvOutput))
}
Example #3
0
func pipelineSummarize() transformer.Pipeline {
	flagset := flag.NewFlagSet("summarize", flag.ExitOnError)
	dbRoot := flagset.String("health_leveldb_root", "/data/users/sburnett/bismark-health-leveldb", "Write leveldbs in this directory.")
	csvOutput := flagset.String("csv_output", "/dev/null", "Write reboots to a CSV file in this directory.")
	flagset.Parse(flag.Args()[1:])
	return health.SummarizeHealthPipeline(store.NewLevelDbManager(*dbRoot), store.NewCsvFileManager(*csvOutput))
}
Example #4
0
func pipelineDisjointPackages() transformer.Pipeline {
	flagset := flag.NewFlagSet("disjoint", flag.ExitOnError)
	dbRoot := flagset.String("logs_leveldb_root", "/data/users/sburnett/bismark-experiments-manager-logs-leveldb", "Write leveldbs in this directory.")
	csvOutput := flagset.String("csv_output", "/dev/null", "Write disjoint packages statistics in CSV format to this file.")
	flagset.Parse(flag.Args()[1:])
	return experiments.DisjointPackagesPipeline(store.NewLevelDbManager(*dbRoot), store.NewCsvFileManager(*csvOutput))
}
Example #5
0
func pipelinePackages() transformer.Pipeline {
	flagset := flag.NewFlagSet("packages", flag.ExitOnError)
	dbRoot := flagset.String("health_leveldb_root", "/data/users/sburnett/bismark-health-leveldb", "Write leveldbs in this directory.")
	csvOutput := flagset.String("csv_output", "/dev/null", "Write reboots to a CSV file in this directory.")
	sqliteFilename := flagset.String("sqlite_filename", "/dev/null", "Write to this sqlite database.")
	flagset.Parse(flag.Args()[1:])
	return health.PackagesPipeline(store.NewLevelDbManager(*dbRoot), store.NewCsvFileManager(*csvOutput), store.NewSqliteManager(*sqliteFilename))
}