forked from distribworks/dkron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Victor Castell
committed
Sep 12, 2015
1 parent
3e960fc
commit 85aa57e
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,6 +152,47 @@ HTTP/1.1 201 Created | |
} | ||
``` | ||
|
||
### Job Show | ||
|
||
Show job. | ||
|
||
``` | ||
GET /v1/jobs/{job_name} | ||
``` | ||
|
||
|
||
#### Curl Example | ||
|
||
```bash | ||
$ curl -n dkron-node:8080/v1/jobs/$JOB_NAME | ||
``` | ||
|
||
|
||
#### Response Example | ||
|
||
``` | ||
HTTP/1.1 200 OK | ||
``` | ||
|
||
```json | ||
{ | ||
"name": "cron_job", | ||
"schedule": "0 30 * * * *", | ||
"command": "/usr/bin/date", | ||
"owner": "John Doe", | ||
"owner_email": "[email protected]", | ||
"run_as_user": "johndoe", | ||
"success_count": 20, | ||
"error_count": 5, | ||
"last_success": "0001-01-01T00:00:00Z", | ||
"last_error": "0001-01-01T100:00:00Z", | ||
"disabled": false, | ||
"tags": { | ||
"role": "web" | ||
} | ||
} | ||
``` | ||
|
||
### Job Delete | ||
|
||
Delete job. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters