EosMetrics.EventRecorder.prototype.record_event_sync
function record_event_sync(event_id: String, auxiliary_payload: GLib.Variant): void {
// Gjs wrapper for emtr_event_recorder_record_event_sync()
}
Make a best-effort to record the fact that an event of type event_id occurred at the current time. Behaves like EosMetrics.EventRecorder.prototype.record_event but executes synchronously, blocking until either a timeout expires or the event recorder daemon has received the event. Generally prefer EosMetrics.EventRecorder.prototype.record_event in UI threads, but use EosMetrics.EventRecorder.prototype.record_event_sync instead for the sake of reliability when recording an event from a process that is about to close.
Since 0.4
- event_id
an RFC 4122 UUID representing the type of event that took place
- auxiliary_payload
miscellaneous data to associate with the event. Must not contain maybe variants as they are not compatible with D-Bus.