{"action":"created","comment":{"url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/comments/73711092","id":73711092,"diff_hunk":"@@ -0,0 +1,36 @@\n+<?php\n+/**\n+ * Sends data about status of Enterprise_Index changelogs\n+ *\n+ * measurement: changelog\n+ * tag(s): name\n+ * field(s): metadata_version, version\n+ *\n+ */\n+class SomethingDigital_InfluxDb_Model_Measurement_Changelog\n+    extends SomethingDigital_InfluxDb_Model_Measurement_Abstract\n+    implements SomethingDigital_InfluxDb_Model_MeasurementInterface\n+{\n+    public function send()\n+    {\n+        $metadatas = Mage::getModel('enterprise_mview/metadata')->getCollection();\n+        $data = array();\n+        foreach ($metadatas as $metadata) {\n+            $data[] = $this->line($metadata);\n+        }\n+\n+        $this->api->write(implode(PHP_EOL, $data));\n+    }\n+\n+    protected function line($metadata)\n+    {\n+        $changelog = Mage::getModel('enterprise_index/changelog', array(\n+            'connection' => $this->readCon,\n+            'metadata' => $metadata,\n+        ));\n+\n+        return 'changelog,name=' . $metadata->getChangelogName() .","path":"app/code/community/SomethingDigital/InfluxDb/Model/Measurement/Changelog.php","position":32,"original_position":32,"commit_id":"01df794e51342ac71fa25bac50bc75f7ecd31271","original_commit_id":"01df794e51342ac71fa25bac50bc75f7ecd31271","user":{"login":"mpchadwick","id":4132322,"avatar_url":"https://avatars.githubusercontent.com/u/4132322?v=3","gravatar_id":"","url":"https://api.github.com/users/mpchadwick","html_url":"https://github.com/mpchadwick","followers_url":"https://api.github.com/users/mpchadwick/followers","following_url":"https://api.github.com/users/mpchadwick/following{/other_user}","gists_url":"https://api.github.com/users/mpchadwick/gists{/gist_id}","starred_url":"https://api.github.com/users/mpchadwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpchadwick/subscriptions","organizations_url":"https://api.github.com/users/mpchadwick/orgs","repos_url":"https://api.github.com/users/mpchadwick/repos","events_url":"https://api.github.com/users/mpchadwick/events{/privacy}","received_events_url":"https://api.github.com/users/mpchadwick/received_events","type":"User","site_admin":false},"body":"A lot of the measurements are using string concatenation.\r\n\r\nhttps://github.com/sdinteractive/SomethingDigital_InfluxDb/blob/develop/app/code/community/SomethingDigital/InfluxDb/Model/Measurement/Cron.php#L54-L58\r\n\r\nIt is a bit ugly, though.","created_at":"2016-08-05T15:28:11Z","updated_at":"2016-08-05T15:28:11Z","html_url":"https://github.com/sdinteractive/SomethingDigital_InfluxDb/pull/26#discussion_r73711092","pull_request_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/comments/73711092"},"html":{"href":"https://github.com/sdinteractive/SomethingDigital_InfluxDb/pull/26#discussion_r73711092"},"pull_request":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/26","id":80180255,"html_url":"https://github.com/sdinteractive/SomethingDigital_InfluxDb/pull/26","diff_url":"https://github.com/sdinteractive/SomethingDigital_InfluxDb/pull/26.diff","patch_url":"https://github.com/sdinteractive/SomethingDigital_InfluxDb/pull/26.patch","issue_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/issues/26","number":26,"state":"closed","locked":false,"title":"Add measurement for Enterprise_Index changelogs","user":{"login":"mpchadwick","id":4132322,"avatar_url":"https://avatars.githubusercontent.com/u/4132322?v=3","gravatar_id":"","url":"https://api.github.com/users/mpchadwick","html_url":"https://github.com/mpchadwick","followers_url":"https://api.github.com/users/mpchadwick/followers","following_url":"https://api.github.com/users/mpchadwick/following{/other_user}","gists_url":"https://api.github.com/users/mpchadwick/gists{/gist_id}","starred_url":"https://api.github.com/users/mpchadwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpchadwick/subscriptions","organizations_url":"https://api.github.com/users/mpchadwick/orgs","repos_url":"https://api.github.com/users/mpchadwick/repos","events_url":"https://api.github.com/users/mpchadwick/events{/privacy}","received_events_url":"https://api.github.com/users/mpchadwick/received_events","type":"User","site_admin":false},"body":"Implementation of enhancement documented in #25.\r\n\r\ncc @toddbc ","created_at":"2016-08-05T02:29:56Z","updated_at":"2016-08-05T15:28:11Z","closed_at":"2016-08-05T15:25:44Z","merged_at":"2016-08-05T15:25:44Z","merge_commit_sha":"1b417259d976600225eee4fb18c7b9c261080a0f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/26/commits","review_comments_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/26/comments","review_comment_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/issues/26/comments","statuses_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/statuses/01df794e51342ac71fa25bac50bc75f7ecd31271","head":{"label":"mpchadwick:changelog","ref":"changelog","sha":"01df794e51342ac71fa25bac50bc75f7ecd31271","user":{"login":"mpchadwick","id":4132322,"avatar_url":"https://avatars.githubusercontent.com/u/4132322?v=3","gravatar_id":"","url":"https://api.github.com/users/mpchadwick","html_url":"https://github.com/mpchadwick","followers_url":"https://api.github.com/users/mpchadwick/followers","following_url":"https://api.github.com/users/mpchadwick/following{/other_user}","gists_url":"https://api.github.com/users/mpchadwick/gists{/gist_id}","starred_url":"https://api.github.com/users/mpchadwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpchadwick/subscriptions","organizations_url":"https://api.github.com/users/mpchadwick/orgs","repos_url":"https://api.github.com/users/mpchadwick/repos","events_url":"https://api.github.com/users/mpchadwick/events{/privacy}","received_events_url":"https://api.github.com/users/mpchadwick/received_events","type":"User","site_admin":false},"repo":{"id":64982209,"name":"SomethingDigital_InfluxDb","full_name":"mpchadwick/SomethingDigital_InfluxDb","owner":{"login":"mpchadwick","id":4132322,"avatar_url":"https://avatars.githubusercontent.com/u/4132322?v=3","gravatar_id":"","url":"https://api.github.com/users/mpchadwick","html_url":"https://github.com/mpchadwick","followers_url":"https://api.github.com/users/mpchadwick/followers","following_url":"https://api.github.com/users/mpchadwick/following{/other_user}","gists_url":"https://api.github.com/users/mpchadwick/gists{/gist_id}","starred_url":"https://api.github.com/users/mpchadwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpchadwick/subscriptions","organizations_url":"https://api.github.com/users/mpchadwick/orgs","repos_url":"https://api.github.com/users/mpchadwick/repos","events_url":"https://api.github.com/users/mpchadwick/events{/privacy}","received_events_url":"https://api.github.com/users/mpchadwick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mpchadwick/SomethingDigital_InfluxDb","description":"Base module for sending data for InfluxDB.","fork":true,"url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb","forks_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/forks","keys_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/teams","hooks_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/hooks","issue_events_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/issues/events{/number}","events_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/events","assignees_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/assignees{/user}","branches_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/branches{/branch}","tags_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/tags","blobs_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/git/refs{/sha}","trees_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/statuses/{sha}","languages_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/languages","stargazers_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/stargazers","contributors_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/contributors","subscribers_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/subscribers","subscription_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/subscription","commits_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/commits{/sha}","git_commits_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/git/commits{/sha}","comments_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/comments{/number}","issue_comment_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/issues/comments{/number}","contents_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/contents/{+path}","compare_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/merges","archive_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/downloads","issues_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/issues{/number}","pulls_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/pulls{/number}","milestones_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/milestones{/number}","notifications_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/labels{/name}","releases_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/releases{/id}","deployments_url":"https://api.github.com/repos/mpchadwick/SomethingDigital_InfluxDb/deployments","created_at":"2016-08-05T02:28:24Z","updated_at":"2016-08-05T02:28:25Z","pushed_at":"2016-08-05T03:00:11Z","git_url":"git://github.com/mpchadwick/SomethingDigital_InfluxDb.git","ssh_url":"git@github.com:mpchadwick/SomethingDigital_InfluxDb.git","clone_url":"https://github.com/mpchadwick/SomethingDigital_InfluxDb.git","svn_url":"https://github.com/mpchadwick/SomethingDigital_InfluxDb","homepage":"","size":40,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"sdinteractive:develop","ref":"develop","sha":"2f6c5f8b24b06f4db99055019bfdcc9165eb03fd","user":{"login":"sdinteractive","id":5023230,"avatar_url":"https://avatars.githubusercontent.com/u/5023230?v=3","gravatar_id":"","url":"https://api.github.com/users/sdinteractive","html_url":"https://github.com/sdinteractive","followers_url":"https://api.github.com/users/sdinteractive/followers","following_url":"https://api.github.com/users/sdinteractive/following{/other_user}","gists_url":"https://api.github.com/users/sdinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/sdinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdinteractive/subscriptions","organizations_url":"https://api.github.com/users/sdinteractive/orgs","repos_url":"https://api.github.com/users/sdinteractive/repos","events_url":"https://api.github.com/users/sdinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/sdinteractive/received_events","type":"Organization","site_admin":false},"repo":{"id":61846477,"name":"SomethingDigital_InfluxDb","full_name":"sdinteractive/SomethingDigital_InfluxDb","owner":{"login":"sdinteractive","id":5023230,"avatar_url":"https://avatars.githubusercontent.com/u/5023230?v=3","gravatar_id":"","url":"https://api.github.com/users/sdinteractive","html_url":"https://github.com/sdinteractive","followers_url":"https://api.github.com/users/sdinteractive/followers","following_url":"https://api.github.com/users/sdinteractive/following{/other_user}","gists_url":"https://api.github.com/users/sdinteractive/gists{/gist_id}","starred_url":"https://api.github.com/users/sdinteractive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdinteractive/subscriptions","organizations_url":"https://api.github.com/users/sdinteractive/orgs","repos_url":"https://api.github.com/users/sdinteractive/repos","events_url":"https://api.github.com/users/sdinteractive/events{/privacy}","received_events_url":"https://api.github.com/users/sdinteractive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sdinteractive/SomethingDigital_InfluxDb","description":"Base module for sending data for InfluxDB.","fork":false,"url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb","forks_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/forks","keys_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/teams","hooks_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/hooks","issue_events_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/issues/events{/number}","events_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/events","assignees_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/assignees{/user}","branches_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/branches{/branch}","tags_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/tags","blobs_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/statuses/{sha}","languages_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/languages","stargazers_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/stargazers","contributors_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/contributors","subscribers_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/subscribers","subscription_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/subscription","commits_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/contents/{+path}","compare_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/merges","archive_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/downloads","issues_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/issues{/number}","pulls_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls{/number}","milestones_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/milestones{/number}","notifications_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/labels{/name}","releases_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/releases{/id}","deployments_url":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/deployments","created_at":"2016-06-24T00:58:21Z","updated_at":"2016-07-13T09:45:45Z","pushed_at":"2016-08-05T15:25:44Z","git_url":"git://github.com/sdinteractive/SomethingDigital_InfluxDb.git","ssh_url":"git@github.com:sdinteractive/SomethingDigital_InfluxDb.git","clone_url":"https://github.com/sdinteractive/SomethingDigital_InfluxDb.git","svn_url":"https://github.com/sdinteractive/SomethingDigital_InfluxDb","homepage":"","size":37,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/26"},"html":{"href":"https://github.com/sdinteractive/SomethingDigital_InfluxDb/pull/26"},"issue":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/issues/26"},"comments":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/sdinteractive/SomethingDigital_InfluxDb/statuses/01df794e51342ac71fa25bac50bc75f7ecd31271"}}}}
{"actor":{"display_login":"mpchadwick"}}