smplkit 3.0.128 → 3.0.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smplkit/audit/events.rb +7 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 890d28d32a3d85aa4f9165551e2233b8c5efa35c22511b2975b60ea77bd409fd
4
- data.tar.gz: 0441f1da63de7e782c9364310cd8f54d8dfda38209c7dfea6b4a49ccf1550e3e
3
+ metadata.gz: 0b6297c50f89cbe656fb1a9b3d26990f853fccc9f1894957d0e3a43fadca226f
4
+ data.tar.gz: 97364f6d0e110220f5945b1eb5e3060c843a8855921884e344ebaf0f765e676d
5
5
  SHA512:
6
- metadata.gz: 3dd0c2f0464a34eadbc17c27e01bdbfa824d50acba60d7a3e362d3521be261317fe21d1c33725568d3dbc99c558923ed0a0c75523dd552bebeebe33f5305da6c
7
- data.tar.gz: 385012586c7f071762d366ac6bc5dbff007ec04d36312861753c5834ffa45f1245bb1d2a9290e5ef59a14bcd4b34602c17d9fecea368102f1200bad4c9ba4078
6
+ metadata.gz: deeb4adfddff9d195207ef70887157829816d0f933daca4bcecdbe149c8b2f93fe9798993cda6c26791168136ac4e5a2cd259f2481019e91c72fff2e97e10e64
7
+ data.tar.gz: 6beb5e6fff975ea31e05f02934003736228c8ec63431f9d3ffd74479f029328cac26c7c63af2caf85fe859eba43af26850a6868ccab45f0b2521337b207bd389
@@ -53,6 +53,9 @@ module Smplkit
53
53
  # as supplied; powers the audit log's category filter and the
54
54
  # +categories+ discovery listing ({Smplkit::Audit::AuditClient#categories}).
55
55
  # Omit it to leave the event uncategorized.
56
+ # @param severity [String, nil] Optional severity level for the event —
57
+ # one of +"TRACE"+, +"DEBUG"+, +"INFO"+, +"WARN"+, +"ERROR"+, or
58
+ # +"FATAL"+. Omit it to let the server default the level to +"INFO"+.
56
59
  # @param data [Hash, nil] Free-form contextual JSON. To record a resource
57
60
  # snapshot, place it inside +data+ — smplkit's own convention nests it at
58
61
  # +data["snapshot"]+ for consistency, but the shape is unconstrained.
@@ -73,8 +76,9 @@ module Smplkit
73
76
  # @return [void]
74
77
  def record(event_type:, resource_type:, resource_id:,
75
78
  occurred_at: nil, actor_type: nil, actor_id: nil,
76
- actor_label: nil, category: nil, data: nil, idempotency_key: nil,
77
- do_not_forward: false, flush: false, flush_timeout: 5.0)
79
+ actor_label: nil, category: nil, severity: nil, data: nil,
80
+ idempotency_key: nil, do_not_forward: false, flush: false,
81
+ flush_timeout: 5.0)
78
82
  raise ArgumentError, "event_type is required" if event_type.nil? || event_type.to_s.empty?
79
83
  raise ArgumentError, "resource_type is required" if resource_type.nil? || resource_type.to_s.empty?
80
84
  raise ArgumentError, "resource_id is required" if resource_id.nil? || resource_id.to_s.empty?
@@ -103,6 +107,7 @@ module Smplkit
103
107
  actor_id: actor_id,
104
108
  actor_label: actor_label,
105
109
  category: category,
110
+ severity: severity,
106
111
  data: data || {},
107
112
  do_not_forward: do_not_forward
108
113
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.128
4
+ version: 3.0.129
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC