Skip to content

Instantly share code, notes, and snippets.

@MichaelDrogalis
Last active February 22, 2016 03:05
Show Gist options
  • Save MichaelDrogalis/5a116b2a795f9c4123ea to your computer and use it in GitHub Desktop.
Save MichaelDrogalis/5a116b2a795f9c4123ea to your computer and use it in GitHub Desktop.
michaels-mbp-4:lib-onyx michael$ http --json http://localhost:3000/completed-jobs
HTTP/1.1 200 OK
Content-Length: 100
Content-Type: application/json
Date: Mon, 22 Feb 2016 03:04:34 GMT
Server: Jetty(9.2.10.v20150310)
{
"as-of-entry": 12,
"as-of-timestamp": 1456108757818,
"result": [
"0cc2a19a-f9f1-4207-98c9-21e6f6684174"
]
}
michaels-mbp-4:lib-onyx michael$ http --json http://localhost:3000/tasks job-id==0cc2a19a-f9f1-4207-98c9-21e6f6684174
HTTP/1.1 200 OK
Content-Length: 178
Content-Type: application/json
Date: Mon, 22 Feb 2016 03:04:53 GMT
Server: Jetty(9.2.10.v20150310)
{
"as-of-entry": 12,
"as-of-timestamp": 1456108757818,
"result": [
"3393bca8-10f0-4e03-829d-04aa23b8ae64",
"75b93964-3715-4ced-9d5c-1da21409677e",
"b0f9492a-0c5c-430f-9ac1-011b019f51cf"
]
}
michaels-mbp-4:lib-onyx michael$ http --json http://localhost:3000/catalog job-id=="0cc2a19a-f9f1-4207-98c9-21e6f6684174"
HTTP/1.1 200 OK
Content-Length: 581
Content-Type: application/json
Date: Mon, 22 Feb 2016 03:03:55 GMT
Server: Jetty(9.2.10.v20150310)
{
"as-of-entry": 12,
"as-of-timestamp": 1456108757818,
"result": [
{
"onyx/batch-size": 20,
"onyx/doc": "Reads segments from a core.async channel",
"onyx/max-peers": 1,
"onyx/medium": "core.async",
"onyx/name": "in",
"onyx/plugin": "onyx.plugin.core-async/input",
"onyx/type": "input"
},
{
"onyx/batch-size": 20,
"onyx/fn": "onyx.peer.min-peers-test/my-inc",
"onyx/name": "inc",
"onyx/type": "function"
},
{
"onyx/batch-size": 20,
"onyx/doc": "Writes segments to a core.async channel",
"onyx/max-peers": 1,
"onyx/medium": "core.async",
"onyx/name": "out",
"onyx/plugin": "onyx.plugin.core-async/output",
"onyx/type": "output"
}
]
}
michaels-mbp-4:lib-onyx michael$ http --json http://localhost:3000/task task-id=="3393bca8-10f0-4e03-829d-04aa23b8ae64" job-id=="0cc2a19a-f9f1-4207-98c9-21e6f6684174"
HTTP/1.1 200 OK
Content-Length: 264
Content-Type: application/json
Date: Mon, 22 Feb 2016 03:04:23 GMT
Server: Jetty(9.2.10.v20150310)
{
"as-of-entry": 12,
"as-of-timestamp": 1456108757818,
"result": {
"onyx/batch-size": 20,
"onyx/doc": "Reads segments from a core.async channel",
"onyx/max-peers": 1,
"onyx/medium": "core.async",
"onyx/name": "in",
"onyx/plugin": "onyx.plugin.core-async/input",
"onyx/type": "input"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment