GitHub PullRequestReviewCommentEvent at 2014-05-23 02:45:51
Repository: tidepool-org.github.io
Actor: kentquirk
Payload: {"comment":{"url":"https://api.github.com/repos/tidepool-org/tidepool-org.github.io/pulls/comments/12984260","id":12984260,"diff_hunk":"@@ -0,0 +1,92 @@\n+# Settings\n+\n+A settings object represents the settings of a pump.  This is separate from deviceMeta events because, we decided to make it separate.  A settings object sent into our API looks like\n+\n+```\n+{\n+    \"type\": \"settings\",\n+    \"time\": see_common_fields,\n+    \"deviceId\": see_common_fields,\n+    \"source\": see_common_fields\n+    \"activeBasalSchedule\": currently_active_schedule_name,\n+    \"units\": see_below,\n+    \"basalSchedules\": see_below,\n+    \"carbRatio\" : see_below,\n+    \"insulinSensitivity\" : see_below,\n+    \"bgTarget\": see_below\n+}\n+```\n+\n+* `units`: an object representing the units that the pump is operating with.  Looks like\n+\n+    ``` json\n+    {\n+      \"carb\": \"grams\",\n+      \"bg\": \"mg/dL\"\n+    }\n+    ```\n+\n+* `basalSchedules`: an object with entries for each schedule programmed into the pump.  Looks like\n+\n+    ``` json\n+    {\n+        \"standard\": [ \n+          { \"rate\": 0.8, \"start\": 0 },\n+          { \"rate\": 0.75, \"start\": 3600000 },\n+          ...\n+        ],\n+        \"pattern a\": [","path":"data-model/v1/settings.md","position":38,"original_position":38,"commit_id":"84c84265075707bed9a20f2af36432f471c44ac7","original_commit_id":"84c84265075707bed9a20f2af36432f471c44ac7","user":{"login":"kentquirk","id":755528,"avatar_url":"https://avatars.githubusercontent.com/u/755528?","gravatar_id":"206d2c01c325d130b22b7369921a0687","url":"https://api.github.com/users/kentquirk","html_url":"https://github.com/kentquirk","followers_url":"https://api.github.com/users/kentquirk/followers","following_url":"https://api.github.com/users/kentquirk/following{/other_user}","gists_url":"https://api.github.com/users/kentquirk/gists{/gist_id}","starred_url":"https://api.github.com/users/kentquirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentquirk/subscriptions","organizations_url":"https://api.github.com/users/kentquirk/orgs","repos_url":"https://api.github.com/users/kentquirk/repos","events_url":"https://api.github.com/users/kentquirk/events{/privacy}","received_events_url":"https://api.github.com/users/kentquirk/received_events","type":"User","site_admin":false},"body":"Should we maybe have an array of patterns with name fields instead of using the names as keys?","created_at":"2014-05-23T02:45:51Z","updated_at":"2014-05-23T02:45:51Z","html_url":"https://github.com/tidepool-org/tidepool-org.github.io/pull/14#discussion_r12984260","pull_request_url":"https://api.github.com/repos/tidepool-org/tidepool-org.github.io/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/tidepool-org/tidepool-org.github.io/pulls/comments/12984260"},"html":{"href":"https://github.com/tidepool-org/tidepool-org.github.io/pull/14#discussion_r12984260"},"pull_request":{"href":"https://api.github.com/repos/tidepool-org/tidepool-org.github.io/pulls/14"}}}}