Module: WorkOS::AuditTrail
Overview
The Audit Trail module provides convenience methods for working with the WorkOS Audit Trail platform. You'll need a valid API key.
Instance Attribute Summary
Attributes included from Base
Class Method Summary collapse
Methods included from Client
client, execute_request, handle_error_response, post_request, user_agent
Class Method Details
.create_event(event:, idempotency_key: nil) ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'lib/workos/audit_trail.rb', line 51 def create_event(event:, idempotency_key: nil) request = post_request( path: '/events', idempotency_key: idempotency_key, body: event, ) execute_request(request: request) end |