A json data response. Uses the format as specified by the render
options of the request (defaults to COMPACT_WS
). '
Name | Type | Description | Notes |
---|---|---|---|
data | List[ResponseDataSet] | A list of data sets, each with their own time axis. There will be one dataset for each `role` specified in the query (by default a single `input` role). The data is represented according to the `render` options in the query (default `COMPACT_WS`). | |
query | QueryInput | ||
messages | List[QueryExecutionMessage] |
from waylay.services.queries.models.query_result import QueryResult
# TODO update the JSON string below
json = "{}"
# create an instance of QueryResult from a JSON string
query_result_instance = QueryResult.from_json(json)
# print the JSON string representation of the object
print QueryResult.to_json()
# convert the object into a dict
query_result_dict = query_result_instance.to_dict()
# create an instance of QueryResult from a dict
query_result_form_dict = query_result.from_dict(query_result_dict)