Skip to content

Commit

Permalink
pointing to eu aggregates bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-sheldon committed May 11, 2022
1 parent 38a06dd commit 997e260
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data-serving/scripts/export-data/setup_country_export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require_env "${BUCKET:-}" "Specify S3 bucket to output files in BUCKET"

echo "Setting up country export job definitions for environment {ENV}..."

CASECOUNT_URL=${CASECOUNT_URL:-https://covid-19-aggregates.s3.amazonaws.com/country/latest.json}
CASECOUNT_URL=${CASECOUNT_URL:-https://covid-19-aggregates-eu.s3.amazonaws.com/country/latest.json}
# mongoexport rate in cases/s
# actual rate is higher, but this allows some wiggle room
# in calculation of Batch job timeouts
Expand Down
4 changes: 2 additions & 2 deletions docs/data_landscape.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Various buckets (data containers) are used for both temporary and long-term stor

Aggregated data from the line list used by the map visualisation.

* covid-19-aggregates
* covid-19-aggregates-dev
* covid-19-aggregates-eu
* covid-19-aggregates-dev-eu

### Export

Expand Down
4 changes: 2 additions & 2 deletions ingestion/monitoring/completeness.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def setup_logger():
setup_logger()
endpoint_url = os.getenv("ENDPOINT_URL")
objects = data_files(
os.getenv("COUNTRY_EXPORT_BUCKET", "covid-19-country-export"),
os.getenv("COUNTRY_EXPORT_BUCKET", "covid-19-country-export-eu"),
endpoint_url=endpoint_url,
)
data = completeness_s3_many(objects, endpoint_url)
upload(data, os.getenv("METRICS_BUCKET", "covid-19-aggregates"), endpoint_url)
upload(data, os.getenv("METRICS_BUCKET", "covid-19-aggregates-eu"), endpoint_url)
2 changes: 1 addition & 1 deletion ingestion/monitoring/daily_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import boto3


BUCKET = "covid-19-aggregates"
BUCKET = "covid-19-aggregates-eu"
WEBHOOK_URL = os.environ.get("SLACK_WEBHOOK_METRICS_URL", None)

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion ingestion/monitoring/freshness.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def setup_logger():
setup_logger()
if not (api_key := os.getenv("GDH_API_KEY")):
raise ValueError("Set GDH_API_KEY to your Global.health API key")
bucket = os.getenv("BUCKET", "covid-19-aggregates")
bucket = os.getenv("BUCKET", "covid-19-aggregates-eu")
s3_endpoint = os.getenv("S3_ENDPOINT")
instance = os.getenv("GDH_URL", DEFAULT_INSTANCE)
if sources := fetch_sources(api_key, instance):
Expand Down

0 comments on commit 997e260

Please sign in to comment.