Name | Type | Description | Notes |
---|---|---|---|
meta | object | User metadata for the query definition. | [optional] |
query | QueryInput | [optional] | |
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_definition import QueryDefinition
# TODO update the JSON string below
json = "{}"
# create an instance of QueryDefinition from a JSON string
query_definition_instance = QueryDefinition.from_json(json)
# print the JSON string representation of the object
print QueryDefinition.to_json()
# convert the object into a dict
query_definition_dict = query_definition_instance.to_dict()
# create an instance of QueryDefinition from a dict
query_definition_form_dict = query_definition.from_dict(query_definition_dict)