Connection Schedule

Introduction to Connection Schedules

The connection schedule controls when the library will be active for a given app. We recommend that the schedule starts about an hour before the need for data collection.

API

You can get the full connection schedule with:

GET /connectionSchedules

Which will return:

{
   "connectionSchedules":[
      {
         "scheduleId":"4afa30ac-3bb2-4965-a161-220462839d42",
         "from":"1619546400000",
         "to":"1619632800000",
         "appKey":"YOUR_APP_KEY"
      },
      {
         "scheduleId":"50f8481a-aeb7-40e8-8587-ba0f48f886af",
         "from":"1619719200000",
         "to":"1619805600000",
         "appKey":"YOUR_APP_KEY"
      }
   ]
}

You can add a new connection schedule with:

POST /connectionSchedules
{
   "appKey":"YOUR_APP_KEY",
   "from":"1619542800000",
   "to":"1619629200000"
}

Delete a connection schedule with:

DELETE /connectionSchedules/{scheduleId}

All times are in milliseconds since epoch