Query definition for a Waylay analytics query. See also api docs.
Name | Type | Description | Notes |
---|---|---|---|
resource | str | Default resource for the series in the query. | [optional] |
metric | str | Default metric for the series in the query. | [optional] |
aggregation | DefaultAggregation | [optional] | |
interpolation | DefaultInterpolation | [optional] | |
freq | GroupingInterval | [optional] | |
var_from | TimeWindowFrom | [optional] | |
until | TimeWindowUntil | [optional] | |
window | Window | [optional] | |
periods | int | The size of the time window in number of `freq` units. One of the time line specifiers. | [optional] |
align | Alignment | [optional] | |
data | List[SeriesSpec] | List of series specifications. When not specified, a single default series specification is assumed(`[{}]`, using the default `metric`,`resource`, ... ). | [optional] |
render | Render | [optional] |
from waylay.services.queries.models.query_output import QueryOutput
# TODO update the JSON string below
json = "{}"
# create an instance of QueryOutput from a JSON string
query_output_instance = QueryOutput.from_json(json)
# print the JSON string representation of the object
print QueryOutput.to_json()
# convert the object into a dict
query_output_dict = query_output_instance.to_dict()
# create an instance of QueryOutput from a dict
query_output_form_dict = query_output.from_dict(query_output_dict)