{"action":"closed","number":30,"pull_request":{"url":"https://api.github.com/repos/mojombo/god/pulls/30","id":27274,"html_url":"https://github.com/mojombo/god/pull/30","diff_url":"https://github.com/mojombo/god/pull/30.diff","patch_url":"https://github.com/mojombo/god/pull/30.patch","issue_url":"https://api.github.com/repos/mojombo/god/issues/30","number":30,"state":"closed","locked":false,"title":"Including child processes in CPU/memory usage","user":{"login":"jstepien","id":39084,"avatar_url":"https://avatars.githubusercontent.com/u/39084?v=3","gravatar_id":"","url":"https://api.github.com/users/jstepien","html_url":"https://github.com/jstepien","followers_url":"https://api.github.com/users/jstepien/followers","following_url":"https://api.github.com/users/jstepien/following{/other_user}","gists_url":"https://api.github.com/users/jstepien/gists{/gist_id}","starred_url":"https://api.github.com/users/jstepien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstepien/subscriptions","organizations_url":"https://api.github.com/users/jstepien/orgs","repos_url":"https://api.github.com/users/jstepien/repos","events_url":"https://api.github.com/users/jstepien/events{/privacy}","received_events_url":"https://api.github.com/users/jstepien/received_events","type":"User","site_admin":false},"body":"This changeset allows God to watch total CPU/memory usage of a process family. I use God to monitor a deamon which forks a lot and monitoring a single PID isn't sufficient. Now I can simply add a following restart rule in order to keep the whole family under control.\r\n\r\n    w.restart_if do |restart|\r\n      restart.condition(:memory_usage) do |c| \r\n        c.above = 210.megabytes\r\n        c.times = 5 \r\n        c.family = true\r\n      end \r\n\r\n      restart.condition(:cpu_usage) do |c| \r\n        c.above = 80.percent\r\n        c.times = 5 \r\n        c.family = true\r\n      end \r\n    end \r\n\r\n`rake test` doesn't report any regressions.","created_at":"2010-11-11T00:00:36Z","updated_at":"2015-11-17T07:41:20Z","closed_at":"2015-11-17T07:41:20Z","merged_at":null,"merge_commit_sha":"29a479d7f220c475d495863f84f81333975813ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mojombo/god/pulls/30/commits","review_comments_url":"https://api.github.com/repos/mojombo/god/pulls/30/comments","review_comment_url":"https://api.github.com/repos/mojombo/god/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mojombo/god/issues/30/comments","statuses_url":"https://api.github.com/repos/mojombo/god/statuses/20a1e2de061b6e1dd03181e19e800a4662935795","head":{"label":"jstepien:process_family","ref":"process_family","sha":"20a1e2de061b6e1dd03181e19e800a4662935795","user":{"login":"jstepien","id":39084,"avatar_url":"https://avatars.githubusercontent.com/u/39084?v=3","gravatar_id":"","url":"https://api.github.com/users/jstepien","html_url":"https://github.com/jstepien","followers_url":"https://api.github.com/users/jstepien/followers","following_url":"https://api.github.com/users/jstepien/following{/other_user}","gists_url":"https://api.github.com/users/jstepien/gists{/gist_id}","starred_url":"https://api.github.com/users/jstepien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstepien/subscriptions","organizations_url":"https://api.github.com/users/jstepien/orgs","repos_url":"https://api.github.com/users/jstepien/repos","events_url":"https://api.github.com/users/jstepien/events{/privacy}","received_events_url":"https://api.github.com/users/jstepien/received_events","type":"User","site_admin":false},"repo":{"id":1070012,"name":"god","full_name":"jstepien/god","owner":{"login":"jstepien","id":39084,"avatar_url":"https://avatars.githubusercontent.com/u/39084?v=3","gravatar_id":"","url":"https://api.github.com/users/jstepien","html_url":"https://github.com/jstepien","followers_url":"https://api.github.com/users/jstepien/followers","following_url":"https://api.github.com/users/jstepien/following{/other_user}","gists_url":"https://api.github.com/users/jstepien/gists{/gist_id}","starred_url":"https://api.github.com/users/jstepien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstepien/subscriptions","organizations_url":"https://api.github.com/users/jstepien/orgs","repos_url":"https://api.github.com/users/jstepien/repos","events_url":"https://api.github.com/users/jstepien/events{/privacy}","received_events_url":"https://api.github.com/users/jstepien/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jstepien/god","description":"Ruby process monitor","fork":true,"url":"https://api.github.com/repos/jstepien/god","forks_url":"https://api.github.com/repos/jstepien/god/forks","keys_url":"https://api.github.com/repos/jstepien/god/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jstepien/god/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jstepien/god/teams","hooks_url":"https://api.github.com/repos/jstepien/god/hooks","issue_events_url":"https://api.github.com/repos/jstepien/god/issues/events{/number}","events_url":"https://api.github.com/repos/jstepien/god/events","assignees_url":"https://api.github.com/repos/jstepien/god/assignees{/user}","branches_url":"https://api.github.com/repos/jstepien/god/branches{/branch}","tags_url":"https://api.github.com/repos/jstepien/god/tags","blobs_url":"https://api.github.com/repos/jstepien/god/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jstepien/god/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jstepien/god/git/refs{/sha}","trees_url":"https://api.github.com/repos/jstepien/god/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jstepien/god/statuses/{sha}","languages_url":"https://api.github.com/repos/jstepien/god/languages","stargazers_url":"https://api.github.com/repos/jstepien/god/stargazers","contributors_url":"https://api.github.com/repos/jstepien/god/contributors","subscribers_url":"https://api.github.com/repos/jstepien/god/subscribers","subscription_url":"https://api.github.com/repos/jstepien/god/subscription","commits_url":"https://api.github.com/repos/jstepien/god/commits{/sha}","git_commits_url":"https://api.github.com/repos/jstepien/god/git/commits{/sha}","comments_url":"https://api.github.com/repos/jstepien/god/comments{/number}","issue_comment_url":"https://api.github.com/repos/jstepien/god/issues/comments{/number}","contents_url":"https://api.github.com/repos/jstepien/god/contents/{+path}","compare_url":"https://api.github.com/repos/jstepien/god/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jstepien/god/merges","archive_url":"https://api.github.com/repos/jstepien/god/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jstepien/god/downloads","issues_url":"https://api.github.com/repos/jstepien/god/issues{/number}","pulls_url":"https://api.github.com/repos/jstepien/god/pulls{/number}","milestones_url":"https://api.github.com/repos/jstepien/god/milestones{/number}","notifications_url":"https://api.github.com/repos/jstepien/god/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jstepien/god/labels{/name}","releases_url":"https://api.github.com/repos/jstepien/god/releases{/id}","created_at":"2010-11-10T23:36:09Z","updated_at":"2014-04-02T19:18:08Z","pushed_at":"2011-05-25T12:25:20Z","git_url":"git://github.com/jstepien/god.git","ssh_url":"git@github.com:jstepien/god.git","clone_url":"https://github.com/jstepien/god.git","svn_url":"https://github.com/jstepien/god","homepage":"http://god.rubyforge.org","size":1207,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"base":{"label":"mojombo:master","ref":"master","sha":"b95dd827e62426d0e6bbf52ae4946d33f79bfa57","user":{"login":"mojombo","id":1,"avatar_url":"https://avatars.githubusercontent.com/u/1?v=3","gravatar_id":"","url":"https://api.github.com/users/mojombo","html_url":"https://github.com/mojombo","followers_url":"https://api.github.com/users/mojombo/followers","following_url":"https://api.github.com/users/mojombo/following{/other_user}","gists_url":"https://api.github.com/users/mojombo/gists{/gist_id}","starred_url":"https://api.github.com/users/mojombo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojombo/subscriptions","organizations_url":"https://api.github.com/users/mojombo/orgs","repos_url":"https://api.github.com/users/mojombo/repos","events_url":"https://api.github.com/users/mojombo/events{/privacy}","received_events_url":"https://api.github.com/users/mojombo/received_events","type":"User","site_admin":false},"repo":{"id":28,"name":"god","full_name":"mojombo/god","owner":{"login":"mojombo","id":1,"avatar_url":"https://avatars.githubusercontent.com/u/1?v=3","gravatar_id":"","url":"https://api.github.com/users/mojombo","html_url":"https://github.com/mojombo","followers_url":"https://api.github.com/users/mojombo/followers","following_url":"https://api.github.com/users/mojombo/following{/other_user}","gists_url":"https://api.github.com/users/mojombo/gists{/gist_id}","starred_url":"https://api.github.com/users/mojombo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojombo/subscriptions","organizations_url":"https://api.github.com/users/mojombo/orgs","repos_url":"https://api.github.com/users/mojombo/repos","events_url":"https://api.github.com/users/mojombo/events{/privacy}","received_events_url":"https://api.github.com/users/mojombo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mojombo/god","description":"Ruby process monitor","fork":false,"url":"https://api.github.com/repos/mojombo/god","forks_url":"https://api.github.com/repos/mojombo/god/forks","keys_url":"https://api.github.com/repos/mojombo/god/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mojombo/god/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mojombo/god/teams","hooks_url":"https://api.github.com/repos/mojombo/god/hooks","issue_events_url":"https://api.github.com/repos/mojombo/god/issues/events{/number}","events_url":"https://api.github.com/repos/mojombo/god/events","assignees_url":"https://api.github.com/repos/mojombo/god/assignees{/user}","branches_url":"https://api.github.com/repos/mojombo/god/branches{/branch}","tags_url":"https://api.github.com/repos/mojombo/god/tags","blobs_url":"https://api.github.com/repos/mojombo/god/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mojombo/god/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mojombo/god/git/refs{/sha}","trees_url":"https://api.github.com/repos/mojombo/god/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mojombo/god/statuses/{sha}","languages_url":"https://api.github.com/repos/mojombo/god/languages","stargazers_url":"https://api.github.com/repos/mojombo/god/stargazers","contributors_url":"https://api.github.com/repos/mojombo/god/contributors","subscribers_url":"https://api.github.com/repos/mojombo/god/subscribers","subscription_url":"https://api.github.com/repos/mojombo/god/subscription","commits_url":"https://api.github.com/repos/mojombo/god/commits{/sha}","git_commits_url":"https://api.github.com/repos/mojombo/god/git/commits{/sha}","comments_url":"https://api.github.com/repos/mojombo/god/comments{/number}","issue_comment_url":"https://api.github.com/repos/mojombo/god/issues/comments{/number}","contents_url":"https://api.github.com/repos/mojombo/god/contents/{+path}","compare_url":"https://api.github.com/repos/mojombo/god/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mojombo/god/merges","archive_url":"https://api.github.com/repos/mojombo/god/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mojombo/god/downloads","issues_url":"https://api.github.com/repos/mojombo/god/issues{/number}","pulls_url":"https://api.github.com/repos/mojombo/god/pulls{/number}","milestones_url":"https://api.github.com/repos/mojombo/god/milestones{/number}","notifications_url":"https://api.github.com/repos/mojombo/god/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mojombo/god/labels{/name}","releases_url":"https://api.github.com/repos/mojombo/god/releases{/id}","created_at":"2008-01-13T05:16:23Z","updated_at":"2015-11-15T18:35:12Z","pushed_at":"2015-10-19T19:26:25Z","git_url":"git://github.com/mojombo/god.git","ssh_url":"git@github.com:mojombo/god.git","clone_url":"https://github.com/mojombo/god.git","svn_url":"https://github.com/mojombo/god","homepage":"http://godrb.com","size":3991,"stargazers_count":1860,"watchers_count":1860,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":445,"mirror_url":null,"open_issues_count":99,"forks":445,"open_issues":99,"watchers":1860,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mojombo/god/pulls/30"},"html":{"href":"https://github.com/mojombo/god/pull/30"},"issue":{"href":"https://api.github.com/repos/mojombo/god/issues/30"},"comments":{"href":"https://api.github.com/repos/mojombo/god/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/mojombo/god/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/mojombo/god/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mojombo/god/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/mojombo/god/statuses/20a1e2de061b6e1dd03181e19e800a4662935795"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":4,"review_comments":1,"commits":2,"additions":100,"deletions":7,"changed_files":5}}