@@ -146,7 +146,7 @@ def search(self, query, index=None):
146
146
147
147
def report (self , scope = None , groups = None , metrics = None , where = None , from_ = None , to = None ,
148
148
timezone = 'UTC' , emails = None , when = None , interval = None , name = None ,
149
- sort = None , limit = None , offset = None ):
149
+ sort = None , limit = None , offset = None , save = True ):
150
150
"""Create a report.
151
151
152
152
See the `reporting atomx wiki <https://wiki.atomx.com/reporting>`_
@@ -162,7 +162,7 @@ def report(self, scope=None, groups=None, metrics=None, where=None, from_=None,
162
162
An expression list is in the form of ``[column, op, value]``:
163
163
164
164
- ``column`` can be any of the ``groups`` or ``metrics`` parameter columns.
165
- - ``op`` can be any of ``==``, ``!=``, ``in`` or ``not in`` as a string.
165
+ - ``op`` can be any of ``==``, ``!=``, ``<``, ``>``, `` in`` or ``not in`` as a string.
166
166
- ``value`` is either a number or in case of ``in``
167
167
and ``not in`` a list of numbers.
168
168
@@ -181,9 +181,10 @@ def report(self, scope=None, groups=None, metrics=None, where=None, from_=None,
181
181
:param str or list sort: List of columns to sort by.
182
182
:param int limit: Number of rows to return
183
183
:param int offset: Number of rows to skip.
184
+ :param bool save: Should the report appear in the users report history (defaults to `True`).
184
185
:return: A :class:`atomx.models.Report` model
185
186
"""
186
- report_json = {'timezone' : timezone }
187
+ report_json = {'timezone' : timezone , 'save' : save }
187
188
188
189
if name :
189
190
report_json ['name' ] = name
0 commit comments