emqx_audit.hrl 561 B

1234567891011121314151617181920212223242526
  1. %%--------------------------------------------------------------------
  2. %% Copyright (c) 2022-2024 EMQ Technologies Co., Ltd. All Rights Reserved.
  3. %%--------------------------------------------------------------------
  4. -define(AUDIT, emqx_audit).
  5. -record(?AUDIT, {
  6. %% basic info
  7. created_at,
  8. node,
  9. from,
  10. source,
  11. source_ip,
  12. %% operation info
  13. operation_id,
  14. operation_type,
  15. args,
  16. operation_result,
  17. failure,
  18. %% request detail
  19. http_method,
  20. http_request,
  21. http_status_code,
  22. duration_ms,
  23. extra
  24. }).