Merge "Add field description"

This commit is contained in:
Jenkins 2017-07-25 17:44:56 +00:00 committed by Gerrit Code Review
commit 868dddf2b6

View File

@ -62,6 +62,12 @@ class EventQuery(base.Query):
type = wsme.wsattr(wtypes.text, default='string')
"the type of the trait filter, defaults to string"
field = wsme.wsattr(wtypes.text)
'''
Name of the field to filter on. Can be either a trait name or field of an
event. Use start_timestamp/end_timestamp to filter on `generated` field
'''
def __repr__(self):
# for logging calls
return '<EventQuery %r %s %r %s>' % (self.field,