Custom events
Interface definition
Tingyun.recordEvent(options);
Parameters
- options: event configuration item object.
name
: event name. String type. required.msg
: event information. String type. Optional.status
: event status. String type. Optional.context
: additional data included in the operation. Object type. Optional.
Example
Create an event in the warning message pop-up window.
function messageBox(data) {
//Create the event and set the details into the extra information
Tingyun.recordEvent({
name: data.title,
msg: data.msg,
status: data.level,
context: {
detail: data.detail
}
});
}