All URIs are relative to http://log.ano.yumimobi.com/api
Method | HTTP request | Description |
---|---|---|
create | POST /dashboards | Create a dashboard |
delete | DELETE /dashboards/{dashboardId} | Delete a dashboard and all its widgets |
get | GET /dashboards/{dashboardId} | Get a single dashboards and all configurations of its widgets. |
list | GET /dashboards | Get a list of all dashboards and all configurations of their widgets. |
set_positions | PUT /dashboards/{dashboardId}/positions | Update/set the positions of dashboard widgets. |
update | PUT /dashboards/{dashboardId} | Update the settings of a dashboard. |
create(json_body)
Create a dashboard
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.DashboardsApi()
json_body = graylog.CreateDashboardRequest() # CreateDashboardRequest |
try:
# Create a dashboard
api_instance.create(json_body)
except ApiException as e:
print "Exception when calling DashboardsApi->create: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
json_body | CreateDashboardRequest |
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(dashboard_id)
Delete a dashboard and all its widgets
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.DashboardsApi()
dashboard_id = graylog.Object() # Object |
try:
# Delete a dashboard and all its widgets
api_instance.delete(dashboard_id)
except ApiException as e:
print "Exception when calling DashboardsApi->delete: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
dashboard_id | Object |
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]
Map get(dashboard_id)
Get a single dashboards and all configurations of its widgets.
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.DashboardsApi()
dashboard_id = graylog.Object() # Object |
try:
# Get a single dashboards and all configurations of its widgets.
api_response = api_instance.get(dashboard_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling DashboardsApi->get: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
dashboard_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]
DashboardList list()
Get a list of all dashboards and all configurations of their widgets.
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.DashboardsApi()
try:
# Get a list of all dashboards and all configurations of their widgets.
api_response = api_instance.list()
pprint(api_response)
except ApiException as e:
print "Exception when calling DashboardsApi->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]
set_positions(dashboard_id, json_body)
Update/set the positions of dashboard widgets.
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.DashboardsApi()
dashboard_id = graylog.Object() # Object |
json_body = graylog.WidgetPositionsRequest() # WidgetPositionsRequest |
try:
# Update/set the positions of dashboard widgets.
api_instance.set_positions(dashboard_id, json_body)
except ApiException as e:
print "Exception when calling DashboardsApi->set_positions: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
dashboard_id | Object | ||
json_body | WidgetPositionsRequest |
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]
update(dashboard_id, json_body)
Update the settings of a dashboard.
import time
import graylog
from graylog.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = graylog.DashboardsApi()
dashboard_id = graylog.Object() # Object |
json_body = graylog.UpdateDashboardRequest() # UpdateDashboardRequest |
try:
# Update the settings of a dashboard.
api_instance.update(dashboard_id, json_body)
except ApiException as e:
print "Exception when calling DashboardsApi->update: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
dashboard_id | Object | ||
json_body | UpdateDashboardRequest |
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]