{"action":"created","issue":{"url":"https://api.github.com/repos/project-hatohol/HAPI-2.0-Specification/issues/23","labels_url":"https://api.github.com/repos/project-hatohol/HAPI-2.0-Specification/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/project-hatohol/HAPI-2.0-Specification/issues/23/comments","events_url":"https://api.github.com/repos/project-hatohol/HAPI-2.0-Specification/issues/23/events","html_url":"https://github.com/project-hatohol/HAPI-2.0-Specification/issues/23","id":78822799,"number":23,"title":"登録サーバー情報が更新されたことを通知するnotification","user":{"login":"Mnakagawa","id":7106792,"avatar_url":"https://avatars.githubusercontent.com/u/7106792?v=3","gravatar_id":"","url":"https://api.github.com/users/Mnakagawa","html_url":"https://github.com/Mnakagawa","followers_url":"https://api.github.com/users/Mnakagawa/followers","following_url":"https://api.github.com/users/Mnakagawa/following{/other_user}","gists_url":"https://api.github.com/users/Mnakagawa/gists{/gist_id}","starred_url":"https://api.github.com/users/Mnakagawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mnakagawa/subscriptions","organizations_url":"https://api.github.com/users/Mnakagawa/orgs","repos_url":"https://api.github.com/users/Mnakagawa/repos","events_url":"https://api.github.com/users/Mnakagawa/events{/privacy}","received_events_url":"https://api.github.com/users/Mnakagawa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-21T04:27:09Z","updated_at":"2015-05-21T05:07:37Z","closed_at":null,"body":"掲題に挙げたものの必要性を感じています。\r\n\r\n例えばポーリングを行っている最中にポーリング時間がWebUIから変更された時，\r\nそのポーリング時間をプラグイン側で反映する必要があります。\r\nこのnotificationがあれば，\r\n変更されたことを通知するnotificationを受け取る\r\n↓\r\nポーリングを中止\r\n↓\r\ngetMonitoringServerInfoで新しい登録サーバー情報（ポーリング時間）を取得\r\n↓\r\nポーリングを再開する\r\nという流れが可能になります。\r\n\r\nHAPI1.0までにあったterminateコマンドとほぼ同様と考えて良いと思いますが，\r\nこの通知を受け取った際にどういった動作を行うかはプラグイン作者に委ねればよいため，\r\nterminateという単語は好ましくありません。\r\n\r\nこのnotificationを実装するか否か，またその際の名前についてここで考えたいと思います。\r\n意見が有る方はよろしくお願いします。\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/project-hatohol/HAPI-2.0-Specification/issues/comments/104136700","html_url":"https://github.com/project-hatohol/HAPI-2.0-Specification/issues/23#issuecomment-104136700","issue_url":"https://api.github.com/repos/project-hatohol/HAPI-2.0-Specification/issues/23","id":104136700,"user":{"login":"ashie","id":135104,"avatar_url":"https://avatars.githubusercontent.com/u/135104?v=3","gravatar_id":"","url":"https://api.github.com/users/ashie","html_url":"https://github.com/ashie","followers_url":"https://api.github.com/users/ashie/followers","following_url":"https://api.github.com/users/ashie/following{/other_user}","gists_url":"https://api.github.com/users/ashie/gists{/gist_id}","starred_url":"https://api.github.com/users/ashie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashie/subscriptions","organizations_url":"https://api.github.com/users/ashie/orgs","repos_url":"https://api.github.com/users/ashie/repos","events_url":"https://api.github.com/users/ashie/events{/privacy}","received_events_url":"https://api.github.com/users/ashie/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T05:07:37Z","updated_at":"2015-05-21T05:07:37Z","body":"> 個人的にはnotificationはあった方がいいと思います。\r\n\r\nプラグイン側で待ち受けが必要になると、前に #4 で言った実装の面倒臭さが気になるのですが、\r\nよく考えたらAMQPでは普通のprocedurerの実装でもreplyの待ち受けが必要なので、結局両方\r\nの実装が必要になるんですかね? だとしたらその問題も関係なくなると思います。\r\n"}}