payload: {"action":"created","comment":{"url":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/comments/347691149","pull_request_review_id":318714603,"id":347691149,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0NzY5MTE0OQ==","diff_hunk":"@@ -0,0 +1,74 @@\n+/*\n+ * Copyright © 2019 Cask Data, Inc.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n+ * use this file except in compliance with the License. You may obtain a copy of\n+ * the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+ * License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+package io.cdap.plugin.ga360.source.batch;\n+\n+import com.google.api.client.googleapis.json.GoogleJsonError;\n+import com.google.api.client.googleapis.json.GoogleJsonResponseException;\n+import io.cdap.cdap.api.annotation.Description;\n+import io.cdap.cdap.api.annotation.Macro;\n+import io.cdap.cdap.api.annotation.Name;\n+import io.cdap.cdap.etl.api.FailureCollector;\n+import io.cdap.plugin.ga360.source.common.BaseSourceConfig;\n+import io.cdap.plugin.ga360.source.common.requests.ReportsRequestFactory;\n+\n+import javax.annotation.Nullable;\n+\n+/**\n+ * Provides all required configuration for reading Google Analytics data from Batch Source.\n+ */\n+public class GoogleAnalyticsBatchSourceConfig extends BaseSourceConfig {\n+\n+  public static final String SAMPLING_LEVEL = \"sampleSize\";\n+\n+  @Name(SAMPLING_LEVEL)\n+  @Description(\"Desired report sample size\")\n+  @Nullable\n+  @Macro\n+  protected String sampleSize;\n+\n+  public GoogleAnalyticsBatchSourceConfig(String referenceName) {\n+    super(referenceName);\n+  }\n+\n+  @Nullable\n+  public String getSampleSize() {\n+    return sampleSize;\n+  }\n+\n+  @Override\n+  public void validate(FailureCollector failureCollector) {\n+    super.validate(failureCollector);\n+  }\n+\n+  @Override\n+  protected void validateMetricAndDimensionCombination(FailureCollector failureCollector) {\n+    super.validateMetricAndDimensionCombination(failureCollector);\n+    try {\n+      ReportsRequestFactory.requestNextReports(this, null);\n+    } catch (IllegalStateException e) {\n+      Throwable cause = e.getCause();\n+      if (cause instanceof GoogleJsonResponseException) {","path":"src/main/java/io/cdap/plugin/ga360/source/batch/GoogleAnalyticsBatchSourceConfig.java","position":63,"original_position":63,"commit_id":"3ec1662ccfc7b13e971541367a5be087600a1168","original_commit_id":"3ec1662ccfc7b13e971541367a5be087600a1168","user":{"login":"yaojiefeng","id":12615579,"node_id":"MDQ6VXNlcjEyNjE1NTc5","avatar_url":"https://avatars0.githubusercontent.com/u/12615579?v=4","gravatar_id":"","url":"https://api.github.com/users/yaojiefeng","html_url":"https://github.com/yaojiefeng","followers_url":"https://api.github.com/users/yaojiefeng/followers","following_url":"https://api.github.com/users/yaojiefeng/following{/other_user}","gists_url":"https://api.github.com/users/yaojiefeng/gists{/gist_id}","starred_url":"https://api.github.com/users/yaojiefeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaojiefeng/subscriptions","organizations_url":"https://api.github.com/users/yaojiefeng/orgs","repos_url":"https://api.github.com/users/yaojiefeng/repos","events_url":"https://api.github.com/users/yaojiefeng/events{/privacy}","received_events_url":"https://api.github.com/users/yaojiefeng/received_events","type":"User","site_admin":false},"body":"This will ignore the exception if the cause is not `GoogleJsonResponseException`, we should also use failureCollector to capture this, but not related it to any properties","created_at":"2019-11-19T01:23:01Z","updated_at":"2019-11-19T01:40:50Z","html_url":"https://github.com/data-integrations/google-analytics-360/pull/4#discussion_r347691149","pull_request_url":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/comments/347691149"},"html":{"href":"https://github.com/data-integrations/google-analytics-360/pull/4#discussion_r347691149"},"pull_request":{"href":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/4","id":337351196,"node_id":"MDExOlB1bGxSZXF1ZXN0MzM3MzUxMTk2","html_url":"https://github.com/data-integrations/google-analytics-360/pull/4","diff_url":"https://github.com/data-integrations/google-analytics-360/pull/4.diff","patch_url":"https://github.com/data-integrations/google-analytics-360/pull/4.patch","issue_url":"https://api.github.com/repos/data-integrations/google-analytics-360/issues/4","number":4,"state":"open","locked":false,"title":"CDAP-15861 Google Analytics 360 (SaaS source)","user":{"login":"anton-kai","id":55057785,"node_id":"MDQ6VXNlcjU1MDU3Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/55057785?v=4","gravatar_id":"","url":"https://api.github.com/users/anton-kai","html_url":"https://github.com/anton-kai","followers_url":"https://api.github.com/users/anton-kai/followers","following_url":"https://api.github.com/users/anton-kai/following{/other_user}","gists_url":"https://api.github.com/users/anton-kai/gists{/gist_id}","starred_url":"https://api.github.com/users/anton-kai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anton-kai/subscriptions","organizations_url":"https://api.github.com/users/anton-kai/orgs","repos_url":"https://api.github.com/users/anton-kai/repos","events_url":"https://api.github.com/users/anton-kai/events{/privacy}","received_events_url":"https://api.github.com/users/anton-kai/received_events","type":"User","site_admin":false},"body":"JIRA: https://issues.cask.co/browse/CDAP-15861\r\nDOC: https://wiki.cask.co/display/CE/Google+Analytics+360\r\n\r\nThis PR contains batch and streaming sources","created_at":"2019-11-06T13:08:32Z","updated_at":"2019-11-19T01:40:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"713ec71f1807c49ecd743704f1984323bb8694ab","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/4/commits","review_comments_url":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/4/comments","review_comment_url":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/comments{/number}","comments_url":"https://api.github.com/repos/data-integrations/google-analytics-360/issues/4/comments","statuses_url":"https://api.github.com/repos/data-integrations/google-analytics-360/statuses/3ec1662ccfc7b13e971541367a5be087600a1168","head":{"label":"anton-kai:feature/CDAP-15861-ga360","ref":"feature/CDAP-15861-ga360","sha":"3ec1662ccfc7b13e971541367a5be087600a1168","user":{"login":"anton-kai","id":55057785,"node_id":"MDQ6VXNlcjU1MDU3Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/55057785?v=4","gravatar_id":"","url":"https://api.github.com/users/anton-kai","html_url":"https://github.com/anton-kai","followers_url":"https://api.github.com/users/anton-kai/followers","following_url":"https://api.github.com/users/anton-kai/following{/other_user}","gists_url":"https://api.github.com/users/anton-kai/gists{/gist_id}","starred_url":"https://api.github.com/users/anton-kai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anton-kai/subscriptions","organizations_url":"https://api.github.com/users/anton-kai/orgs","repos_url":"https://api.github.com/users/anton-kai/repos","events_url":"https://api.github.com/users/anton-kai/events{/privacy}","received_events_url":"https://api.github.com/users/anton-kai/received_events","type":"User","site_admin":false},"repo":{"id":207802371,"node_id":"MDEwOlJlcG9zaXRvcnkyMDc4MDIzNzE=","name":"google-analytics-360","full_name":"anton-kai/google-analytics-360","private":false,"owner":{"login":"anton-kai","id":55057785,"node_id":"MDQ6VXNlcjU1MDU3Nzg1","avatar_url":"https://avatars3.githubusercontent.com/u/55057785?v=4","gravatar_id":"","url":"https://api.github.com/users/anton-kai","html_url":"https://github.com/anton-kai","followers_url":"https://api.github.com/users/anton-kai/followers","following_url":"https://api.github.com/users/anton-kai/following{/other_user}","gists_url":"https://api.github.com/users/anton-kai/gists{/gist_id}","starred_url":"https://api.github.com/users/anton-kai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anton-kai/subscriptions","organizations_url":"https://api.github.com/users/anton-kai/orgs","repos_url":"https://api.github.com/users/anton-kai/repos","events_url":"https://api.github.com/users/anton-kai/events{/privacy}","received_events_url":"https://api.github.com/users/anton-kai/received_events","type":"User","site_admin":false},"html_url":"https://github.com/anton-kai/google-analytics-360","description":"A collection of Google Analytics 360 connectors and plugins.","fork":true,"url":"https://api.github.com/repos/anton-kai/google-analytics-360","forks_url":"https://api.github.com/repos/anton-kai/google-analytics-360/forks","keys_url":"https://api.github.com/repos/anton-kai/google-analytics-360/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anton-kai/google-analytics-360/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anton-kai/google-analytics-360/teams","hooks_url":"https://api.github.com/repos/anton-kai/google-analytics-360/hooks","issue_events_url":"https://api.github.com/repos/anton-kai/google-analytics-360/issues/events{/number}","events_url":"https://api.github.com/repos/anton-kai/google-analytics-360/events","assignees_url":"https://api.github.com/repos/anton-kai/google-analytics-360/assignees{/user}","branches_url":"https://api.github.com/repos/anton-kai/google-analytics-360/branches{/branch}","tags_url":"https://api.github.com/repos/anton-kai/google-analytics-360/tags","blobs_url":"https://api.github.com/repos/anton-kai/google-analytics-360/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anton-kai/google-analytics-360/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anton-kai/google-analytics-360/git/refs{/sha}","trees_url":"https://api.github.com/repos/anton-kai/google-analytics-360/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anton-kai/google-analytics-360/statuses/{sha}","languages_url":"https://api.github.com/repos/anton-kai/google-analytics-360/languages","stargazers_url":"https://api.github.com/repos/anton-kai/google-analytics-360/stargazers","contributors_url":"https://api.github.com/repos/anton-kai/google-analytics-360/contributors","subscribers_url":"https://api.github.com/repos/anton-kai/google-analytics-360/subscribers","subscription_url":"https://api.github.com/repos/anton-kai/google-analytics-360/subscription","commits_url":"https://api.github.com/repos/anton-kai/google-analytics-360/commits{/sha}","git_commits_url":"https://api.github.com/repos/anton-kai/google-analytics-360/git/commits{/sha}","comments_url":"https://api.github.com/repos/anton-kai/google-analytics-360/comments{/number}","issue_comment_url":"https://api.github.com/repos/anton-kai/google-analytics-360/issues/comments{/number}","contents_url":"https://api.github.com/repos/anton-kai/google-analytics-360/contents/{+path}","compare_url":"https://api.github.com/repos/anton-kai/google-analytics-360/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anton-kai/google-analytics-360/merges","archive_url":"https://api.github.com/repos/anton-kai/google-analytics-360/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anton-kai/google-analytics-360/downloads","issues_url":"https://api.github.com/repos/anton-kai/google-analytics-360/issues{/number}","pulls_url":"https://api.github.com/repos/anton-kai/google-analytics-360/pulls{/number}","milestones_url":"https://api.github.com/repos/anton-kai/google-analytics-360/milestones{/number}","notifications_url":"https://api.github.com/repos/anton-kai/google-analytics-360/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anton-kai/google-analytics-360/labels{/name}","releases_url":"https://api.github.com/repos/anton-kai/google-analytics-360/releases{/id}","deployments_url":"https://api.github.com/repos/anton-kai/google-analytics-360/deployments","created_at":"2019-09-11T12:03:53Z","updated_at":"2019-11-06T13:05:00Z","pushed_at":"2019-11-14T12:39:41Z","git_url":"git://github.com/anton-kai/google-analytics-360.git","ssh_url":"git@github.com:anton-kai/google-analytics-360.git","clone_url":"https://github.com/anton-kai/google-analytics-360.git","svn_url":"https://github.com/anton-kai/google-analytics-360","homepage":"https://docs.cdap.io","size":57,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"data-integrations:develop","ref":"develop","sha":"4d267de54acea470dfb38b552dc59e42e77a3f6e","user":{"login":"data-integrations","id":23705097,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNzA1MDk3","avatar_url":"https://avatars3.githubusercontent.com/u/23705097?v=4","gravatar_id":"","url":"https://api.github.com/users/data-integrations","html_url":"https://github.com/data-integrations","followers_url":"https://api.github.com/users/data-integrations/followers","following_url":"https://api.github.com/users/data-integrations/following{/other_user}","gists_url":"https://api.github.com/users/data-integrations/gists{/gist_id}","starred_url":"https://api.github.com/users/data-integrations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/data-integrations/subscriptions","organizations_url":"https://api.github.com/users/data-integrations/orgs","repos_url":"https://api.github.com/users/data-integrations/repos","events_url":"https://api.github.com/users/data-integrations/events{/privacy}","received_events_url":"https://api.github.com/users/data-integrations/received_events","type":"Organization","site_admin":false},"repo":{"id":207665953,"node_id":"MDEwOlJlcG9zaXRvcnkyMDc2NjU5NTM=","name":"google-analytics-360","full_name":"data-integrations/google-analytics-360","private":false,"owner":{"login":"data-integrations","id":23705097,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNzA1MDk3","avatar_url":"https://avatars3.githubusercontent.com/u/23705097?v=4","gravatar_id":"","url":"https://api.github.com/users/data-integrations","html_url":"https://github.com/data-integrations","followers_url":"https://api.github.com/users/data-integrations/followers","following_url":"https://api.github.com/users/data-integrations/following{/other_user}","gists_url":"https://api.github.com/users/data-integrations/gists{/gist_id}","starred_url":"https://api.github.com/users/data-integrations/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/data-integrations/subscriptions","organizations_url":"https://api.github.com/users/data-integrations/orgs","repos_url":"https://api.github.com/users/data-integrations/repos","events_url":"https://api.github.com/users/data-integrations/events{/privacy}","received_events_url":"https://api.github.com/users/data-integrations/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/data-integrations/google-analytics-360","description":"A collection of Google Analytics 360 connectors and plugins.","fork":false,"url":"https://api.github.com/repos/data-integrations/google-analytics-360","forks_url":"https://api.github.com/repos/data-integrations/google-analytics-360/forks","keys_url":"https://api.github.com/repos/data-integrations/google-analytics-360/keys{/key_id}","collaborators_url":"https://api.github.com/repos/data-integrations/google-analytics-360/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/data-integrations/google-analytics-360/teams","hooks_url":"https://api.github.com/repos/data-integrations/google-analytics-360/hooks","issue_events_url":"https://api.github.com/repos/data-integrations/google-analytics-360/issues/events{/number}","events_url":"https://api.github.com/repos/data-integrations/google-analytics-360/events","assignees_url":"https://api.github.com/repos/data-integrations/google-analytics-360/assignees{/user}","branches_url":"https://api.github.com/repos/data-integrations/google-analytics-360/branches{/branch}","tags_url":"https://api.github.com/repos/data-integrations/google-analytics-360/tags","blobs_url":"https://api.github.com/repos/data-integrations/google-analytics-360/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/data-integrations/google-analytics-360/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/data-integrations/google-analytics-360/git/refs{/sha}","trees_url":"https://api.github.com/repos/data-integrations/google-analytics-360/git/trees{/sha}","statuses_url":"https://api.github.com/repos/data-integrations/google-analytics-360/statuses/{sha}","languages_url":"https://api.github.com/repos/data-integrations/google-analytics-360/languages","stargazers_url":"https://api.github.com/repos/data-integrations/google-analytics-360/stargazers","contributors_url":"https://api.github.com/repos/data-integrations/google-analytics-360/contributors","subscribers_url":"https://api.github.com/repos/data-integrations/google-analytics-360/subscribers","subscription_url":"https://api.github.com/repos/data-integrations/google-analytics-360/subscription","commits_url":"https://api.github.com/repos/data-integrations/google-analytics-360/commits{/sha}","git_commits_url":"https://api.github.com/repos/data-integrations/google-analytics-360/git/commits{/sha}","comments_url":"https://api.github.com/repos/data-integrations/google-analytics-360/comments{/number}","issue_comment_url":"https://api.github.com/repos/data-integrations/google-analytics-360/issues/comments{/number}","contents_url":"https://api.github.com/repos/data-integrations/google-analytics-360/contents/{+path}","compare_url":"https://api.github.com/repos/data-integrations/google-analytics-360/compare/{base}...{head}","merges_url":"https://api.github.com/repos/data-integrations/google-analytics-360/merges","archive_url":"https://api.github.com/repos/data-integrations/google-analytics-360/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/data-integrations/google-analytics-360/downloads","issues_url":"https://api.github.com/repos/data-integrations/google-analytics-360/issues{/number}","pulls_url":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls{/number}","milestones_url":"https://api.github.com/repos/data-integrations/google-analytics-360/milestones{/number}","notifications_url":"https://api.github.com/repos/data-integrations/google-analytics-360/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/data-integrations/google-analytics-360/labels{/name}","releases_url":"https://api.github.com/repos/data-integrations/google-analytics-360/releases{/id}","deployments_url":"https://api.github.com/repos/data-integrations/google-analytics-360/deployments","created_at":"2019-09-10T21:25:14Z","updated_at":"2019-09-23T12:12:19Z","pushed_at":"2019-11-14T12:39:42Z","git_url":"git://github.com/data-integrations/google-analytics-360.git","ssh_url":"git@github.com:data-integrations/google-analytics-360.git","clone_url":"https://github.com/data-integrations/google-analytics-360.git","svn_url":"https://github.com/data-integrations/google-analytics-360","homepage":"https://docs.cdap.io","size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/4"},"html":{"href":"https://github.com/data-integrations/google-analytics-360/pull/4"},"issue":{"href":"https://api.github.com/repos/data-integrations/google-analytics-360/issues/4"},"comments":{"href":"https://api.github.com/repos/data-integrations/google-analytics-360/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/data-integrations/google-analytics-360/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/data-integrations/google-analytics-360/statuses/3ec1662ccfc7b13e971541367a5be087600a1168"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"yaojiefeng"}}