{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/465","labels_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/465/comments","events_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/465/events","html_url":"https://github.com/apache/incubator-zeppelin/pull/465","id":118533967,"number":465,"title":"Add job operation API","user":{"login":"astroshim","id":3348133,"avatar_url":"https://avatars.githubusercontent.com/u/3348133?v=3","gravatar_id":"","url":"https://api.github.com/users/astroshim","html_url":"https://github.com/astroshim","followers_url":"https://api.github.com/users/astroshim/followers","following_url":"https://api.github.com/users/astroshim/following{/other_user}","gists_url":"https://api.github.com/users/astroshim/gists{/gist_id}","starred_url":"https://api.github.com/users/astroshim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astroshim/subscriptions","organizations_url":"https://api.github.com/users/astroshim/orgs","repos_url":"https://api.github.com/users/astroshim/repos","events_url":"https://api.github.com/users/astroshim/events{/privacy}","received_events_url":"https://api.github.com/users/astroshim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-24T05:26:02Z","updated_at":"2015-11-24T06:24:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/pulls/465","html_url":"https://github.com/apache/incubator-zeppelin/pull/465","diff_url":"https://github.com/apache/incubator-zeppelin/pull/465.diff","patch_url":"https://github.com/apache/incubator-zeppelin/pull/465.patch"},"body":"This PR is related to https://issues.apache.org/jira/browse/ZEPPELIN-137.\r\nI added some notebook job operations.\r\n\r\nHere is the examples.\r\n* Get notebook job status.\r\n```\r\n]# curl -XGET http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA\r\n{\"status\":\"OK\",\"body\":[{\"id\":\"20151121-212654_766735423\",\"status\":\"FINISHED\",\"finished\":\"Tue Nov 24 14:21:40 KST 2015\",\"started\":\"Tue Nov 24 14:21:39 KST 2015\"},{\"id\":\"20151121-212657_730976687\",\"status\":\"FINISHED\",\"finished\":\"Tue Nov 24 14:21:40 KST 2015\",\"started\":\"Tue Nov 24 14:21:40 KST 2015\"},{\"id\":\"20151121-235508_752057578\",\"status\":\"FINISHED\",\"finished\":\"Tue Nov 24 14:21:40 KST 2015\",\"started\":\"Tue Nov 24 14:21:40 KST 2015\"},{\"id\":\"20151121-235900_1491052248\",\"status\":\"FINISHED\",\"finished\":\"Tue Nov 24 14:21:41 KST 2015\",\"started\":\"Tue Nov 24 14:21:40 KST 2015\"},{\"id\":\"20151121-235909_1520022794\",\"status\":\"RUNNING\",\"finished\":\"Tue Nov 24 02:53:51 KST 2015\",\"started\":\"Tue Nov 24 14:21:41 KST 2015\"}]}\r\n```\r\n\r\n* Run notebook job.\r\n```\r\n]# curl -XDELETE http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA\r\n{\"status\":\"ACCEPTED\"}\r\n```\r\n\r\n* Stop(Delete) notebook job.\r\n```\r\n]# curl -XDELETE http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA\r\n{\"status\":\"ACCEPTED\"}\r\n```\r\n\r\n* Run requested paragraph job.\r\n```\r\n]# curl -XPOST http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA/20151121-212654_766735423\r\n{\"status\":\"ACCEPTED\"}\r\n```\r\n\r\n* Stop(Delete) requested paragraph job.\r\n```\r\n]# curl -XDELETE http://121.156.59.2:8080/api/notebook/job/2B3Z5BXJA/20151121-212654_766735423\r\n{\"status\":\"ACCEPTED\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/comments/159166983","html_url":"https://github.com/apache/incubator-zeppelin/pull/465#issuecomment-159166983","issue_url":"https://api.github.com/repos/apache/incubator-zeppelin/issues/465","id":159166983,"user":{"login":"springml","id":12737168,"avatar_url":"https://avatars.githubusercontent.com/u/12737168?v=3","gravatar_id":"","url":"https://api.github.com/users/springml","html_url":"https://github.com/springml","followers_url":"https://api.github.com/users/springml/followers","following_url":"https://api.github.com/users/springml/following{/other_user}","gists_url":"https://api.github.com/users/springml/gists{/gist_id}","starred_url":"https://api.github.com/users/springml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springml/subscriptions","organizations_url":"https://api.github.com/users/springml/orgs","repos_url":"https://api.github.com/users/springml/repos","events_url":"https://api.github.com/users/springml/events{/privacy}","received_events_url":"https://api.github.com/users/springml/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T06:24:10Z","updated_at":"2015-11-24T06:24:10Z","body":"Thank you for the contribution.\r\nIs it possible to pass a runtime parameter to the \"Run notebook\" api?"}}