All URIs are relative to http://log.ano.yumimobi.com/api
Method | HTTP request | Description |
---|---|---|
clone_stream | POST /streams/{streamId}/clone | Clone a stream |
create | POST /streams | Create a stream |
delete | DELETE /streams/{streamId} | Delete a stream |
get | GET /streams | Get a list of all streams |
get_0 | GET /streams/{streamId} | Get a single stream |
get_enabled | GET /streams/enabled | Get a list of all enabled streams |
pause | POST /streams/{streamId}/pause | Pause a stream |
resume | POST /streams/{streamId}/resume | Resume a stream |
test_match | POST /streams/{streamId}/testMatch | Test matching of a stream against a supplied message |
update | PUT /streams/{streamId} | Update a stream |
clone_stream(stream_id, json_body)
Clone a stream
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
stream_id = graylog.Object() # Object |
json_body = graylog.CloneStreamRequest() # CloneStreamRequest |
try:
# Clone a stream
api_instance.clone_stream(stream_id, json_body)
except ApiException as e:
print "Exception when calling StreamsApi->clone_stream: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
stream_id | Object | ||
json_body | CloneStreamRequest |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
create(json_body)
Create a stream
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
json_body = graylog.CreateStreamRequest() # CreateStreamRequest |
try:
# Create a stream
api_instance.create(json_body)
except ApiException as e:
print "Exception when calling StreamsApi->create: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
json_body | CreateStreamRequest |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete(stream_id)
Delete a stream
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
stream_id = graylog.Object() # Object |
try:
# Delete a stream
api_instance.delete(stream_id)
except ApiException as e:
print "Exception when calling StreamsApi->delete: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
stream_id | Object |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StreamListResponse get()
Get a list of all streams
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
try:
# Get a list of all streams
api_response = api_instance.get()
pprint(api_response)
except ApiException as e:
print "Exception when calling StreamsApi->get: %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]
StreamResponse get_0(stream_id)
Get a single stream
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
stream_id = graylog.Object() # Object |
try:
# Get a single stream
api_response = api_instance.get_0(stream_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling StreamsApi->get_0: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
stream_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]
StreamListResponse get_enabled()
Get a list of all enabled streams
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
try:
# Get a list of all enabled streams
api_response = api_instance.get_enabled()
pprint(api_response)
except ApiException as e:
print "Exception when calling StreamsApi->get_enabled: %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]
pause(stream_id)
Pause a stream
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
stream_id = graylog.Object() # Object |
try:
# Pause a stream
api_instance.pause(stream_id)
except ApiException as e:
print "Exception when calling StreamsApi->pause: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
stream_id | Object |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
resume(stream_id)
Resume a stream
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
stream_id = graylog.Object() # Object |
try:
# Resume a stream
api_instance.resume(stream_id)
except ApiException as e:
print "Exception when calling StreamsApi->resume: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
stream_id | Object |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestMatchResponse test_match(stream_id, json_body)
Test matching of a stream against a supplied message
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
stream_id = graylog.Object() # Object |
json_body = graylog.Map() # Map |
try:
# Test matching of a stream against a supplied message
api_response = api_instance.test_match(stream_id, json_body)
pprint(api_response)
except ApiException as e:
print "Exception when calling StreamsApi->test_match: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
stream_id | Object | ||
json_body | Map |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
StreamResponse update(stream_id, json_body)
Update a stream
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.StreamsApi()
stream_id = graylog.Object() # Object |
json_body = graylog.UpdateStreamRequest() # UpdateStreamRequest |
try:
# Update a stream
api_response = api_instance.update(stream_id, json_body)
pprint(api_response)
except ApiException as e:
print "Exception when calling StreamsApi->update: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
stream_id | Object | ||
json_body | UpdateStreamRequest |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]