@@ -47,9 +47,12 @@ const (
4747 metricExporter string = "SCORECARD_METRIC_EXPORTER"
4848 ciiDataBucketURL string = "SCORECARD_CII_DATA_BUCKET_URL"
4949 blacklistedChecks string = "SCORECARD_BLACKLISTED_CHECKS"
50-
50+ // v2 results.
5151 bigqueryTableV2 string = "SCORECARD_BIGQUERY_TABLEV2"
5252 resultDataBucketURLV2 string = "SCORECARD_DATA_BUCKET_URLV2"
53+ // Raw results.
54+ rawBigqueryTable string = "RAW_SCORECARD_BIGQUERY_TABLE"
55+ rawResultDataBucketURL string = "RAW_SCORECARD_DATA_BUCKET_URL"
5356)
5457
5558var (
@@ -78,6 +81,9 @@ type config struct {
7881 // UPGRADEv2: to remove.
7982 ResultDataBucketURLV2 string `yaml:"result-data-bucket-url-v2"`
8083 BigQueryTableV2 string `yaml:"bigquery-table-v2"`
84+ // Raw results.
85+ RawResultDataBucketURL string `yaml:"raw-result-data-bucket-url"`
86+ RawBigQueryTable string `yaml:"raw-bigquery-table"`
8187}
8288
8389func getParsedConfigFromFile (byteValue []byte ) (config , error ) {
@@ -196,6 +202,18 @@ func GetResultDataBucketURLV2() (string, error) {
196202 return getStringConfigValue (resultDataBucketURLV2 , configYAML , "ResultDataBucketURLV2" , "result-data-bucket-url-v2" )
197203}
198204
205+ // GetRawBigQueryTable returns the table name to transfer cron job results.
206+ func GetRawBigQueryTable () (string , error ) {
207+ return getStringConfigValue (rawBigqueryTable , configYAML ,
208+ "RawBigQueryTable" , "raw-bigquery-table" )
209+ }
210+
211+ // GetRawResultDataBucketURL returns the bucketURL for storing cron job's raw results.
212+ func GetRawResultDataBucketURL () (string , error ) {
213+ return getStringConfigValue (rawResultDataBucketURL , configYAML ,
214+ "RawResultDataBucketURL" , "raw-result-data-bucket-url" )
215+ }
216+
199217// GetShardSize returns the shard_size for the cron job.
200218func GetShardSize () (int , error ) {
201219 return getIntConfigValue (shardSize , configYAML , "ShardSize" , "shard-size" )
0 commit comments