2016-08-24 23:31:08 +00:00
swagger : '2.0'
info :
2016-09-08 20:56:04 +00:00
title : Mr Fusion
description : Fuel for Chronograf
version : "1.1.0"
2016-09-09 22:22:17 +00:00
host : Chronograf.influxdata.com
2016-08-24 23:31:08 +00:00
schemes :
2016-09-08 20:56:04 +00:00
- http
2016-09-09 22:22:17 +00:00
basePath : /chronograf/v1
2016-09-08 20:56:04 +00:00
consumes :
- application/json
2016-08-24 23:31:08 +00:00
produces :
2016-09-08 20:56:04 +00:00
- application/json
2016-08-24 23:31:08 +00:00
paths :
2016-09-08 20:56:04 +00:00
'/' :
get :
summary : Lists all the endpoints
description : List of the endpoints.
responses :
200 :
description : Returns the links to the top level endpoints.
schema :
$ref : '#/definitions/Links'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
/sources :
get :
summary : Configured data sources
description : These data sources store time series data.
responses :
200 :
description : An array of data sources
schema :
$ref : '#/definitions/Sources'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
post :
summary : Create new data source
parameters :
- name : source
in : body
description : Configuration options for data source
schema :
$ref : '#/definitions/Source'
responses :
201 :
description : Successfully create data source
headers :
Location :
type : string
format : url
description : Location of the newly created data source resource.
schema :
$ref : '#/definitions/Source'
default :
description : A processing or an unexpected error.
schema :
$ref : '#/definitions/Error'
/sources/{id}:
get :
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
summary : Configured data sources
description : These data sources store time series data.
responses :
200 :
2016-09-08 21:58:40 +00:00
description : Data source used to supply time series to dashboards.
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Source'
404 :
description : Unknown source id
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
patch :
summary : Update data source configuration
parameters :
- name : id
in : path
type : string
description : ID of a data source
required : true
- name : config
in : body
description : data source configuration
schema :
$ref : '#/definitions/Source'
required : true
responses :
204 :
description : Data source's configuration was changed
404 :
description : Happens when trying to access a non-existent data source.
schema :
$ref : '#/definitions/Error'
default :
description : A processing or an unexpected error.
schema :
$ref : '#/definitions/Error'
delete :
parameters :
- name : id
in : path
type : string
description : ID of the source
required : true
summary : This specific data source will be removed from the data store
responses :
204 :
description : data source has been removed
404 :
description : Unknown data source id
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
/sources/{id}/proxy:
post :
description : Query the backend time series data source and return the response according to `format`
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
- name : query
in : body
description : Query Parameters
schema :
$ref : '#/definitions/Proxy'
required : true
responses :
200 :
description : Result of the query from the backend time series data source.
schema :
$ref : '#/definitions/ProxyResponse'
400 :
description : Any query that results in a data source error (syntax error, etc) will cause this response. The error message will be passed back in the body
schema :
$ref : '#/definitions/Error'
404 :
description : Data source id does not exist.
schema :
$ref : '#/definitions/Error'
408 :
description : Timeout trying to query data source.
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
2016-09-09 22:07:24 +00:00
/sources/{id}/permissions:
get :
summary : Returns the list of possible permissions supported by the backend time series data source.
2016-09-08 20:56:04 +00:00
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
responses :
2016-09-09 22:07:24 +00:00
200 :
description : An array of permissions
2016-09-08 20:56:04 +00:00
schema :
2016-09-09 22:07:24 +00:00
$ref : '#/definitions/AllPermissions'
2016-09-15 16:28:51 +00:00
404 :
description : Data source id does not exist.
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
/sources/{id}/monitored:
get :
summary : Returns a list of all being services being monitored
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
responses :
200 :
description : An array of permissions
schema :
$ref : '#/definitions/Services'
404 :
description : Data source id does not exist.
schema :
$ref : '#/definitions/Error'
2016-09-08 20:56:04 +00:00
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
2016-09-09 22:07:24 +00:00
/sources/{id}/users:
2016-09-08 20:56:04 +00:00
get :
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
2016-09-09 22:07:24 +00:00
summary : List of all users on this data source
2016-09-08 20:56:04 +00:00
responses :
200 :
2016-09-09 22:07:24 +00:00
description : An array of users
2016-09-08 20:56:04 +00:00
schema :
2016-09-09 22:07:24 +00:00
$ref : '#/definitions/Users'
2016-09-08 20:56:04 +00:00
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
2016-09-09 22:07:24 +00:00
post :
summary : Create new user for this data source
2016-09-08 20:56:04 +00:00
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
2016-09-09 22:07:24 +00:00
- name : user
2016-09-08 20:56:04 +00:00
in : body
2016-09-09 22:07:24 +00:00
description : Configuration options for new user
2016-09-08 20:56:04 +00:00
schema :
2016-09-09 22:07:24 +00:00
$ref : '#/definitions/User'
2016-09-08 20:56:04 +00:00
responses :
2016-09-09 22:07:24 +00:00
201 :
description : Successfully created new user
headers :
Location :
type : string
format : url
description : Location of the newly created user resource.
2016-09-08 20:56:04 +00:00
schema :
2016-09-09 22:07:24 +00:00
$ref : '#/definitions/User'
2016-09-08 20:56:04 +00:00
default :
2016-09-09 22:07:24 +00:00
description : A processing or an unexpected error.
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
2016-09-09 22:07:24 +00:00
/sources/{id}/users/{user_id}:
get :
2016-09-08 20:56:04 +00:00
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
2016-09-09 22:07:24 +00:00
- name : user_id
2016-09-08 20:56:04 +00:00
in : path
type : string
2016-09-09 22:07:24 +00:00
description : ID of the specific user
required : true
summary : Returns information about a specific user
description : |
Specific User and their permissions.
2016-09-08 20:56:04 +00:00
responses :
2016-09-09 22:07:24 +00:00
200 :
description : Information relating to the user
schema :
$ref : '#/definitions/User'
2016-09-08 20:56:04 +00:00
404 :
2016-09-09 22:07:24 +00:00
description : Unknown source id
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
2016-09-09 22:07:24 +00:00
patch :
summary : Update user configuration
2016-09-08 20:56:04 +00:00
parameters :
- name : id
in : path
type : string
2016-09-09 22:07:24 +00:00
description : ID of a data source
2016-09-08 20:56:04 +00:00
required : true
2016-09-09 22:07:24 +00:00
- name : user_id
2016-09-08 20:56:04 +00:00
in : path
type : string
2016-09-09 22:07:24 +00:00
description : ID of the specific user
required : true
- name : config
in : body
description : user configuration
schema :
$ref : '#/definitions/User'
required : true
2016-09-08 20:56:04 +00:00
responses :
2016-09-09 22:07:24 +00:00
204 :
description : Users's configuration was changed
2016-09-08 20:56:04 +00:00
404 :
2016-09-09 22:07:24 +00:00
description : Happens when trying to access a non-existent user.
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
default :
2016-09-09 22:07:24 +00:00
description : A processing or an unexpected error.
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
2016-09-09 22:07:24 +00:00
delete :
2016-09-08 20:56:04 +00:00
parameters :
- name : id
in : path
type : string
2016-09-09 22:07:24 +00:00
description : ID of the source
2016-09-08 20:56:04 +00:00
required : true
2016-09-09 22:07:24 +00:00
- name : user_id
in : path
type : string
description : ID of the specific user
required : true
summary : This specific user will be removed from the data store
2016-09-08 20:56:04 +00:00
responses :
2016-09-09 22:07:24 +00:00
204 :
description : User has been removed
404 :
description : Unknown user id
2016-09-08 20:56:04 +00:00
schema :
2016-09-09 22:07:24 +00:00
$ref : '#/definitions/Error'
2016-09-08 20:56:04 +00:00
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
2016-09-12 17:50:02 +00:00
/sources/{id}/users/{user_id}/explorations:
2016-09-08 20:56:04 +00:00
get :
parameters :
2016-09-09 22:07:24 +00:00
- name : id
in : path
type : string
description : ID of the data source
required : true
- name : user_id
in : path
type : string
2016-09-12 17:50:02 +00:00
description : All Data Explorations returned only for this user.
2016-09-09 22:07:24 +00:00
required : true
2016-09-08 20:56:04 +00:00
responses :
200 :
2016-09-12 17:50:02 +00:00
description : Data Explorations saved sessions for user are returned.
2016-09-08 20:56:04 +00:00
schema :
2016-09-12 17:50:02 +00:00
$ref : '#/definitions/Explorations'
2016-09-09 22:07:24 +00:00
404 :
description : Data source id or user does not exist.
schema :
$ref : '#/definitions/Error'
2016-09-08 20:56:04 +00:00
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
post :
2016-09-12 17:50:02 +00:00
summary : Create new named exploration for this user
2016-09-08 20:56:04 +00:00
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
2016-09-09 22:07:24 +00:00
- name : user_id
in : path
type : string
2016-09-12 17:50:02 +00:00
description : ID of user to associate this exploration with.
2016-09-09 22:07:24 +00:00
required : true
2016-09-12 17:50:02 +00:00
- name : exploration
2016-09-08 20:56:04 +00:00
in : body
2016-09-12 17:50:02 +00:00
description : Exploration session to save
2016-09-08 20:56:04 +00:00
schema :
2016-09-12 17:50:02 +00:00
$ref : '#/definitions/Exploration'
2016-09-08 20:56:04 +00:00
responses :
201 :
2016-09-12 17:50:02 +00:00
description : Successfully created new Exploration session
2016-09-08 20:56:04 +00:00
headers :
Location :
type : string
format : url
2016-09-12 17:50:02 +00:00
description : Location of the newly created exploration resource.
2016-09-08 20:56:04 +00:00
schema :
2016-09-12 17:50:02 +00:00
$ref : '#/definitions/Exploration'
2016-09-09 22:07:24 +00:00
404 :
description : Data source id or user does not exist.
schema :
$ref : '#/definitions/Error'
2016-09-08 20:56:04 +00:00
default :
description : A processing or an unexpected error.
schema :
$ref : '#/definitions/Error'
2016-09-12 23:10:52 +00:00
/sources/{id}/users/{user_id}/explorations/{exploration_id}:
2016-09-08 20:56:04 +00:00
get :
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
- name : user_id
in : path
type : string
2016-09-12 17:50:02 +00:00
description : ID of user to associate this exploration with.
2016-09-08 20:56:04 +00:00
required : true
2016-09-12 17:50:02 +00:00
- name : exploration_id
2016-09-09 22:07:24 +00:00
in : path
type : string
2016-09-12 17:50:02 +00:00
description : ID of the specific exploration.
2016-09-09 22:07:24 +00:00
required : true
2016-09-12 17:50:02 +00:00
summary : Returns the specified data exploration session
2016-09-08 20:56:04 +00:00
description : |
2016-09-12 17:50:02 +00:00
A data exploration session specifies query information.
2016-09-08 20:56:04 +00:00
responses :
200 :
2016-09-12 17:50:02 +00:00
description : Information relating to the exploration
2016-09-08 20:56:04 +00:00
schema :
2016-09-12 17:50:02 +00:00
$ref : '#/definitions/Exploration'
2016-09-08 20:56:04 +00:00
404 :
2016-09-12 17:50:02 +00:00
description : Data source id, user, or exploration does not exist.
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
patch :
2016-09-12 17:50:02 +00:00
summary : Update exploration configuration
2016-09-08 20:56:04 +00:00
parameters :
- name : id
in : path
type : string
2016-09-09 22:07:24 +00:00
description : ID of the data source
2016-09-08 20:56:04 +00:00
required : true
- name : user_id
in : path
type : string
2016-09-09 22:07:24 +00:00
description : ID of user
2016-09-08 20:56:04 +00:00
required : true
2016-09-12 17:50:02 +00:00
- name : exploration_id
2016-09-09 22:07:24 +00:00
in : path
type : string
2016-09-12 17:50:02 +00:00
description : ID of the specific exploration.
2016-09-09 22:07:24 +00:00
required : true
2016-09-12 17:50:02 +00:00
- name : exploration
2016-09-08 20:56:04 +00:00
in : body
2016-09-12 17:50:02 +00:00
description : Update the exploration information to this.
2016-09-08 20:56:04 +00:00
required : true
2016-09-09 22:07:24 +00:00
schema :
2016-09-12 17:50:02 +00:00
$ref : "#/definitions/Exploration"
2016-09-08 20:56:04 +00:00
responses :
204 :
2016-09-12 17:50:02 +00:00
description : Exploration's configuration was changed
2016-09-08 20:56:04 +00:00
404 :
2016-09-12 17:50:02 +00:00
description : Data source id, user, or exploration does not exist.
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
default :
description : A processing or an unexpected error.
schema :
$ref : '#/definitions/Error'
delete :
parameters :
- name : id
in : path
type : string
2016-09-09 22:07:24 +00:00
description : ID of the data source
2016-09-08 20:56:04 +00:00
required : true
- name : user_id
in : path
type : string
2016-09-12 17:50:02 +00:00
description : ID of user to associate this exploration with.
2016-09-08 20:56:04 +00:00
required : true
2016-09-12 17:50:02 +00:00
- name : exploration_id
2016-09-09 22:07:24 +00:00
in : path
type : string
2016-09-12 17:50:02 +00:00
description : ID of the specific exploration.
2016-09-09 22:07:24 +00:00
required : true
summary : This specific exporer session will be removed.
2016-09-08 20:56:04 +00:00
responses :
204 :
2016-09-12 17:50:02 +00:00
description : Exploration session has been removed
2016-09-08 20:56:04 +00:00
404 :
2016-09-12 17:50:02 +00:00
description : Data source id, user, or exploration does not exist.
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
/sources/{id}/roles:
get :
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
summary : List of all roles on this data source
responses :
200 :
description : An array of roles
schema :
$ref : '#/definitions/Roles'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
post :
summary : Create new role for this data source
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
- name : role
in : body
description : Configuration options for new role
schema :
$ref : '#/definitions/Role'
responses :
201 :
description : Successfully created new role
headers :
Location :
type : string
format : url
description : Location of the newly created role resource.
schema :
$ref : '#/definitions/Role'
default :
description : A processing or an unexpected error.
schema :
$ref : '#/definitions/Error'
/sources/{id}/roles/{role_id}:
get :
parameters :
- name : id
in : path
type : string
description : ID of the data source
required : true
- name : role_id
in : path
type : string
description : ID of the specific role
required : true
summary : Returns information about a specific role
description : |
Specific Role and its associated permissions.
responses :
200 :
description : Information relating to the role
schema :
$ref : '#/definitions/Role'
404 :
description : Unknown source id
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
patch :
summary : Update role configuration
parameters :
- name : id
in : path
type : string
description : ID of a data source
required : true
- name : role_id
in : path
type : string
description : ID of the specific role
required : true
- name : config
in : body
description : role configuration
schema :
$ref : '#/definitions/Role'
required : true
responses :
204 :
description : Role's configuration was changed
404 :
description : Happens when trying to access a non-existent role.
schema :
$ref : '#/definitions/Error'
default :
description : A processing or an unexpected error.
schema :
$ref : '#/definitions/Error'
delete :
parameters :
- name : id
in : path
type : string
description : ID of the source
required : true
- name : role_id
in : path
type : string
description : ID of the specific role
required : true
summary : This specific role will be removed from the data store
responses :
204 :
description : Role has been removed
404 :
description : Unknown role id
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
2016-09-08 21:58:40 +00:00
/dashboards :
2016-09-08 20:56:04 +00:00
get :
2016-09-08 21:58:40 +00:00
summary : Pre-configured dashboards
2016-09-08 20:56:04 +00:00
description : |
2016-09-08 21:58:40 +00:00
Dashboards are a collection of `Cells` that visualize time-series data.
2016-09-08 20:56:04 +00:00
responses :
200 :
2016-09-08 21:58:40 +00:00
description : An array of dashboards
2016-09-08 20:56:04 +00:00
schema :
2016-09-08 21:58:40 +00:00
$ref : '#/definitions/Dashboards'
2016-09-08 20:56:04 +00:00
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
post :
2016-09-08 21:58:40 +00:00
summary : Create new Dashboard
2016-09-08 20:56:04 +00:00
parameters :
2016-09-08 21:58:40 +00:00
- name : dashboard
2016-09-08 20:56:04 +00:00
in : body
2016-09-08 21:58:40 +00:00
description : Defines the dashboard and queries of the cells within the dashboard.
2016-09-08 20:56:04 +00:00
schema :
2016-09-08 21:58:40 +00:00
$ref : '#/definitions/Dashboard'
2016-09-08 20:56:04 +00:00
responses :
201 :
2016-09-08 21:58:40 +00:00
description : Successfully created new dashboard
2016-09-08 20:56:04 +00:00
headers :
Location :
type : string
format : url
2016-09-08 21:58:40 +00:00
description : Location of the newly created dashboard
2016-09-08 20:56:04 +00:00
schema :
2016-09-08 21:58:40 +00:00
$ref : '#/definitions/Dashboard'
2016-09-08 20:56:04 +00:00
default :
description : A processing or an unexpected error.
schema :
$ref : '#/definitions/Error'
2016-09-08 21:58:40 +00:00
/dashboards/{id}:
2016-09-08 20:56:04 +00:00
get :
parameters :
- name : id
in : path
type : string
2016-09-08 21:58:40 +00:00
description : ID of the dashboard
2016-09-08 20:56:04 +00:00
required : true
2016-09-08 21:58:40 +00:00
summary : Specific pre-configured dashboard containing cells and queries.
2016-09-08 20:56:04 +00:00
description : |
2016-09-08 21:58:40 +00:00
dashboards will hold information about how to layout the page of graphs.
2016-09-08 20:56:04 +00:00
responses :
200 :
2016-09-08 22:43:27 +00:00
description : Returns the specified dashboard containing `cells`.
2016-09-08 20:56:04 +00:00
schema :
2016-09-08 22:43:27 +00:00
$ref : '#/definitions/Dashboard'
2016-09-08 20:56:04 +00:00
404 :
2016-09-08 21:58:40 +00:00
description : Unknown dashboard id
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
delete :
parameters :
- name : id
in : path
type : string
2016-09-08 21:58:40 +00:00
description : ID of the dashboard
2016-09-08 20:56:04 +00:00
required : true
2016-09-08 21:58:40 +00:00
summary : This specific dashboard will be removed from the data store
2016-09-08 20:56:04 +00:00
responses :
204 :
2016-09-08 21:58:40 +00:00
description : An array of dashboards
2016-09-08 20:56:04 +00:00
404 :
2016-09-08 21:58:40 +00:00
description : Unknown dashboard id
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
default :
description : Unexpected internal service error
schema :
$ref : '#/definitions/Error'
2016-09-08 21:58:40 +00:00
put :
2016-09-09 15:57:09 +00:00
summary : Replace dashboard configuration.
2016-09-08 20:56:04 +00:00
parameters :
- name : id
in : path
type : string
2016-09-08 21:58:40 +00:00
description : ID of a dashboard
2016-09-08 20:56:04 +00:00
required : true
- name : config
in : body
2016-09-08 21:58:40 +00:00
description : dashboard configuration update parameters
2016-09-08 20:56:04 +00:00
schema :
2016-09-08 21:58:40 +00:00
$ref : '#/definitions/Dashboard'
2016-09-08 20:56:04 +00:00
required : true
responses :
204 :
2016-09-08 21:58:40 +00:00
description : Dashboard's configuration was changed
2016-09-08 20:56:04 +00:00
404 :
2016-09-08 21:58:40 +00:00
description : Happens when trying to access a non-existent dashboard.
2016-09-08 20:56:04 +00:00
schema :
$ref : '#/definitions/Error'
default :
description : A processing or an unexpected error.
schema :
$ref : '#/definitions/Error'
definitions :
Sources :
type : object
properties :
sources :
type : array
items :
$ref : '#/definitions/Source'
Source :
type : object
required :
- type
- name
properties :
id :
2016-08-24 23:31:08 +00:00
type : string
2016-09-08 20:56:04 +00:00
description : Unique identifier representing a specific data source.
readOnly : True
name :
2016-08-24 23:31:08 +00:00
type : string
2016-09-08 20:56:04 +00:00
description : User facing name of data source
type :
2016-08-24 23:31:08 +00:00
type : string
2016-09-08 20:56:04 +00:00
description : Format of the data source
enum :
- influx
- influx-enterprise
link :
$ref : "#/definitions/Link"
2016-09-09 22:07:24 +00:00
Proxy :
type : object
required :
- query
properties :
query :
type : string
format :
type : string
enum :
- raw
default : raw
ProxyResponse :
type : object
properties :
results :
description : results from influx
type : object
2016-09-12 17:50:02 +00:00
Explorations :
2016-09-09 22:07:24 +00:00
type : object
properties :
2016-09-12 17:50:02 +00:00
explorations :
2016-09-09 22:07:24 +00:00
type : array
items :
2016-09-12 17:50:02 +00:00
$ref : "#/definitions/Exploration"
Exploration :
2016-09-09 22:07:24 +00:00
type : object
properties :
created_at :
type : string
format : date-time
updated_at :
type : string
format : date-time
2016-09-12 17:50:02 +00:00
description : Latest time the exploration was updated.
2016-09-09 22:07:24 +00:00
name :
type : string
2016-09-12 17:50:02 +00:00
description : Exploration name given by user.
2016-09-09 22:07:24 +00:00
data :
type : object
2016-09-12 17:50:02 +00:00
description : Serialization of the exploration query configuration.
2016-09-09 22:07:24 +00:00
link :
$ref : "#/definitions/Link"
2016-09-08 20:56:04 +00:00
Roles :
type : object
properties :
2016-09-09 03:25:18 +00:00
roles :
2016-09-08 20:56:04 +00:00
type : array
2016-09-08 21:03:01 +00:00
items :
2016-09-08 21:58:40 +00:00
$ref : "#/definitions/Role"
2016-09-08 20:56:04 +00:00
Role :
type : object
required :
- permissions
- name
properties :
name :
type : string
maxLength : 64
permissions :
2016-09-09 03:25:18 +00:00
$ref : '#/definitions/Permissions'
2016-09-08 20:56:04 +00:00
users :
2016-09-09 03:25:18 +00:00
$ref : "#/definitions/Users"
2016-09-09 22:07:24 +00:00
link :
$ref : "#/definitions/Link"
2016-09-08 20:56:04 +00:00
Users :
type : object
properties :
users :
type : array
2016-09-08 21:03:01 +00:00
items :
2016-09-08 21:58:40 +00:00
$ref : "#/definitions/User"
2016-09-08 20:56:04 +00:00
User :
type : object
required :
- permissions
2016-09-09 03:25:18 +00:00
- username
2016-09-08 20:56:04 +00:00
properties :
username :
type : string
maxLength : 64
permissions :
2016-09-09 03:25:18 +00:00
$ref : '#/definitions/Permissions'
roles :
$ref : '#/definitions/Roles'
2016-09-09 22:07:24 +00:00
link :
$ref : "#/definitions/Link"
2016-09-09 03:25:18 +00:00
Permissions :
2016-09-08 20:56:04 +00:00
type : object
properties :
database :
2016-09-09 03:25:18 +00:00
description : permissions are scoped to a specific database
2016-09-08 20:56:04 +00:00
type : string
2016-09-09 03:25:18 +00:00
permissions :
type : array
items :
$ref : "#/definitions/Permission"
Permission :
2016-08-24 23:31:08 +00:00
type : string
2016-09-08 20:56:04 +00:00
description : Specific access
2016-08-24 23:31:08 +00:00
enum :
2016-09-08 20:56:04 +00:00
- ViewAdmin
- ViewChronograf
- CreateDatabase
- CreateUserAndRole
- AddRemoveNode
- DropDatabase
- DropData
- ReadData
- WriteData
- Rebalance
- ManageShard
2016-09-09 03:25:18 +00:00
AllPermissions :
description : All Possible permission strings
type : array
items :
$ref : "#/definitions/Permission"
2016-09-08 21:58:40 +00:00
Dashboards :
2016-09-08 20:56:04 +00:00
type : object
properties :
2016-09-08 21:58:40 +00:00
dashboards :
2016-09-08 20:56:04 +00:00
type : array
items :
2016-09-08 21:58:40 +00:00
$ref : "#/definitions/Dashboard"
Dashboard :
2016-09-08 20:56:04 +00:00
type : object
required :
2016-09-08 21:58:40 +00:00
- cells
2016-09-08 20:56:04 +00:00
properties :
2016-09-08 21:58:40 +00:00
cells :
type : array
description : Cells are the individual visualization elements.
items :
$ref : "#/definitions/Cell"
2016-09-09 22:07:24 +00:00
link :
$ref : "#/definitions/Link"
2016-09-08 21:58:40 +00:00
Cell :
type : object
properties :
x :
description : X-coordinate of Cell in the Dashboard
type : integer
format : int32
'y' :
description : Y -coordinate of Cell in the Dashboard
type : integer
format : int32
w :
description : Width of Cell in the Dashboard
type : integer
format : int32
h :
description : Height of Cell in the Dashboard
type : integer
format : int32
2016-09-09 22:07:24 +00:00
queries :
description : Time-series data queries for Cell.
2016-09-08 21:58:40 +00:00
type : array
items :
type : string
2016-09-15 16:28:51 +00:00
Services :
type : object
properties :
services :
type : array
items :
$ref : "#/definitions/Service"
Service :
type : object
properties :
'type' :
description : Type of service
type : string
enum :
- containers
- kubernetes
- host
tagKey :
description : The key part of the key-value pair that makes up a tag. Used to identify a service type.
type : string
tagValue :
description : The value part of the key-value pair that makes up a tag.
type : string
2016-09-08 20:56:04 +00:00
Links :
type : object
properties :
links :
type : array
items :
$ref : "#/definitions/Link"
Link :
type : object
required : [ rel, href]
readOnly : true
description : URI of resource.
properties :
rel :
type : string
href :
type : string
format : url
2016-09-09 22:07:24 +00:00
Error :
2016-09-08 20:56:04 +00:00
type : object
properties :
2016-09-09 22:07:24 +00:00
code :
type : integer
format : int32
message :
2016-09-08 20:56:04 +00:00
type : string