{"action":"created","comment":{"url":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/comments/216438132","pull_request_review_id":153919103,"id":216438132,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjQzODEzMg==","diff_hunk":"@@ -304,6 +304,70 @@ sensu_asset 'asset_example' do\n end\n ```\n \n+### sensu_organization\n+An organization is a top-level resource for RBAC, and can contain multiple environemnts. Sensu ships with a `default` organization.\n+#### Properties\n+* `name` **required** the name of the organization.\n+* `description` a description for the organization.\n+\n+#### Examples\n+```rb\n+sensu_organization 'example_organization do\n+  description 'example description'\n+  name 'example'\n+  action :create\n+end\n+```\n+\n+### sensu_environment\n+An environment contains a set of resources, and belongs to a single organization.\n+#### Properties\n+* `name` **required** the name of the environment.\n+* `description` a description for the environment.\n+* `organization` **required** the name of the organization the environment belongs to.\n+\n+#### Examples\n+```rb\n+sensu_environment 'example_environment' do\n+  description 'example description'\n+  name 'example'\n+  organization 'example'\n+  action :create\n+end\n+```\n+\n+### sensu_entity\n+An entity is a representation of anything that needs to be monitored. It can be either an `agent` or a `proxy`.\n+\n+#### Properties\n+* `subscriptions` **required** An array of subscriptions","path":"README.md","position":40,"original_position":40,"commit_id":"fcdfe8a582b7222f329c74e8bc048727773a6cec","original_commit_id":"fcdfe8a582b7222f329c74e8bc048727773a6cec","user":{"login":"mercul3s","id":2100610,"node_id":"MDQ6VXNlcjIxMDA2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/2100610?v=4","gravatar_id":"","url":"https://api.github.com/users/mercul3s","html_url":"https://github.com/mercul3s","followers_url":"https://api.github.com/users/mercul3s/followers","following_url":"https://api.github.com/users/mercul3s/following{/other_user}","gists_url":"https://api.github.com/users/mercul3s/gists{/gist_id}","starred_url":"https://api.github.com/users/mercul3s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercul3s/subscriptions","organizations_url":"https://api.github.com/users/mercul3s/orgs","repos_url":"https://api.github.com/users/mercul3s/repos","events_url":"https://api.github.com/users/mercul3s/events{/privacy}","received_events_url":"https://api.github.com/users/mercul3s/received_events","type":"User","site_admin":false},"body":"You are correct, subscriptions are not required for entities. If a subscription is not provided, it defaults to `entity:{ID}` - I'll make a note of that here.","created_at":"2018-09-10T19:05:31Z","updated_at":"2018-09-10T19:05:31Z","html_url":"https://github.com/sensu/sensu-go-chef/pull/32#discussion_r216438132","pull_request_url":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/32","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/comments/216438132"},"html":{"href":"https://github.com/sensu/sensu-go-chef/pull/32#discussion_r216438132"},"pull_request":{"href":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/32"}},"in_reply_to_id":216120198},"pull_request":{"url":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/32","id":214044706,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MDQ0NzA2","html_url":"https://github.com/sensu/sensu-go-chef/pull/32","diff_url":"https://github.com/sensu/sensu-go-chef/pull/32.diff","patch_url":"https://github.com/sensu/sensu-go-chef/pull/32.patch","issue_url":"https://api.github.com/repos/sensu/sensu-go-chef/issues/32","number":32,"state":"open","locked":false,"title":"Entity resource","user":{"login":"mercul3s","id":2100610,"node_id":"MDQ6VXNlcjIxMDA2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/2100610?v=4","gravatar_id":"","url":"https://api.github.com/users/mercul3s","html_url":"https://github.com/mercul3s","followers_url":"https://api.github.com/users/mercul3s/followers","following_url":"https://api.github.com/users/mercul3s/following{/other_user}","gists_url":"https://api.github.com/users/mercul3s/gists{/gist_id}","starred_url":"https://api.github.com/users/mercul3s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mercul3s/subscriptions","organizations_url":"https://api.github.com/users/mercul3s/orgs","repos_url":"https://api.github.com/users/mercul3s/repos","events_url":"https://api.github.com/users/mercul3s/events{/privacy}","received_events_url":"https://api.github.com/users/mercul3s/received_events","type":"User","site_admin":false},"body":"## Pull Request Checklist\r\n\r\n**Is this in reference to an existing issue?**\r\nIt is not - we're experimenting with it for provisioning sensu-go internally, and it was missing a few resources, so I took the liberty to add them.\r\n\r\n#### General\r\n\r\n- [X] Update Changelog following the conventions laid out [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)\r\n\r\n- [X] Update README with any necessary configuration snippets\r\n\r\n- [X] Cookstyle (rubocop) passes\r\n\r\n- [X] Foodcritic passes\r\n\r\n- [X] Rspec (unit tests) passes\r\n\r\n- [X] Inspec (integration tests) passes\r\n\r\n#### New Features\r\n\r\n- [X] Added a [Testing Artifact](https://github.com/sensu-plugins/community/blob/master/PULL_REQUEST_PROCESS.md#7-testing-artifacts) as either an automated test or a manual artifact on the PR.\r\n\r\n- [X] Adedd documentation for it to the `README.md`\r\n\r\n#### Purpose\r\n\r\n#### Known Compatibility Issues\r\n","created_at":"2018-09-07T21:32:21Z","updated_at":"2018-09-10T19:05:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bef67de9d22237a684873f60474880968e58eed","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":853662377,"node_id":"MDU6TGFiZWw4NTM2NjIzNzc=","url":"https://api.github.com/repos/sensu/sensu-go-chef/labels/Status:%20Awaiting%20Response","name":"Status: Awaiting Response","color":"fef2c0","default":false},{"id":853662231,"node_id":"MDU6TGFiZWw4NTM2NjIyMzE=","url":"https://api.github.com/repos/sensu/sensu-go-chef/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"d4c5f9","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/32/commits","review_comments_url":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/32/comments","review_comment_url":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sensu/sensu-go-chef/issues/32/comments","statuses_url":"https://api.github.com/repos/sensu/sensu-go-chef/statuses/fcdfe8a582b7222f329c74e8bc048727773a6cec","head":{"label":"sensu:entity-resource","ref":"entity-resource","sha":"fcdfe8a582b7222f329c74e8bc048727773a6cec","user":{"login":"sensu","id":1648901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDg5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1648901?v=4","gravatar_id":"","url":"https://api.github.com/users/sensu","html_url":"https://github.com/sensu","followers_url":"https://api.github.com/users/sensu/followers","following_url":"https://api.github.com/users/sensu/following{/other_user}","gists_url":"https://api.github.com/users/sensu/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu/subscriptions","organizations_url":"https://api.github.com/users/sensu/orgs","repos_url":"https://api.github.com/users/sensu/repos","events_url":"https://api.github.com/users/sensu/events{/privacy}","received_events_url":"https://api.github.com/users/sensu/received_events","type":"Organization","site_admin":false},"repo":{"id":123193132,"node_id":"MDEwOlJlcG9zaXRvcnkxMjMxOTMxMzI=","name":"sensu-go-chef","full_name":"sensu/sensu-go-chef","owner":{"login":"sensu","id":1648901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDg5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1648901?v=4","gravatar_id":"","url":"https://api.github.com/users/sensu","html_url":"https://github.com/sensu","followers_url":"https://api.github.com/users/sensu/followers","following_url":"https://api.github.com/users/sensu/following{/other_user}","gists_url":"https://api.github.com/users/sensu/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu/subscriptions","organizations_url":"https://api.github.com/users/sensu/orgs","repos_url":"https://api.github.com/users/sensu/repos","events_url":"https://api.github.com/users/sensu/events{/privacy}","received_events_url":"https://api.github.com/users/sensu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sensu/sensu-go-chef","description":"[Under Construction] Chef Library Cookbook for The Sensu 2.0 project","fork":false,"url":"https://api.github.com/repos/sensu/sensu-go-chef","forks_url":"https://api.github.com/repos/sensu/sensu-go-chef/forks","keys_url":"https://api.github.com/repos/sensu/sensu-go-chef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sensu/sensu-go-chef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sensu/sensu-go-chef/teams","hooks_url":"https://api.github.com/repos/sensu/sensu-go-chef/hooks","issue_events_url":"https://api.github.com/repos/sensu/sensu-go-chef/issues/events{/number}","events_url":"https://api.github.com/repos/sensu/sensu-go-chef/events","assignees_url":"https://api.github.com/repos/sensu/sensu-go-chef/assignees{/user}","branches_url":"https://api.github.com/repos/sensu/sensu-go-chef/branches{/branch}","tags_url":"https://api.github.com/repos/sensu/sensu-go-chef/tags","blobs_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/refs{/sha}","trees_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sensu/sensu-go-chef/statuses/{sha}","languages_url":"https://api.github.com/repos/sensu/sensu-go-chef/languages","stargazers_url":"https://api.github.com/repos/sensu/sensu-go-chef/stargazers","contributors_url":"https://api.github.com/repos/sensu/sensu-go-chef/contributors","subscribers_url":"https://api.github.com/repos/sensu/sensu-go-chef/subscribers","subscription_url":"https://api.github.com/repos/sensu/sensu-go-chef/subscription","commits_url":"https://api.github.com/repos/sensu/sensu-go-chef/commits{/sha}","git_commits_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/commits{/sha}","comments_url":"https://api.github.com/repos/sensu/sensu-go-chef/comments{/number}","issue_comment_url":"https://api.github.com/repos/sensu/sensu-go-chef/issues/comments{/number}","contents_url":"https://api.github.com/repos/sensu/sensu-go-chef/contents/{+path}","compare_url":"https://api.github.com/repos/sensu/sensu-go-chef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sensu/sensu-go-chef/merges","archive_url":"https://api.github.com/repos/sensu/sensu-go-chef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sensu/sensu-go-chef/downloads","issues_url":"https://api.github.com/repos/sensu/sensu-go-chef/issues{/number}","pulls_url":"https://api.github.com/repos/sensu/sensu-go-chef/pulls{/number}","milestones_url":"https://api.github.com/repos/sensu/sensu-go-chef/milestones{/number}","notifications_url":"https://api.github.com/repos/sensu/sensu-go-chef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sensu/sensu-go-chef/labels{/name}","releases_url":"https://api.github.com/repos/sensu/sensu-go-chef/releases{/id}","deployments_url":"https://api.github.com/repos/sensu/sensu-go-chef/deployments","created_at":"2018-02-27T21:51:38Z","updated_at":"2018-08-29T16:42:08Z","pushed_at":"2018-09-07T21:32:21Z","git_url":"git://github.com/sensu/sensu-go-chef.git","ssh_url":"git@github.com:sensu/sensu-go-chef.git","clone_url":"https://github.com/sensu/sensu-go-chef.git","svn_url":"https://github.com/sensu/sensu-go-chef","homepage":"","size":82,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":6,"watchers":5,"default_branch":"master"}},"base":{"label":"sensu:master","ref":"master","sha":"c202dbea055bb8cd8c845ce21312ad20075b097f","user":{"login":"sensu","id":1648901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDg5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1648901?v=4","gravatar_id":"","url":"https://api.github.com/users/sensu","html_url":"https://github.com/sensu","followers_url":"https://api.github.com/users/sensu/followers","following_url":"https://api.github.com/users/sensu/following{/other_user}","gists_url":"https://api.github.com/users/sensu/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu/subscriptions","organizations_url":"https://api.github.com/users/sensu/orgs","repos_url":"https://api.github.com/users/sensu/repos","events_url":"https://api.github.com/users/sensu/events{/privacy}","received_events_url":"https://api.github.com/users/sensu/received_events","type":"Organization","site_admin":false},"repo":{"id":123193132,"node_id":"MDEwOlJlcG9zaXRvcnkxMjMxOTMxMzI=","name":"sensu-go-chef","full_name":"sensu/sensu-go-chef","owner":{"login":"sensu","id":1648901,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDg5MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1648901?v=4","gravatar_id":"","url":"https://api.github.com/users/sensu","html_url":"https://github.com/sensu","followers_url":"https://api.github.com/users/sensu/followers","following_url":"https://api.github.com/users/sensu/following{/other_user}","gists_url":"https://api.github.com/users/sensu/gists{/gist_id}","starred_url":"https://api.github.com/users/sensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sensu/subscriptions","organizations_url":"https://api.github.com/users/sensu/orgs","repos_url":"https://api.github.com/users/sensu/repos","events_url":"https://api.github.com/users/sensu/events{/privacy}","received_events_url":"https://api.github.com/users/sensu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sensu/sensu-go-chef","description":"[Under Construction] Chef Library Cookbook for The Sensu 2.0 project","fork":false,"url":"https://api.github.com/repos/sensu/sensu-go-chef","forks_url":"https://api.github.com/repos/sensu/sensu-go-chef/forks","keys_url":"https://api.github.com/repos/sensu/sensu-go-chef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sensu/sensu-go-chef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sensu/sensu-go-chef/teams","hooks_url":"https://api.github.com/repos/sensu/sensu-go-chef/hooks","issue_events_url":"https://api.github.com/repos/sensu/sensu-go-chef/issues/events{/number}","events_url":"https://api.github.com/repos/sensu/sensu-go-chef/events","assignees_url":"https://api.github.com/repos/sensu/sensu-go-chef/assignees{/user}","branches_url":"https://api.github.com/repos/sensu/sensu-go-chef/branches{/branch}","tags_url":"https://api.github.com/repos/sensu/sensu-go-chef/tags","blobs_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/refs{/sha}","trees_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sensu/sensu-go-chef/statuses/{sha}","languages_url":"https://api.github.com/repos/sensu/sensu-go-chef/languages","stargazers_url":"https://api.github.com/repos/sensu/sensu-go-chef/stargazers","contributors_url":"https://api.github.com/repos/sensu/sensu-go-chef/contributors","subscribers_url":"https://api.github.com/repos/sensu/sensu-go-chef/subscribers","subscription_url":"https://api.github.com/repos/sensu/sensu-go-chef/subscription","commits_url":"https://api.github.com/repos/sensu/sensu-go-chef/commits{/sha}","git_commits_url":"https://api.github.com/repos/sensu/sensu-go-chef/git/commits{/sha}","comments_url":"https://api.github.com/repos/sensu/sensu-go-chef/comments{/number}","issue_comment_url":"https://api.github.com/repos/sensu/sensu-go-chef/issues/comments{/number}","contents_url":"https://api.github.com/repos/sensu/sensu-go-chef/contents/{+path}","compare_url":"https://api.github.com/repos/sensu/sensu-go-chef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sensu/sensu-go-chef/merges","archive_url":"https://api.github.com/repos/sensu/sensu-go-chef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sensu/sensu-go-chef/downloads","issues_url":"https://api.github.com/repos/sensu/sensu-go-chef/issues{/number}","pulls_url":"https://api.github.com/repos/sensu/sensu-go-chef/pulls{/number}","milestones_url":"https://api.github.com/repos/sensu/sensu-go-chef/milestones{/number}","notifications_url":"https://api.github.com/repos/sensu/sensu-go-chef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sensu/sensu-go-chef/labels{/name}","releases_url":"https://api.github.com/repos/sensu/sensu-go-chef/releases{/id}","deployments_url":"https://api.github.com/repos/sensu/sensu-go-chef/deployments","created_at":"2018-02-27T21:51:38Z","updated_at":"2018-08-29T16:42:08Z","pushed_at":"2018-09-07T21:32:21Z","git_url":"git://github.com/sensu/sensu-go-chef.git","ssh_url":"git@github.com:sensu/sensu-go-chef.git","clone_url":"https://github.com/sensu/sensu-go-chef.git","svn_url":"https://github.com/sensu/sensu-go-chef","homepage":"","size":82,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/32"},"html":{"href":"https://github.com/sensu/sensu-go-chef/pull/32"},"issue":{"href":"https://api.github.com/repos/sensu/sensu-go-chef/issues/32"},"comments":{"href":"https://api.github.com/repos/sensu/sensu-go-chef/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sensu/sensu-go-chef/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/sensu/sensu-go-chef/statuses/fcdfe8a582b7222f329c74e8bc048727773a6cec"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"mercul3s"}}