diff --git a/Jenkinsfile b/Jenkinsfile index 3fcdc904a..35d6788ae 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ - TODO: #527 Get this list automatically from python-ci.yml at runtime. */ -def indicator_list = ['backfill_corrections', 'changehc', 'claims_hosp', 'google_symptoms', 'hhs_hosp', 'nchs_mortality', 'quidel_covidtest', 'sir_complainsalot', 'doctor_visits', 'nwss_wastewater', 'nssp'] +def indicator_list = ['backfill_corrections', 'changehc', 'claims_hosp', 'google_symptoms', 'hhs_hosp', 'nchs_mortality', 'quidel_covidtest', 'sir_complainsalot', 'doctor_visits', 'nwss_wastewater', 'nssp', 'nhsn'] def build_package_main = [:] def build_package_prod = [:] def deploy_staging = [:] diff --git a/ansible/templates/nhsn-params-prod.json.j2 b/ansible/templates/nhsn-params-prod.json.j2 new file mode 100644 index 000000000..436017ba9 --- /dev/null +++ b/ansible/templates/nhsn-params-prod.json.j2 @@ -0,0 +1,30 @@ +{ + "common": { + "export_dir": "/common/covidcast/receiving/nhsn", + "backup_dir": "./raw_data_backups", + "log_filename": "/var/log/indicators/nhsn.log", + "log_exceptions": false + }, + "indicator": { + "wip_signal": true, + "static_file_dir": "./static", + "socrata_token": "{{ nhsn_token }}" + }, + "validation": { + "common": { + "data_source": "nhsn", + "api_credentials": "{{ validation_api_key }}", + "span_length": 15, + "min_expected_lag": {"all": "7"}, + "max_expected_lag": {"all": "13"}, + "dry_run": true, + "suppressed_errors": [] + }, + "static": { + "minimum_sample_size": 0, + "missing_se_allowed": true, + "missing_sample_size_allowed": true + }, + "dynamic": {} + } +} diff --git a/ansible/templates/sir_complainsalot-params-prod.json.j2 b/ansible/templates/sir_complainsalot-params-prod.json.j2 index 324728767..7bb2d179a 100644 --- a/ansible/templates/sir_complainsalot-params-prod.json.j2 +++ b/ansible/templates/sir_complainsalot-params-prod.json.j2 @@ -45,6 +45,10 @@ "nssp": { "max_age":19, "maintainers": [] + }, + "nhsn": { + "max_age":19, + "maintainers": [] } } } diff --git a/ansible/vars.yaml b/ansible/vars.yaml index ff9ba135c..a50cda37b 100644 --- a/ansible/vars.yaml +++ b/ansible/vars.yaml @@ -59,6 +59,9 @@ nwss_wastewater_token: "{{ vault_cdc_socrata_token }}" # nssp nssp_token: "{{ vault_cdc_socrata_token }}" +# nhsn +nhsn_token: "{{ vault_cdc_socrata_token }}" + # SirCAL sir_complainsalot_api_key: "{{ vault_sir_complainsalot_api_key }}" sir_complainsalot_slack_token: "{{ vault_sir_complainsalot_slack_token }}"