All URIs are relative to http://log.ano.yumimobi.com/api
Method | HTTP request | Description |
---|---|---|
cancel_job | DELETE /cluster/jobs/{jobId} | Cancel job with the given ID |
get_job | GET /cluster/jobs/{jobId} | Get job with the given ID |
list | GET /cluster/jobs | List currently running jobs |
SystemJobSummary cancel_job(job_id)
Cancel job with the given ID
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.ClusterjobsApi()
job_id = graylog.Object() # Object |
try:
# Cancel job with the given ID
api_response = api_instance.cancel_job(job_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling ClusterjobsApi->cancel_job: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
job_id | Object |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SystemJobSummary get_job(job_id)
Get job with the given ID
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.ClusterjobsApi()
job_id = graylog.Object() # Object |
try:
# Get job with the given ID
api_response = api_instance.get_job(job_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling ClusterjobsApi->get_job: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
job_id | Object |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Map list()
List currently running jobs
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.ClusterjobsApi()
try:
# List currently running jobs
api_response = api_instance.list()
pprint(api_response)
except ApiException as e:
print "Exception when calling ClusterjobsApi->list: %s\n" % e
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]