Community Health Toolkit

Are targets available in any of the JSON that comes to PostgreSQL?

Question by @michael · Nov 15, 2016 at 04:00 PM

Are the configured values for targets available anywhere in the JSON that gets replicated to PostgreSQL? If so, where can I find it?


1 Like

They are configured in the app settings so assuming the ddoc is available look in settings.tasks.targets. It looks something like this:

       "targets": {
           "enabled": true,
           "items": [
                   "id": "registrations",
                   "type": "count",
                   "name": [
                           "content": "registrations",
                           "locale": "en"
                   "icon": "registrations",
                   "goal": 50