{"action":"created","comment":{"url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/comments/76333261","id":76333261,"diff_hunk":"@@ -0,0 +1,240 @@\n+-module (mondemand_backend_annotations_elasticsearch).\n+\n+-behaviour (supervisor).\n+-behaviour (mondemand_server_backend).\n+-behaviour (mondemand_backend_worker).\n+\n+%% mondemand_backend_worker callbacks\n+-export ([ create/1,\n+           connected/1,\n+           connect/1,\n+           send/2,\n+           destroy/1 ]).\n+\n+%% mondemand_server_backend callbacks\n+-export ([ start_link/1,\n+           process/1,\n+           required_apps/0,\n+           type/0\n+         ]).\n+\n+%% supervisor callbacks\n+-export ([ init/1 ]).\n+\n+-define (POOL, md_ann_es_pool).\n+-define (MILLISECOND_CHECK, 1000000000).\n+-define (MEGASECOND_ADJUST, 1000000).\n+-define (MILLISECOND_ADJUST, 1000).\n+-record (state, { annotation_labels, create_url, update_url, timeout }).\n+\n+%%====================================================================\n+%% mondemand_server_backend callbacks\n+%%====================================================================\n+start_link (Config) ->\n+  supervisor:start_link ( { local, ?MODULE }, ?MODULE, [Config]).\n+\n+process (Event) ->\n+  mondemand_backend_worker_pool_sup:process (?POOL, Event).\n+\n+required_apps () ->\n+  [ crypto, public_key, ssl, lhttpc, lwes, mondemand ].\n+\n+type () ->\n+  supervisor.\n+\n+%%====================================================================\n+%% supervisor callbacks\n+%%====================================================================\n+init ([Config]) ->\n+  Number = proplists:get_value (number, Config, erlang:system_info(schedulers)), %Was 16\n+\n+  { ok,\n+    {\n+      {one_for_one, 10, 10},\n+      [\n+        { ?POOL,\n+          { mondemand_backend_worker_pool_sup, start_link,\n+            [ ?POOL,\n+              mondemand_backend_worker,\n+              Number,\n+              ?MODULE ]\n+          },\n+          permanent,\n+          2000,\n+          supervisor,\n+          [ ]\n+        }\n+      ]\n+    }\n+  }.\n+\n+%%====================================================================\n+%% mondemand_backend_worker callbacks\n+%%====================================================================\n+create (Config) ->\n+  AnnotationLabels = proplists:get_value (annotation_labels, Config),\n+  CreateUrl = proplists:get_value (create_url, Config),\n+  Timeout = proplists:get_value (timeout, Config),\n+  UpdateUrl = proplists:get_value (update_url, Config),\n+  {ok, #state { create_url = CreateUrl, update_url = UpdateUrl, timeout = Timeout,\n+                annotation_labels = AnnotationLabels\n+              }}.\n+\n+connected (#state { create_url = undefined, update_url = undefined }) -> false;\n+connected (_) -> true.\n+\n+connect (State) ->\n+  {ok, State}.\n+\n+send (State = #state {annotation_labels = AnnotationLabels, create_url = Create_Url,\n+                      update_url = Update_Url, timeout = Timeout}, Data) ->\n+  Annotation = get_annotation(Data, AnnotationLabels),\n+  Url = select_url(Annotation, Create_Url, Update_Url),\n+  case catch lhttpc:request\n+         (Url, \"POST\",[], format_annotation(Annotation, AnnotationLabels), Timeout, [{max_connections, 256}])\n+  of\n+    {ok, {{204,_},_,_}} ->\n+      { ok, State };\n+    E ->\n+      error_logger:error_msg (\"elasticsearch responded with ~p\",[E]),\n+      { error, State }\n+  end.\n+\n+destroy (_) ->\n+  ok.\n+\n+%%======================\n+%% Internal functions\n+%%======================\n+get_annotation ( { _Type, _RecTime, _SenderIp, _SenderPort, _Name, MSG }, Labels ) ->\n+  { _MsgName, ID, Timestamp, Description, Title, TagCount, Tags, ContextCount, Context } = MSG,\n+  TagStr =\n+    case Tags of\n+      [] -> <<>>;\n+      T when is_list (T), T =/= [] ->\n+        iolist_to_binary((mondemand_server_util:join (T,\",\")))\n+    end,\n+  [ { timestamp, Timestamp }, { description, Description }, { title, Title },\n+    { tags, TagStr }, { id, ID } ].\n+\n+select_url ( AnnotationList, Create_Url, Update_Url) ->\n+  case proplists:get_value(id, AnnotationList) of\n+    ID when ID /= <<>> -> lists:flatten(io_lib:format(Update_Url, [ID]));\n+    _ -> Create_Url\n+  end.\n+\n+format_annotation ( Annotation, Labels ) ->\n+  InterAnnotation = [ { proplists:get_value(Name, Labels, Name), Value }\n+                      || { Name, Value } <- Annotation,\n+                         is_integer(proplists:get_value( Name, Annotation) ) == false,\n+                         proplists:get_value( Name, Annotation) =/= <<>>\n+                    ],\n+  AnnoTime = to_iso8601(proplists:get_value( timestamp, Annotation)),\n+  case proplists:get_value(id, Annotation) of","path":"src/mondemand_backend_annotations_elasticsearch.erl","position":133,"original_position":133,"commit_id":"a5bbd0499150ee9c4eef1488742752e8ee8e6194","original_commit_id":"a5bbd0499150ee9c4eef1488742752e8ee8e6194","user":{"login":"djnym","id":94215,"avatar_url":"https://avatars.githubusercontent.com/u/94215?v=3","gravatar_id":"","url":"https://api.github.com/users/djnym","html_url":"https://github.com/djnym","followers_url":"https://api.github.com/users/djnym/followers","following_url":"https://api.github.com/users/djnym/following{/other_user}","gists_url":"https://api.github.com/users/djnym/gists{/gist_id}","starred_url":"https://api.github.com/users/djnym/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djnym/subscriptions","organizations_url":"https://api.github.com/users/djnym/orgs","repos_url":"https://api.github.com/users/djnym/repos","events_url":"https://api.github.com/users/djnym/events{/privacy}","received_events_url":"https://api.github.com/users/djnym/received_events","type":"User","site_admin":false},"body":"When is there every not an id?  Can't you just always just create the annotations?","created_at":"2016-08-25T22:02:12Z","updated_at":"2016-08-25T22:02:12Z","html_url":"https://github.com/mondemand/mondemand-backend-annotations-elasticsearch/pull/2#discussion_r76333261","pull_request_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/comments/76333261"},"html":{"href":"https://github.com/mondemand/mondemand-backend-annotations-elasticsearch/pull/2#discussion_r76333261"},"pull_request":{"href":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/2","id":82796325,"html_url":"https://github.com/mondemand/mondemand-backend-annotations-elasticsearch/pull/2","diff_url":"https://github.com/mondemand/mondemand-backend-annotations-elasticsearch/pull/2.diff","patch_url":"https://github.com/mondemand/mondemand-backend-annotations-elasticsearch/pull/2.patch","issue_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/issues/2","number":2,"state":"open","locked":false,"title":"initial checkin of code","user":{"login":"luke-powers","id":4767929,"avatar_url":"https://avatars.githubusercontent.com/u/4767929?v=3","gravatar_id":"","url":"https://api.github.com/users/luke-powers","html_url":"https://github.com/luke-powers","followers_url":"https://api.github.com/users/luke-powers/followers","following_url":"https://api.github.com/users/luke-powers/following{/other_user}","gists_url":"https://api.github.com/users/luke-powers/gists{/gist_id}","starred_url":"https://api.github.com/users/luke-powers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luke-powers/subscriptions","organizations_url":"https://api.github.com/users/luke-powers/orgs","repos_url":"https://api.github.com/users/luke-powers/repos","events_url":"https://api.github.com/users/luke-powers/events{/privacy}","received_events_url":"https://api.github.com/users/luke-powers/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-25T21:26:46Z","updated_at":"2016-08-25T22:02:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"595a4b940bbd38f55ac457f042d538eac5ded2c3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/2/commits","review_comments_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/2/comments","review_comment_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/issues/2/comments","statuses_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/statuses/a5bbd0499150ee9c4eef1488742752e8ee8e6194","head":{"label":"luke-powers:master","ref":"master","sha":"a5bbd0499150ee9c4eef1488742752e8ee8e6194","user":{"login":"luke-powers","id":4767929,"avatar_url":"https://avatars.githubusercontent.com/u/4767929?v=3","gravatar_id":"","url":"https://api.github.com/users/luke-powers","html_url":"https://github.com/luke-powers","followers_url":"https://api.github.com/users/luke-powers/followers","following_url":"https://api.github.com/users/luke-powers/following{/other_user}","gists_url":"https://api.github.com/users/luke-powers/gists{/gist_id}","starred_url":"https://api.github.com/users/luke-powers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luke-powers/subscriptions","organizations_url":"https://api.github.com/users/luke-powers/orgs","repos_url":"https://api.github.com/users/luke-powers/repos","events_url":"https://api.github.com/users/luke-powers/events{/privacy}","received_events_url":"https://api.github.com/users/luke-powers/received_events","type":"User","site_admin":false},"repo":{"id":66594413,"name":"mondemand-backend-annotations-elasticsearch","full_name":"luke-powers/mondemand-backend-annotations-elasticsearch","owner":{"login":"luke-powers","id":4767929,"avatar_url":"https://avatars.githubusercontent.com/u/4767929?v=3","gravatar_id":"","url":"https://api.github.com/users/luke-powers","html_url":"https://github.com/luke-powers","followers_url":"https://api.github.com/users/luke-powers/followers","following_url":"https://api.github.com/users/luke-powers/following{/other_user}","gists_url":"https://api.github.com/users/luke-powers/gists{/gist_id}","starred_url":"https://api.github.com/users/luke-powers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luke-powers/subscriptions","organizations_url":"https://api.github.com/users/luke-powers/orgs","repos_url":"https://api.github.com/users/luke-powers/repos","events_url":"https://api.github.com/users/luke-powers/events{/privacy}","received_events_url":"https://api.github.com/users/luke-powers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luke-powers/mondemand-backend-annotations-elasticsearch","description":"A plugin for the mondemand server to send annotations to elasic search.","fork":true,"url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch","forks_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/forks","keys_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/teams","hooks_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/events","assignees_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/tags","blobs_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/languages","stargazers_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/subscription","commits_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/merges","archive_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/downloads","issues_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/luke-powers/mondemand-backend-annotations-elasticsearch/deployments","created_at":"2016-08-25T21:24:41Z","updated_at":"2016-08-25T21:26:06Z","pushed_at":"2016-08-25T21:26:05Z","git_url":"git://github.com/luke-powers/mondemand-backend-annotations-elasticsearch.git","ssh_url":"git@github.com:luke-powers/mondemand-backend-annotations-elasticsearch.git","clone_url":"https://github.com/luke-powers/mondemand-backend-annotations-elasticsearch.git","svn_url":"https://github.com/luke-powers/mondemand-backend-annotations-elasticsearch","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Erlang","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":"master"}},"base":{"label":"mondemand:master","ref":"master","sha":"80b53440d6ae92d1755c007d8d00b73973ee93bf","user":{"login":"mondemand","id":638457,"avatar_url":"https://avatars.githubusercontent.com/u/638457?v=3","gravatar_id":"","url":"https://api.github.com/users/mondemand","html_url":"https://github.com/mondemand","followers_url":"https://api.github.com/users/mondemand/followers","following_url":"https://api.github.com/users/mondemand/following{/other_user}","gists_url":"https://api.github.com/users/mondemand/gists{/gist_id}","starred_url":"https://api.github.com/users/mondemand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mondemand/subscriptions","organizations_url":"https://api.github.com/users/mondemand/orgs","repos_url":"https://api.github.com/users/mondemand/repos","events_url":"https://api.github.com/users/mondemand/events{/privacy}","received_events_url":"https://api.github.com/users/mondemand/received_events","type":"Organization","site_admin":false},"repo":{"id":66587880,"name":"mondemand-backend-annotations-elasticsearch","full_name":"mondemand/mondemand-backend-annotations-elasticsearch","owner":{"login":"mondemand","id":638457,"avatar_url":"https://avatars.githubusercontent.com/u/638457?v=3","gravatar_id":"","url":"https://api.github.com/users/mondemand","html_url":"https://github.com/mondemand","followers_url":"https://api.github.com/users/mondemand/followers","following_url":"https://api.github.com/users/mondemand/following{/other_user}","gists_url":"https://api.github.com/users/mondemand/gists{/gist_id}","starred_url":"https://api.github.com/users/mondemand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mondemand/subscriptions","organizations_url":"https://api.github.com/users/mondemand/orgs","repos_url":"https://api.github.com/users/mondemand/repos","events_url":"https://api.github.com/users/mondemand/events{/privacy}","received_events_url":"https://api.github.com/users/mondemand/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mondemand/mondemand-backend-annotations-elasticsearch","description":"A plugin for the mondemand server to send annotations to elasic search.","fork":false,"url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch","forks_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/forks","keys_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/teams","hooks_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/events","assignees_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/tags","blobs_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/languages","stargazers_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/subscription","commits_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/merges","archive_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/downloads","issues_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/deployments","created_at":"2016-08-25T19:43:36Z","updated_at":"2016-08-25T19:43:36Z","pushed_at":"2016-08-25T21:26:47Z","git_url":"git://github.com/mondemand/mondemand-backend-annotations-elasticsearch.git","ssh_url":"git@github.com:mondemand/mondemand-backend-annotations-elasticsearch.git","clone_url":"https://github.com/mondemand/mondemand-backend-annotations-elasticsearch.git","svn_url":"https://github.com/mondemand/mondemand-backend-annotations-elasticsearch","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/2"},"html":{"href":"https://github.com/mondemand/mondemand-backend-annotations-elasticsearch/pull/2"},"issue":{"href":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/issues/2"},"comments":{"href":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/mondemand/mondemand-backend-annotations-elasticsearch/statuses/a5bbd0499150ee9c4eef1488742752e8ee8e6194"}}}}
{"actor":{"display_login":"djnym"}}