{"action":"created","comment":{"url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/comments/66665933","id":66665933,"diff_hunk":"@@ -0,0 +1,53 @@\n+module ESP\n+  class CustomSignature\n+    class Result\n+      class Alert < ESP::Resource\n+        belongs_to :region, class_name: 'ESP::Region'\n+        belongs_to :external_account, class_name: 'ESP::ExternalAccount'\n+        belongs_to :custom_signature, class_name: 'ESP::CustomSignature'\n+\n+        # Returns all the alerts for a custom signature result identified by the custom_signature_result_id parameter.\n+        #\n+        # ==== Parameters\n+        #\n+        # +custom_signature_result_id+ | Required | The ID of the custom signature result to retrieve alerts for\n+        #\n+        # See {API documentation}[http://api-docs.evident.io?ruby#alert-attributes] for valid arguments\n+        def self.for_result(custom_signature_result_id = nil)\n+          fail ArgumentError, \"You must supply a custom signature result id.\" unless custom_signature_result_id.present?\n+          # call find_one directly since find is overriden/not implemented","path":"lib/esp/resources/custom_signature/result/alert.rb","position":18,"original_position":18,"commit_id":"efadd999c02ed8cd3b846b348e64ac8d834ab242","original_commit_id":"efadd999c02ed8cd3b846b348e64ac8d834ab242","user":{"login":"kevintyll","id":55633,"avatar_url":"https://avatars.githubusercontent.com/u/55633?v=3","gravatar_id":"","url":"https://api.github.com/users/kevintyll","html_url":"https://github.com/kevintyll","followers_url":"https://api.github.com/users/kevintyll/followers","following_url":"https://api.github.com/users/kevintyll/following{/other_user}","gists_url":"https://api.github.com/users/kevintyll/gists{/gist_id}","starred_url":"https://api.github.com/users/kevintyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevintyll/subscriptions","organizations_url":"https://api.github.com/users/kevintyll/orgs","repos_url":"https://api.github.com/users/kevintyll/repos","events_url":"https://api.github.com/users/kevintyll/events{/privacy}","received_events_url":"https://api.github.com/users/kevintyll/received_events","type":"User","site_admin":false},"body":"find_every","created_at":"2016-06-10T19:08:21Z","updated_at":"2016-06-10T19:08:21Z","html_url":"https://github.com/EvidentSecurity/esp_sdk/pull/30#discussion_r66665933","pull_request_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/comments/66665933"},"html":{"href":"https://github.com/EvidentSecurity/esp_sdk/pull/30#discussion_r66665933"},"pull_request":{"href":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/30","id":72931180,"html_url":"https://github.com/EvidentSecurity/esp_sdk/pull/30","diff_url":"https://github.com/EvidentSecurity/esp_sdk/pull/30.diff","patch_url":"https://github.com/EvidentSecurity/esp_sdk/pull/30.patch","issue_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues/30","number":30,"state":"open","locked":false,"title":"Add Support for Custom Signature Definitions","user":{"login":"johnathanludwig","id":1262078,"avatar_url":"https://avatars.githubusercontent.com/u/1262078?v=3","gravatar_id":"","url":"https://api.github.com/users/johnathanludwig","html_url":"https://github.com/johnathanludwig","followers_url":"https://api.github.com/users/johnathanludwig/followers","following_url":"https://api.github.com/users/johnathanludwig/following{/other_user}","gists_url":"https://api.github.com/users/johnathanludwig/gists{/gist_id}","starred_url":"https://api.github.com/users/johnathanludwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnathanludwig/subscriptions","organizations_url":"https://api.github.com/users/johnathanludwig/orgs","repos_url":"https://api.github.com/users/johnathanludwig/repos","events_url":"https://api.github.com/users/johnathanludwig/events{/privacy}","received_events_url":"https://api.github.com/users/johnathanludwig/received_events","type":"User","site_admin":false},"body":"Removed the `run` method on custom signatures.\r\n\r\nCustom signatures will now have definitions which hold the version and code for that custom signature. Running a custom signature will now be done through the definition, by creating a result. \r\n\r\nThe result will processed in the background when created. Later the result can be requested to get the updated status. Alerts may be requested on the result after it is in the status `complete`.\r\n\r\nI also moved the autoload definitions for child classes to their parent classes to prevent them from being unexpectedly loaded.","created_at":"2016-06-07T19:11:00Z","updated_at":"2016-06-10T19:08:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bdd7f6226fa99e83b98b70d001e2a3cdd478ca5a","assignee":{"login":"kevintyll","id":55633,"avatar_url":"https://avatars.githubusercontent.com/u/55633?v=3","gravatar_id":"","url":"https://api.github.com/users/kevintyll","html_url":"https://github.com/kevintyll","followers_url":"https://api.github.com/users/kevintyll/followers","following_url":"https://api.github.com/users/kevintyll/following{/other_user}","gists_url":"https://api.github.com/users/kevintyll/gists{/gist_id}","starred_url":"https://api.github.com/users/kevintyll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevintyll/subscriptions","organizations_url":"https://api.github.com/users/kevintyll/orgs","repos_url":"https://api.github.com/users/kevintyll/repos","events_url":"https://api.github.com/users/kevintyll/events{/privacy}","received_events_url":"https://api.github.com/users/kevintyll/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/30/commits","review_comments_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/30/comments","review_comment_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues/30/comments","statuses_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/statuses/efadd999c02ed8cd3b846b348e64ac8d834ab242","head":{"label":"EvidentSecurity:custom_signature_definitions","ref":"custom_signature_definitions","sha":"efadd999c02ed8cd3b846b348e64ac8d834ab242","user":{"login":"EvidentSecurity","id":5341549,"avatar_url":"https://avatars.githubusercontent.com/u/5341549?v=3","gravatar_id":"","url":"https://api.github.com/users/EvidentSecurity","html_url":"https://github.com/EvidentSecurity","followers_url":"https://api.github.com/users/EvidentSecurity/followers","following_url":"https://api.github.com/users/EvidentSecurity/following{/other_user}","gists_url":"https://api.github.com/users/EvidentSecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/EvidentSecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvidentSecurity/subscriptions","organizations_url":"https://api.github.com/users/EvidentSecurity/orgs","repos_url":"https://api.github.com/users/EvidentSecurity/repos","events_url":"https://api.github.com/users/EvidentSecurity/events{/privacy}","received_events_url":"https://api.github.com/users/EvidentSecurity/received_events","type":"Organization","site_admin":false},"repo":{"id":23398614,"name":"esp_sdk","full_name":"EvidentSecurity/esp_sdk","owner":{"login":"EvidentSecurity","id":5341549,"avatar_url":"https://avatars.githubusercontent.com/u/5341549?v=3","gravatar_id":"","url":"https://api.github.com/users/EvidentSecurity","html_url":"https://github.com/EvidentSecurity","followers_url":"https://api.github.com/users/EvidentSecurity/followers","following_url":"https://api.github.com/users/EvidentSecurity/following{/other_user}","gists_url":"https://api.github.com/users/EvidentSecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/EvidentSecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvidentSecurity/subscriptions","organizations_url":"https://api.github.com/users/EvidentSecurity/orgs","repos_url":"https://api.github.com/users/EvidentSecurity/repos","events_url":"https://api.github.com/users/EvidentSecurity/events{/privacy}","received_events_url":"https://api.github.com/users/EvidentSecurity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EvidentSecurity/esp_sdk","description":"ESP SDK","fork":false,"url":"https://api.github.com/repos/EvidentSecurity/esp_sdk","forks_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/forks","keys_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/teams","hooks_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/hooks","issue_events_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/events","assignees_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/tags","blobs_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/languages","stargazers_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/stargazers","contributors_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/contributors","subscribers_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/subscribers","subscription_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/subscription","commits_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/merges","archive_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/downloads","issues_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/labels{/name}","releases_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/releases{/id}","deployments_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/deployments","created_at":"2014-08-27T17:20:10Z","updated_at":"2016-02-08T20:43:38Z","pushed_at":"2016-06-07T19:11:00Z","git_url":"git://github.com/EvidentSecurity/esp_sdk.git","ssh_url":"git@github.com:EvidentSecurity/esp_sdk.git","clone_url":"https://github.com/EvidentSecurity/esp_sdk.git","svn_url":"https://github.com/EvidentSecurity/esp_sdk","homepage":"https://esp.evident.io/","size":756,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":5,"default_branch":"master"}},"base":{"label":"EvidentSecurity:master","ref":"master","sha":"2f337f99a42c67646cddb687ce22f46ca00ad0f9","user":{"login":"EvidentSecurity","id":5341549,"avatar_url":"https://avatars.githubusercontent.com/u/5341549?v=3","gravatar_id":"","url":"https://api.github.com/users/EvidentSecurity","html_url":"https://github.com/EvidentSecurity","followers_url":"https://api.github.com/users/EvidentSecurity/followers","following_url":"https://api.github.com/users/EvidentSecurity/following{/other_user}","gists_url":"https://api.github.com/users/EvidentSecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/EvidentSecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvidentSecurity/subscriptions","organizations_url":"https://api.github.com/users/EvidentSecurity/orgs","repos_url":"https://api.github.com/users/EvidentSecurity/repos","events_url":"https://api.github.com/users/EvidentSecurity/events{/privacy}","received_events_url":"https://api.github.com/users/EvidentSecurity/received_events","type":"Organization","site_admin":false},"repo":{"id":23398614,"name":"esp_sdk","full_name":"EvidentSecurity/esp_sdk","owner":{"login":"EvidentSecurity","id":5341549,"avatar_url":"https://avatars.githubusercontent.com/u/5341549?v=3","gravatar_id":"","url":"https://api.github.com/users/EvidentSecurity","html_url":"https://github.com/EvidentSecurity","followers_url":"https://api.github.com/users/EvidentSecurity/followers","following_url":"https://api.github.com/users/EvidentSecurity/following{/other_user}","gists_url":"https://api.github.com/users/EvidentSecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/EvidentSecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvidentSecurity/subscriptions","organizations_url":"https://api.github.com/users/EvidentSecurity/orgs","repos_url":"https://api.github.com/users/EvidentSecurity/repos","events_url":"https://api.github.com/users/EvidentSecurity/events{/privacy}","received_events_url":"https://api.github.com/users/EvidentSecurity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EvidentSecurity/esp_sdk","description":"ESP SDK","fork":false,"url":"https://api.github.com/repos/EvidentSecurity/esp_sdk","forks_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/forks","keys_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/teams","hooks_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/hooks","issue_events_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues/events{/number}","events_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/events","assignees_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/assignees{/user}","branches_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/branches{/branch}","tags_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/tags","blobs_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/languages","stargazers_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/stargazers","contributors_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/contributors","subscribers_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/subscribers","subscription_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/subscription","commits_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/contents/{+path}","compare_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/merges","archive_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/downloads","issues_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues{/number}","pulls_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/labels{/name}","releases_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/releases{/id}","deployments_url":"https://api.github.com/repos/EvidentSecurity/esp_sdk/deployments","created_at":"2014-08-27T17:20:10Z","updated_at":"2016-02-08T20:43:38Z","pushed_at":"2016-06-07T19:11:00Z","git_url":"git://github.com/EvidentSecurity/esp_sdk.git","ssh_url":"git@github.com:EvidentSecurity/esp_sdk.git","clone_url":"https://github.com/EvidentSecurity/esp_sdk.git","svn_url":"https://github.com/EvidentSecurity/esp_sdk","homepage":"https://esp.evident.io/","size":756,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/30"},"html":{"href":"https://github.com/EvidentSecurity/esp_sdk/pull/30"},"issue":{"href":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues/30"},"comments":{"href":"https://api.github.com/repos/EvidentSecurity/esp_sdk/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EvidentSecurity/esp_sdk/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/EvidentSecurity/esp_sdk/statuses/efadd999c02ed8cd3b846b348e64ac8d834ab242"}}}}
{"actor":{"display_login":"kevintyll"}}