{"action":"created","comment":{"url":"https://api.github.com/repos/cloudtools/nymms/pulls/comments/27838427","id":27838427,"diff_hunk":"@@ -105,12 +117,43 @@ def increment_attempt(self):\n \n class Result(StateModel, OriginModel):\n     id = StringType(required=True)\n-    timestamp = TimestampType(default=time.time)\n+    timestamp = TimestampType(default=arrow.get)\n     output = StringType()\n     task_context = JSONType()\n ","path":"nymms/schemas/__init__.py","position":98,"original_position":98,"commit_id":"91df67470fd48dc8d91cff63ba73ce579d02d114","original_commit_id":"91df67470fd48dc8d91cff63ba73ce579d02d114","user":{"login":"berndtj","id":78191,"avatar_url":"https://avatars.githubusercontent.com/u/78191?v=3","gravatar_id":"","url":"https://api.github.com/users/berndtj","html_url":"https://github.com/berndtj","followers_url":"https://api.github.com/users/berndtj/followers","following_url":"https://api.github.com/users/berndtj/following{/other_user}","gists_url":"https://api.github.com/users/berndtj/gists{/gist_id}","starred_url":"https://api.github.com/users/berndtj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndtj/subscriptions","organizations_url":"https://api.github.com/users/berndtj/orgs","repos_url":"https://api.github.com/users/berndtj/repos","events_url":"https://api.github.com/users/berndtj/events{/privacy}","received_events_url":"https://api.github.com/users/berndtj/received_events","type":"User","site_admin":false},"body":"I had to add the following, to avoid the context from being submitted to sdb (too large):\r\n\r\nclass Options:\r\n        roles = {'sdb': blacklist('task_context')}\r\n\r\nwhere the result is saved, you also need to call to_primative(role='sdb')","created_at":"2015-04-06T22:52:53Z","updated_at":"2015-04-06T22:52:53Z","html_url":"https://github.com/cloudtools/nymms/pull/32#discussion_r27838427","pull_request_url":"https://api.github.com/repos/cloudtools/nymms/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/cloudtools/nymms/pulls/comments/27838427"},"html":{"href":"https://github.com/cloudtools/nymms/pull/32#discussion_r27838427"},"pull_request":{"href":"https://api.github.com/repos/cloudtools/nymms/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/cloudtools/nymms/pulls/32","id":32665497,"html_url":"https://github.com/cloudtools/nymms/pull/32","diff_url":"https://github.com/cloudtools/nymms/pull/32.diff","patch_url":"https://github.com/cloudtools/nymms/pull/32.patch","issue_url":"https://api.github.com/repos/cloudtools/nymms/issues/32","number":32,"state":"open","locked":false,"title":"Merge GH-31 with state/suppression manager/backend/provider changes","user":{"login":"phobologic","id":517334,"avatar_url":"https://avatars.githubusercontent.com/u/517334?v=3","gravatar_id":"","url":"https://api.github.com/users/phobologic","html_url":"https://github.com/phobologic","followers_url":"https://api.github.com/users/phobologic/followers","following_url":"https://api.github.com/users/phobologic/following{/other_user}","gists_url":"https://api.github.com/users/phobologic/gists{/gist_id}","starred_url":"https://api.github.com/users/phobologic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phobologic/subscriptions","organizations_url":"https://api.github.com/users/phobologic/orgs","repos_url":"https://api.github.com/users/phobologic/repos","events_url":"https://api.github.com/users/phobologic/events{/privacy}","received_events_url":"https://api.github.com/users/phobologic/received_events","type":"User","site_admin":false},"body":"This should take all of @berndtj 's commits in GH-31 and combine them with some changes to the way we interact with backend services & the like.\r\n\r\nFrom GH-31:\r\n```\r\n    Add REST API to NYMMS\r\n    * Use Flask-API for simple REST interface\r\n    * Shim in different serirializers (more user friendly) for\r\n      API\r\n    * Additionally allow setting of base config for easier\r\n      development on local systems\r\n    * Add a bunch of sample configs which work for dev\r\n```\r\nMy notes:\r\n```\r\n    - removed results API endpoint (see comment in code)\r\n    - removed base_dir stuff (caused issues, couldn't find a good use for it)\r\n    - moved deserializing from Backend -> Manager class\r\n      This seems to make things a bit cleaner.\r\n    - moved all APIs to use manager classes, except result endpoint, which\r\n      uses the SDB provider directly.\r\n    - return & allow setting of next_token when filtering for dealing with\r\n      SDB in the future.\r\n```","created_at":"2015-04-06T07:22:28Z","updated_at":"2015-04-06T22:52:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"220dc0828e1cbfb7658744b23465e0e9f374ae50","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudtools/nymms/pulls/32/commits","review_comments_url":"https://api.github.com/repos/cloudtools/nymms/pulls/32/comments","review_comment_url":"https://api.github.com/repos/cloudtools/nymms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudtools/nymms/issues/32/comments","statuses_url":"https://api.github.com/repos/cloudtools/nymms/statuses/91df67470fd48dc8d91cff63ba73ce579d02d114","head":{"label":"cloudtools:berndt_mike_api","ref":"berndt_mike_api","sha":"91df67470fd48dc8d91cff63ba73ce579d02d114","user":{"login":"cloudtools","id":3028687,"avatar_url":"https://avatars.githubusercontent.com/u/3028687?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudtools","html_url":"https://github.com/cloudtools","followers_url":"https://api.github.com/users/cloudtools/followers","following_url":"https://api.github.com/users/cloudtools/following{/other_user}","gists_url":"https://api.github.com/users/cloudtools/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudtools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudtools/subscriptions","organizations_url":"https://api.github.com/users/cloudtools/orgs","repos_url":"https://api.github.com/users/cloudtools/repos","events_url":"https://api.github.com/users/cloudtools/events{/privacy}","received_events_url":"https://api.github.com/users/cloudtools/received_events","type":"Organization","site_admin":false},"repo":{"id":9202192,"name":"nymms","full_name":"cloudtools/nymms","owner":{"login":"cloudtools","id":3028687,"avatar_url":"https://avatars.githubusercontent.com/u/3028687?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudtools","html_url":"https://github.com/cloudtools","followers_url":"https://api.github.com/users/cloudtools/followers","following_url":"https://api.github.com/users/cloudtools/following{/other_user}","gists_url":"https://api.github.com/users/cloudtools/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudtools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudtools/subscriptions","organizations_url":"https://api.github.com/users/cloudtools/orgs","repos_url":"https://api.github.com/users/cloudtools/repos","events_url":"https://api.github.com/users/cloudtools/events{/privacy}","received_events_url":"https://api.github.com/users/cloudtools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudtools/nymms","description":"Not Your Mother's Monitoring System","fork":false,"url":"https://api.github.com/repos/cloudtools/nymms","forks_url":"https://api.github.com/repos/cloudtools/nymms/forks","keys_url":"https://api.github.com/repos/cloudtools/nymms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudtools/nymms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudtools/nymms/teams","hooks_url":"https://api.github.com/repos/cloudtools/nymms/hooks","issue_events_url":"https://api.github.com/repos/cloudtools/nymms/issues/events{/number}","events_url":"https://api.github.com/repos/cloudtools/nymms/events","assignees_url":"https://api.github.com/repos/cloudtools/nymms/assignees{/user}","branches_url":"https://api.github.com/repos/cloudtools/nymms/branches{/branch}","tags_url":"https://api.github.com/repos/cloudtools/nymms/tags","blobs_url":"https://api.github.com/repos/cloudtools/nymms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudtools/nymms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudtools/nymms/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudtools/nymms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudtools/nymms/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudtools/nymms/languages","stargazers_url":"https://api.github.com/repos/cloudtools/nymms/stargazers","contributors_url":"https://api.github.com/repos/cloudtools/nymms/contributors","subscribers_url":"https://api.github.com/repos/cloudtools/nymms/subscribers","subscription_url":"https://api.github.com/repos/cloudtools/nymms/subscription","commits_url":"https://api.github.com/repos/cloudtools/nymms/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudtools/nymms/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudtools/nymms/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudtools/nymms/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudtools/nymms/contents/{+path}","compare_url":"https://api.github.com/repos/cloudtools/nymms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudtools/nymms/merges","archive_url":"https://api.github.com/repos/cloudtools/nymms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudtools/nymms/downloads","issues_url":"https://api.github.com/repos/cloudtools/nymms/issues{/number}","pulls_url":"https://api.github.com/repos/cloudtools/nymms/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudtools/nymms/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudtools/nymms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudtools/nymms/labels{/name}","releases_url":"https://api.github.com/repos/cloudtools/nymms/releases{/id}","created_at":"2013-04-03T18:46:03Z","updated_at":"2015-03-31T23:02:32Z","pushed_at":"2015-04-06T08:07:44Z","git_url":"git://github.com/cloudtools/nymms.git","ssh_url":"git@github.com:cloudtools/nymms.git","clone_url":"https://github.com/cloudtools/nymms.git","svn_url":"https://github.com/cloudtools/nymms","homepage":null,"size":1305,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":16,"forks":3,"open_issues":16,"watchers":22,"default_branch":"master"}},"base":{"label":"cloudtools:master","ref":"master","sha":"814b0e1831dd98dcbfc04cda0959ab32623c3699","user":{"login":"cloudtools","id":3028687,"avatar_url":"https://avatars.githubusercontent.com/u/3028687?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudtools","html_url":"https://github.com/cloudtools","followers_url":"https://api.github.com/users/cloudtools/followers","following_url":"https://api.github.com/users/cloudtools/following{/other_user}","gists_url":"https://api.github.com/users/cloudtools/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudtools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudtools/subscriptions","organizations_url":"https://api.github.com/users/cloudtools/orgs","repos_url":"https://api.github.com/users/cloudtools/repos","events_url":"https://api.github.com/users/cloudtools/events{/privacy}","received_events_url":"https://api.github.com/users/cloudtools/received_events","type":"Organization","site_admin":false},"repo":{"id":9202192,"name":"nymms","full_name":"cloudtools/nymms","owner":{"login":"cloudtools","id":3028687,"avatar_url":"https://avatars.githubusercontent.com/u/3028687?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudtools","html_url":"https://github.com/cloudtools","followers_url":"https://api.github.com/users/cloudtools/followers","following_url":"https://api.github.com/users/cloudtools/following{/other_user}","gists_url":"https://api.github.com/users/cloudtools/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudtools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudtools/subscriptions","organizations_url":"https://api.github.com/users/cloudtools/orgs","repos_url":"https://api.github.com/users/cloudtools/repos","events_url":"https://api.github.com/users/cloudtools/events{/privacy}","received_events_url":"https://api.github.com/users/cloudtools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudtools/nymms","description":"Not Your Mother's Monitoring System","fork":false,"url":"https://api.github.com/repos/cloudtools/nymms","forks_url":"https://api.github.com/repos/cloudtools/nymms/forks","keys_url":"https://api.github.com/repos/cloudtools/nymms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudtools/nymms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudtools/nymms/teams","hooks_url":"https://api.github.com/repos/cloudtools/nymms/hooks","issue_events_url":"https://api.github.com/repos/cloudtools/nymms/issues/events{/number}","events_url":"https://api.github.com/repos/cloudtools/nymms/events","assignees_url":"https://api.github.com/repos/cloudtools/nymms/assignees{/user}","branches_url":"https://api.github.com/repos/cloudtools/nymms/branches{/branch}","tags_url":"https://api.github.com/repos/cloudtools/nymms/tags","blobs_url":"https://api.github.com/repos/cloudtools/nymms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudtools/nymms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudtools/nymms/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudtools/nymms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudtools/nymms/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudtools/nymms/languages","stargazers_url":"https://api.github.com/repos/cloudtools/nymms/stargazers","contributors_url":"https://api.github.com/repos/cloudtools/nymms/contributors","subscribers_url":"https://api.github.com/repos/cloudtools/nymms/subscribers","subscription_url":"https://api.github.com/repos/cloudtools/nymms/subscription","commits_url":"https://api.github.com/repos/cloudtools/nymms/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudtools/nymms/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudtools/nymms/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudtools/nymms/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudtools/nymms/contents/{+path}","compare_url":"https://api.github.com/repos/cloudtools/nymms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudtools/nymms/merges","archive_url":"https://api.github.com/repos/cloudtools/nymms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudtools/nymms/downloads","issues_url":"https://api.github.com/repos/cloudtools/nymms/issues{/number}","pulls_url":"https://api.github.com/repos/cloudtools/nymms/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudtools/nymms/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudtools/nymms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudtools/nymms/labels{/name}","releases_url":"https://api.github.com/repos/cloudtools/nymms/releases{/id}","created_at":"2013-04-03T18:46:03Z","updated_at":"2015-03-31T23:02:32Z","pushed_at":"2015-04-06T08:07:44Z","git_url":"git://github.com/cloudtools/nymms.git","ssh_url":"git@github.com:cloudtools/nymms.git","clone_url":"https://github.com/cloudtools/nymms.git","svn_url":"https://github.com/cloudtools/nymms","homepage":null,"size":1305,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":16,"forks":3,"open_issues":16,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudtools/nymms/pulls/32"},"html":{"href":"https://github.com/cloudtools/nymms/pull/32"},"issue":{"href":"https://api.github.com/repos/cloudtools/nymms/issues/32"},"comments":{"href":"https://api.github.com/repos/cloudtools/nymms/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudtools/nymms/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudtools/nymms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudtools/nymms/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/cloudtools/nymms/statuses/91df67470fd48dc8d91cff63ba73ce579d02d114"}}}}