act-now-coalition / covid-data-model

Data backend providing computed data for the graphs displayed at https://covidactnow.org
https://covidactnow.org/
MIT License
149 stars 57 forks source link

Add cdcTransmissionLevel timeseries data to API. #1171

Closed mikelehen closed 3 years ago

mikelehen commented 3 years ago

This adds cdcTransmissionLevel timeseries data to the JSON and CSV api endpoints. In JSON it shows up as:

"cdcTransmissionLevelTimeseries": [
  {
    "date": "2020-01-14"
    "cdcTransmissionLevel": 0,
  },
  ...
}

In the CSV timeseries files it shows up as a new csvTransmissionLevel column.

In general I modeled the code off of the existing code for riskLevelsTimeseries.

Snapshot 2249 was built with these changes. Example endpoints with the new data: