Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 2.14 KB

QueryDefinition.md

File metadata and controls

42 lines (33 loc) · 2.14 KB

QueryDefinition

Properties

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]

Example

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)

[Back to Model list] [Back to API list] [Back to README]