update params about cluster filter event

This path replaced filter params about cluster filter event to api
specification name rather than db table field name. at the same time,
it not affect existing api that we use.

Change-Id: I9527c3c17ace7c49057dbc645a769a4dc3f14cb8
This commit is contained in:
chohoor 2017-05-23 16:46:35 +08:00
parent bc4a0c4066
commit 1cfc1a61df
1 changed files with 3 additions and 2 deletions

View File

@ -26,8 +26,9 @@ class Event(resource.Resource):
allow_get = True
_query_mapping = resource.QueryParameters(
'oname', 'otype', 'oid', 'cluster_id', 'action', 'level',
'sort', 'global_project')
'cluster_id', 'action', 'level', 'sort', 'global_project',
obj_id='oid', obj_name='oname', obj_type='otype',
)
# Properties
#: Timestamp string (in ISO8601 format) when the event was generated.