{"action":"created","comment":{"url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/comments/37463046","id":37463046,"diff_hunk":"@@ -0,0 +1,50 @@\n+# Cloud Monitoring Custom Repose Filter - Extract Device ID\n+\n+## Purpose\n+The Extract Device ID filter provides a way to query the Monitoring as a Service (MaaS) API to obtain a Device ID based on the Entity ID in the URL. \n+\n+## General filter information\n+Filter name: extract-device-id\n+\n+Filter configuration file: extract-device-id.cfg.xml\n+\n+Release: 1.0\n+\n+## Prerequisites\n+Headers:\n+\n+* The *X-Auth-Token* request header is required.\n+* IF the *X-Tenant-Id* request header is present, THEN it is passed on in the request to the MaaS API call as well.\n+* This filter will populates *X-Device-Id* the response header.\n+\n+Preceding filters:\n+\n+* This filter requires a preceding filter(s) to provide the *X-Auth-Token* header.\n+\n+Proceeding filters:\n+\n+* This filter has no required proceeding filters, but is typically followed by the [Valkyrie Authorization filter](https://repose.atlassian.net/wiki/display/REPOSE/Valkyrie+Authorization+filter).\n+\n+## Basic configuration\n+* [XML schema definition](https://github.com/rackerlabs/cloud-monitoring-filter-bundle/blob/master/extract-device-id/src/main/resources/META-INF/schema/config/extract-device-id.xsd)\n+* [Example configuration](https://github.com/rackerlabs/cloud-monitoring-filter-bundle/blob/master/extract-device-id/src/main/resources/META-INF/schema/examples/extract-device-id.cfg.xml)\n+\n+## Configurable parameters\n+| Elements          | Attributes           | Required/Optional | Description |\n+|:----------------- |:--------------------:|:-----------------:|:------------------------------------------------------------------------------------------------------- |\n+| extract-device-id |                      | Required          | Specifies the sub-elements and attributes to define this configuration.                                 |\n+|                   | maas-service-uri     | Required          | Specifies the endpoint location of the MaaS API service to connect to.                                  |","path":"extract-device-id/README.md","position":36,"original_position":36,"commit_id":"2a0a82b824704427fb84d7ac97bb0c90305c93f2","original_commit_id":"70a3509e27653cb46986887a811a12d1c2db7460","user":{"login":"adrianjgeorge","id":997130,"avatar_url":"https://avatars.githubusercontent.com/u/997130?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianjgeorge","html_url":"https://github.com/adrianjgeorge","followers_url":"https://api.github.com/users/adrianjgeorge/followers","following_url":"https://api.github.com/users/adrianjgeorge/following{/other_user}","gists_url":"https://api.github.com/users/adrianjgeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianjgeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianjgeorge/subscriptions","organizations_url":"https://api.github.com/users/adrianjgeorge/orgs","repos_url":"https://api.github.com/users/adrianjgeorge/repos","events_url":"https://api.github.com/users/adrianjgeorge/events{/privacy}","received_events_url":"https://api.github.com/users/adrianjgeorge/received_events","type":"User","site_admin":false},"body":"no, given http:/blah.com/entities/someid/alarm/someotherid truncate off the /alarm/someotherid. and fire a request here to the resource, but nevermind, that would be cyclic and that's bad. i forgot we don't actually send things onto the original request url.","created_at":"2015-08-19T20:23:12Z","updated_at":"2015-08-19T20:23:12Z","html_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle/pull/1#discussion_r37463046","pull_request_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/comments/37463046"},"html":{"href":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle/pull/1#discussion_r37463046"},"pull_request":{"href":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/1","id":42403423,"html_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle/pull/1","diff_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle/pull/1.diff","patch_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle/pull/1.patch","issue_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues/1","number":1,"state":"open","locked":false,"title":"Rep 2548 new filter bundle","user":{"login":"wdschei","id":7366196,"avatar_url":"https://avatars.githubusercontent.com/u/7366196?v=3","gravatar_id":"","url":"https://api.github.com/users/wdschei","html_url":"https://github.com/wdschei","followers_url":"https://api.github.com/users/wdschei/followers","following_url":"https://api.github.com/users/wdschei/following{/other_user}","gists_url":"https://api.github.com/users/wdschei/gists{/gist_id}","starred_url":"https://api.github.com/users/wdschei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdschei/subscriptions","organizations_url":"https://api.github.com/users/wdschei/orgs","repos_url":"https://api.github.com/users/wdschei/repos","events_url":"https://api.github.com/users/wdschei/events{/privacy}","received_events_url":"https://api.github.com/users/wdschei/received_events","type":"User","site_admin":false},"body":"This is the initial functionality that we are planning to deliver in this new custom filter bundle.","created_at":"2015-08-13T21:49:15Z","updated_at":"2015-08-19T20:23:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20e9d1440616dbdf610065da901599b2e3127ebd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues/1/comments","statuses_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/statuses/2a0a82b824704427fb84d7ac97bb0c90305c93f2","head":{"label":"rackerlabs:REP-2548_NewFilterBundle","ref":"REP-2548_NewFilterBundle","sha":"2a0a82b824704427fb84d7ac97bb0c90305c93f2","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":40308370,"name":"cloud-monitoring-filter-bundle","full_name":"rackerlabs/cloud-monitoring-filter-bundle","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle","description":"This is a custom Repose filter bundle for the Cloud Monitoring team.","fork":false,"url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle","forks_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/forks","keys_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/teams","hooks_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/events","assignees_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/tags","blobs_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/subscription","commits_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/merges","archive_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/downloads","issues_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/releases{/id}","created_at":"2015-08-06T14:11:24Z","updated_at":"2015-08-06T16:04:43Z","pushed_at":"2015-08-19T18:43:14Z","git_url":"git://github.com/rackerlabs/cloud-monitoring-filter-bundle.git","ssh_url":"git@github.com:rackerlabs/cloud-monitoring-filter-bundle.git","clone_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle.git","svn_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle","homepage":null,"size":172,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rackerlabs:master","ref":"master","sha":"a5cf754146d8c5a0bf37566a08e0b040ed1cd961","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":40308370,"name":"cloud-monitoring-filter-bundle","full_name":"rackerlabs/cloud-monitoring-filter-bundle","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle","description":"This is a custom Repose filter bundle for the Cloud Monitoring team.","fork":false,"url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle","forks_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/forks","keys_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/teams","hooks_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/events","assignees_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/tags","blobs_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/subscription","commits_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/merges","archive_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/downloads","issues_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/releases{/id}","created_at":"2015-08-06T14:11:24Z","updated_at":"2015-08-06T16:04:43Z","pushed_at":"2015-08-19T18:43:14Z","git_url":"git://github.com/rackerlabs/cloud-monitoring-filter-bundle.git","ssh_url":"git@github.com:rackerlabs/cloud-monitoring-filter-bundle.git","clone_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle.git","svn_url":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle","homepage":null,"size":172,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/1"},"html":{"href":"https://github.com/rackerlabs/cloud-monitoring-filter-bundle/pull/1"},"issue":{"href":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues/1"},"comments":{"href":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/cloud-monitoring-filter-bundle/statuses/2a0a82b824704427fb84d7ac97bb0c90305c93f2"}}}}