{"action":"opened","number":340,"pull_request":{"url":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls/340","id":44359236,"html_url":"https://github.com/hawkular/hawkular-metrics/pull/340","diff_url":"https://github.com/hawkular/hawkular-metrics/pull/340.diff","patch_url":"https://github.com/hawkular/hawkular-metrics/pull/340.patch","issue_url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/340","number":340,"state":"open","locked":false,"title":"HWKMETRICS-127 Add back support for specifying data retention with tenant creation","user":{"login":"tsegismont","id":1500598,"avatar_url":"https://avatars.githubusercontent.com/u/1500598?v=3","gravatar_id":"","url":"https://api.github.com/users/tsegismont","html_url":"https://github.com/tsegismont","followers_url":"https://api.github.com/users/tsegismont/followers","following_url":"https://api.github.com/users/tsegismont/following{/other_user}","gists_url":"https://api.github.com/users/tsegismont/gists{/gist_id}","starred_url":"https://api.github.com/users/tsegismont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsegismont/subscriptions","organizations_url":"https://api.github.com/users/tsegismont/orgs","repos_url":"https://api.github.com/users/tsegismont/repos","events_url":"https://api.github.com/users/tsegismont/events{/privacy}","received_events_url":"https://api.github.com/users/tsegismont/received_events","type":"User","site_admin":false},"body":"This PR fixes the following issues:\n- HWKMETRICS-127 Add back support for specifying data retention with tenant creation\n- HWKMETRICS-126 Data points timestamp defaults to 0\n- HWKMETRICS-244 Internal server error when sending malformed availability data points\n\nAlong with the fixes, it consolidates the models:\n- all model classes (request and response) under the same package for clarity\n- TenantParam renamed to TenantDefinition because it's both a request and response model\n- shared MetricDefinition model class\n- all model classes immutable\n- use @JsonCreator for deserialization and basic, on-the-fly validation\n- annotate getters for serialization when it makes sense (filter out empty collections/maps, serializer selection, custom field name)\n\nNote that for HWKMETRICS-126, we won't provide a way to use server timestamp. If, in the future, we get demand for this, a solution would be to add a separate endpoint.","created_at":"2015-09-07T14:14:05Z","updated_at":"2015-09-07T14:14:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls/340/commits","review_comments_url":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls/340/comments","review_comment_url":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/340/comments","statuses_url":"https://api.github.com/repos/hawkular/hawkular-metrics/statuses/a226c159473e513c9f1975a26b5eda1de0571294","head":{"label":"tsegismont:jira/HWKMETRICS-127","ref":"jira/HWKMETRICS-127","sha":"a226c159473e513c9f1975a26b5eda1de0571294","user":{"login":"tsegismont","id":1500598,"avatar_url":"https://avatars.githubusercontent.com/u/1500598?v=3","gravatar_id":"","url":"https://api.github.com/users/tsegismont","html_url":"https://github.com/tsegismont","followers_url":"https://api.github.com/users/tsegismont/followers","following_url":"https://api.github.com/users/tsegismont/following{/other_user}","gists_url":"https://api.github.com/users/tsegismont/gists{/gist_id}","starred_url":"https://api.github.com/users/tsegismont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsegismont/subscriptions","organizations_url":"https://api.github.com/users/tsegismont/orgs","repos_url":"https://api.github.com/users/tsegismont/repos","events_url":"https://api.github.com/users/tsegismont/events{/privacy}","received_events_url":"https://api.github.com/users/tsegismont/received_events","type":"User","site_admin":false},"repo":{"id":19787241,"name":"hawkular-metrics","full_name":"tsegismont/hawkular-metrics","owner":{"login":"tsegismont","id":1500598,"avatar_url":"https://avatars.githubusercontent.com/u/1500598?v=3","gravatar_id":"","url":"https://api.github.com/users/tsegismont","html_url":"https://github.com/tsegismont","followers_url":"https://api.github.com/users/tsegismont/followers","following_url":"https://api.github.com/users/tsegismont/following{/other_user}","gists_url":"https://api.github.com/users/tsegismont/gists{/gist_id}","starred_url":"https://api.github.com/users/tsegismont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsegismont/subscriptions","organizations_url":"https://api.github.com/users/tsegismont/orgs","repos_url":"https://api.github.com/users/tsegismont/repos","events_url":"https://api.github.com/users/tsegismont/events{/privacy}","received_events_url":"https://api.github.com/users/tsegismont/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tsegismont/hawkular-metrics","description":"Time Series Metrics Engine based on Cassandra","fork":true,"url":"https://api.github.com/repos/tsegismont/hawkular-metrics","forks_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/forks","keys_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/teams","hooks_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/hooks","issue_events_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/issues/events{/number}","events_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/events","assignees_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/assignees{/user}","branches_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/branches{/branch}","tags_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/tags","blobs_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/git/refs{/sha}","trees_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/statuses/{sha}","languages_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/languages","stargazers_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/stargazers","contributors_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/contributors","subscribers_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/subscribers","subscription_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/subscription","commits_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/commits{/sha}","git_commits_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/git/commits{/sha}","comments_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/comments{/number}","issue_comment_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/issues/comments{/number}","contents_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/contents/{+path}","compare_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/merges","archive_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/downloads","issues_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/issues{/number}","pulls_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/pulls{/number}","milestones_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/milestones{/number}","notifications_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/labels{/name}","releases_url":"https://api.github.com/repos/tsegismont/hawkular-metrics/releases{/id}","created_at":"2014-05-14T16:28:24Z","updated_at":"2015-05-06T11:25:42Z","pushed_at":"2015-09-07T14:14:04Z","git_url":"git://github.com/tsegismont/hawkular-metrics.git","ssh_url":"git@github.com:tsegismont/hawkular-metrics.git","clone_url":"https://github.com/tsegismont/hawkular-metrics.git","svn_url":"https://github.com/tsegismont/hawkular-metrics","homepage":"","size":12875,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hawkular:master","ref":"master","sha":"419a9ce4b0e11e19ecb2c06b7b013a83adcb8f76","user":{"login":"hawkular","id":10179627,"avatar_url":"https://avatars.githubusercontent.com/u/10179627?v=3","gravatar_id":"","url":"https://api.github.com/users/hawkular","html_url":"https://github.com/hawkular","followers_url":"https://api.github.com/users/hawkular/followers","following_url":"https://api.github.com/users/hawkular/following{/other_user}","gists_url":"https://api.github.com/users/hawkular/gists{/gist_id}","starred_url":"https://api.github.com/users/hawkular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawkular/subscriptions","organizations_url":"https://api.github.com/users/hawkular/orgs","repos_url":"https://api.github.com/users/hawkular/repos","events_url":"https://api.github.com/users/hawkular/events{/privacy}","received_events_url":"https://api.github.com/users/hawkular/received_events","type":"Organization","site_admin":false},"repo":{"id":17705626,"name":"hawkular-metrics","full_name":"hawkular/hawkular-metrics","owner":{"login":"hawkular","id":10179627,"avatar_url":"https://avatars.githubusercontent.com/u/10179627?v=3","gravatar_id":"","url":"https://api.github.com/users/hawkular","html_url":"https://github.com/hawkular","followers_url":"https://api.github.com/users/hawkular/followers","following_url":"https://api.github.com/users/hawkular/following{/other_user}","gists_url":"https://api.github.com/users/hawkular/gists{/gist_id}","starred_url":"https://api.github.com/users/hawkular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawkular/subscriptions","organizations_url":"https://api.github.com/users/hawkular/orgs","repos_url":"https://api.github.com/users/hawkular/repos","events_url":"https://api.github.com/users/hawkular/events{/privacy}","received_events_url":"https://api.github.com/users/hawkular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hawkular/hawkular-metrics","description":"Time Series Metrics Engine based on Cassandra","fork":false,"url":"https://api.github.com/repos/hawkular/hawkular-metrics","forks_url":"https://api.github.com/repos/hawkular/hawkular-metrics/forks","keys_url":"https://api.github.com/repos/hawkular/hawkular-metrics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hawkular/hawkular-metrics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hawkular/hawkular-metrics/teams","hooks_url":"https://api.github.com/repos/hawkular/hawkular-metrics/hooks","issue_events_url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/events{/number}","events_url":"https://api.github.com/repos/hawkular/hawkular-metrics/events","assignees_url":"https://api.github.com/repos/hawkular/hawkular-metrics/assignees{/user}","branches_url":"https://api.github.com/repos/hawkular/hawkular-metrics/branches{/branch}","tags_url":"https://api.github.com/repos/hawkular/hawkular-metrics/tags","blobs_url":"https://api.github.com/repos/hawkular/hawkular-metrics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hawkular/hawkular-metrics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hawkular/hawkular-metrics/git/refs{/sha}","trees_url":"https://api.github.com/repos/hawkular/hawkular-metrics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hawkular/hawkular-metrics/statuses/{sha}","languages_url":"https://api.github.com/repos/hawkular/hawkular-metrics/languages","stargazers_url":"https://api.github.com/repos/hawkular/hawkular-metrics/stargazers","contributors_url":"https://api.github.com/repos/hawkular/hawkular-metrics/contributors","subscribers_url":"https://api.github.com/repos/hawkular/hawkular-metrics/subscribers","subscription_url":"https://api.github.com/repos/hawkular/hawkular-metrics/subscription","commits_url":"https://api.github.com/repos/hawkular/hawkular-metrics/commits{/sha}","git_commits_url":"https://api.github.com/repos/hawkular/hawkular-metrics/git/commits{/sha}","comments_url":"https://api.github.com/repos/hawkular/hawkular-metrics/comments{/number}","issue_comment_url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/comments{/number}","contents_url":"https://api.github.com/repos/hawkular/hawkular-metrics/contents/{+path}","compare_url":"https://api.github.com/repos/hawkular/hawkular-metrics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hawkular/hawkular-metrics/merges","archive_url":"https://api.github.com/repos/hawkular/hawkular-metrics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hawkular/hawkular-metrics/downloads","issues_url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues{/number}","pulls_url":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls{/number}","milestones_url":"https://api.github.com/repos/hawkular/hawkular-metrics/milestones{/number}","notifications_url":"https://api.github.com/repos/hawkular/hawkular-metrics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hawkular/hawkular-metrics/labels{/name}","releases_url":"https://api.github.com/repos/hawkular/hawkular-metrics/releases{/id}","created_at":"2014-03-13T10:07:30Z","updated_at":"2015-08-29T02:47:44Z","pushed_at":"2015-09-07T11:41:18Z","git_url":"git://github.com/hawkular/hawkular-metrics.git","ssh_url":"git@github.com:hawkular/hawkular-metrics.git","clone_url":"https://github.com/hawkular/hawkular-metrics.git","svn_url":"https://github.com/hawkular/hawkular-metrics","homepage":"","size":18970,"stargazers_count":54,"watchers_count":54,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":17,"forks":34,"open_issues":17,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls/340"},"html":{"href":"https://github.com/hawkular/hawkular-metrics/pull/340"},"issue":{"href":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/340"},"comments":{"href":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/340/comments"},"review_comments":{"href":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls/340/comments"},"review_comment":{"href":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls/340/commits"},"statuses":{"href":"https://api.github.com/repos/hawkular/hawkular-metrics/statuses/a226c159473e513c9f1975a26b5eda1de0571294"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":1479,"deletions":1184,"changed_files":44}}