Two new RPC calls get_notification_types and get_notifications added. Change-Id: Ia5288d83cc5e9f18ef1622d3f15b9fe3bbf640ed Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/436530 Reviewed-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
26 lines
506 B
Python
26 lines
506 B
Python
def get_notification_types(client):
|
|
return client.call("get_notification_types")
|
|
|
|
|
|
def get_notifications(client,
|
|
id=None,
|
|
max=None):
|
|
"""
|
|
|
|
Args:
|
|
id First ID to start fetching from
|
|
max Maximum number of notifications to return in response
|
|
|
|
Return:
|
|
Notifications array
|
|
"""
|
|
|
|
params = {}
|
|
if id:
|
|
params['id'] = id
|
|
|
|
if max:
|
|
params['max'] = max
|
|
|
|
return client.call("get_notifications", params)
|