Merge "Remove unnecessary escape character in string format"
This commit is contained in:
@@ -1107,20 +1107,20 @@ class ComplexQuery(_Base):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def sample(cls):
|
def sample(cls):
|
||||||
return cls(filter='{\"and\": [{\"and\": [{\"=\": ' +
|
return cls(filter='{"and": [{"and": [{"=": ' +
|
||||||
'{\"counter_name\": \"cpu_util\"}}, ' +
|
'{"counter_name": "cpu_util"}}, ' +
|
||||||
'{\">\": {\"counter_volume\": 0.23}}, ' +
|
'{">": {"counter_volume": 0.23}}, ' +
|
||||||
'{\"<\": {\"counter_volume\": 0.26}}]}, ' +
|
'{"<": {"counter_volume": 0.26}}]}, ' +
|
||||||
'{\"or\": [{\"and\": [{\">\": ' +
|
'{"or": [{"and": [{">": ' +
|
||||||
'{\"timestamp\": \"2013-12-01T18:00:00\"}}, ' +
|
'{"timestamp": "2013-12-01T18:00:00"}}, ' +
|
||||||
'{\"<\": ' +
|
'{"<": ' +
|
||||||
'{\"timestamp\": \"2013-12-01T18:15:00\"}}]}, ' +
|
'{"timestamp": "2013-12-01T18:15:00"}}]}, ' +
|
||||||
'{\"and\": [{\">\": ' +
|
'{"and": [{">": ' +
|
||||||
'{\"timestamp\": \"2013-12-01T18:30:00\"}}, ' +
|
'{"timestamp": "2013-12-01T18:30:00"}}, ' +
|
||||||
'{\"<\": ' +
|
'{"<": ' +
|
||||||
'{\"timestamp\": \"2013-12-01T18:45:00\"}}]}]}]}',
|
'{"timestamp": "2013-12-01T18:45:00"}}]}]}]}',
|
||||||
orderby='[{\"counter_volume\": \"ASC\"}, ' +
|
orderby='[{"counter_volume": "ASC"}, ' +
|
||||||
'{\"timestamp\": \"DESC\"}]',
|
'{"timestamp": "DESC"}]',
|
||||||
limit=42
|
limit=42
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user