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'
/sources/{id}/queries:
post:
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/Query'
required:true
responses:
201:
description:Responses from the data source backend in the query order from request.
headers:
Location:
type:string
format:url
description:Location of the newly created query resource.
schema:
$ref:'#/definitions/QueryResponse'
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'
/sources/{id}/queries/{qid}:
get:
summary:Return the configuration of the query including the resultsLink RPC endpoint.
parameters:
- name:id
in:path
type:string
description:ID of the data source
required:true
- name:qid
in:path
description:ID of stored query
required:true
type:string
responses:
200:
description:Query exists and the configuration is return
schema:
$ref:'#/definitions/QueryResponse'
404:
description:source id or query id does not exist.
schema:
$ref:'#/definitions/Error'
default:
description:Unexpected internal service error
schema:
$ref:'#/definitions/Error'
patch:
summary:Update specific query configuration parameters.
parameters:
- name:id
in:path
type:string
description:ID of the data source
required:true
- name:qid
in:path
description:ID of stored query
required:true
type:string
- name:query
in:body
description:Query configuration parameters
schema:
$ref:'#/definitions/Query'
required:true
responses:
204:
description:Stored query has been updated
404:
description:source id or query id does not exist.
schema:
$ref:'#/definitions/Error'
default:
description:Unexpected internal service error
schema:
$ref:'#/definitions/Error'
delete:
summary:Destroy query resource
parameters:
- name:id
in:path
type:string
description:ID of the data source
required:true
- name:qid
in:path
description:ID of stored query
required:true
type:string
responses:
204:
description:Stored query has been destroyed.
404:
description:source id or query id does not exist.
schema:
$ref:'#/definitions/Error'
default:
description:Unexpected internal service error
schema:
$ref:'#/definitions/Error'
/sources/{id}/queries/{qid}/results:
get:
summary:Return results from executing the query.
description:|
This endpoint acts as an RPC call to execute the query against the time series data source.
The data source results are formatted before return according the the query's configuration.
This endpoint also transforms the data source's error conditions into status codes 400 or 408.
parameters:
- name:id
in:path
type:string
description:ID of the data source
required:true
- name:qid
in:path
description:ID of stored query
required:true
type:string
- name:lower
in:query
description:Optional lower-time bound override. Will update the query configuration.
type:string
- name:upper
in:query
description:Optional upper-time bound override. Will update the query configuration.
type:string
responses:
200:
description:Query successfully executed and results have been transformed.
schema:
$ref:'#/definitions/QueryResults'
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:source id or query 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'
/sources/{id}/permissions:
get:
summary:Returns the list of possible permissions supported by the backend time series data source.
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/ACL'
default:
description:Unexpected internal service error
schema:
$ref:'#/definitions/Error'
/sources/{id}/users:
get:
parameters:
- name:id
in:path
type:string
description:ID of the data source
required:true
summary:List of all users on this data source
responses:
200:
description:An array of users
schema:
$ref:'#/definitions/Users'
default:
description:Unexpected internal service error
schema:
$ref:'#/definitions/Error'
post:
summary:Create new user for this data source
parameters:
- name:id
in:path
type:string
description:ID of the data source
required:true
- name:user
in:body
description:Configuration options for new user
schema:
$ref:'#/definitions/User'
responses:
201:
description:Successfully created new user
headers:
Location:
type:string
format:url
description:Location of the newly created user resource.
schema:
$ref:'#/definitions/User'
default:
description:A processing or an unexpected error.
schema:
$ref:'#/definitions/Error'
/sources/{id}/users/{user_id}:
get:
parameters:
- name:id
in:path
type:string
description:ID of the data source
required:true
- name:user_id
in:path
type:string
description:ID of the specific user
required:true
summary:Returns information about a specific user
description:|
Specific User and their permissions.
responses:
200:
description:Information relating to the user
schema:
$ref:'#/definitions/User'
404:
description:Unknown source id
schema:
$ref:'#/definitions/Error'
default:
description:Unexpected internal service error
schema:
$ref:'#/definitions/Error'
patch:
summary:Update user configuration
parameters:
- name:id
in:path
type:string
description:ID of a data source
required:true
- name:user_id
in:path
type:string
description:ID of the specific user
required:true
- name:config
in:body
description:user configuration
schema:
$ref:'#/definitions/User'
required:true
responses:
204:
description:Users's configuration was changed
404:
description:Happens when trying to access a non-existent user.
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: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
responses:
204:
description:User has been removed
404:
description:Unknown user id
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