SystemEventVmReady.parse_request_to_dict

classmethod SystemEventVmReady.parse_request_to_dict(**kwargs)

Parse an event request using the event request params.

This function will parse a call to tenjint.event.EventPlugin.request_event using the event params (tenjint.event.Event.params). For this purpose all keyword arguments to request_event are passed to this function. For each param that is missing in the request (was not passed as an argument to request_event) the function will use the default value as specified in the event params. Otherwise the specified value will be used.

Parameters

kwargs – The keyword arguments that were passed to tenjint.event.EventPlugin.request_event.

Returns

A dictionary that contains all event params. If a param was not passed in kwargs, the dictionary will contain its default value as specified in the event params.

Return type

dict