From b0f9d9b675c8f22d49c500a13c0a29079e2a1ebc Mon Sep 17 00:00:00 2001 From: Ray Slakinski Date: Fri, 21 May 2021 12:34:51 -0400 Subject: [PATCH] setting population to 12+ --- contrib/grafana/dashboard.json | 2 +- contrib/update_dashboard/ontvacstats-snapshot.json | 2 +- main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/grafana/dashboard.json b/contrib/grafana/dashboard.json index 3b81de6..e7a4aa7 100644 --- a/contrib/grafana/dashboard.json +++ b/contrib/grafana/dashboard.json @@ -350,7 +350,7 @@ ], "timeFrom": null, "timeShift": null, - "title": "Total Vaccinations & Fully Vaccinated (18+)", + "title": "Total Vaccinations & Fully Vaccinated (12+)", "type": "bargauge" } ], diff --git a/contrib/update_dashboard/ontvacstats-snapshot.json b/contrib/update_dashboard/ontvacstats-snapshot.json index 0fe8468..bd2c51b 100644 --- a/contrib/update_dashboard/ontvacstats-snapshot.json +++ b/contrib/update_dashboard/ontvacstats-snapshot.json @@ -351,7 +351,7 @@ ], "timeFrom": null, "timeShift": null, - "title": "Total Vaccinations & Fully Vaccinated (18+)", + "title": "Total Vaccinations & Fully Vaccinated (12+)", "type": "bargauge" } ], diff --git a/main.go b/main.go index 48a97cd..cfd9ffc 100644 --- a/main.go +++ b/main.go @@ -64,7 +64,7 @@ func init() { func updateMetrics() { data_url := "https://data.ontario.ca/api/3/action/datastore_search?sort=report_date+desc&limit=1&resource_id=8a89caa9-511c-4568-af89-7f2174b4378c" - eligiblePopulation := int64(11971129) // Ontario population 18+ + eligiblePopulation := int64(12932471) // Ontario population 12+ (https://www150.statcan.gc.ca/t1/tbl1/en/cv.action?pid=1710000501) resp, getErr := http.Get(data_url) if getErr != nil { log.Println(getErr)