torizon_audit 0.0.8 → 0.0.9

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/torizon_audit.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c50971c4656b798f91fc6c5425f9980f87e787dfee2c298c96621935b505923
4
- data.tar.gz: dffd561304c72e55c5d0d77abc578fc27aeed8c387de97579c6dd186fd719032
3
+ metadata.gz: 8fa71aec0fb245244cc930e187f78d3445ef0e502ae5ab9a07e1ae1c3857c5ab
4
+ data.tar.gz: 1ec0162937e89094dc5bbdd7442bf0d8bceb1a3c6ced0955a30449081a77e2bc
5
5
  SHA512:
6
- metadata.gz: e7081b8c8313196678c72f38c70963a4e8cce844ed0ec35c89b94714206556e927319cab3ca36f5007e6178c252c2aa1383dd6bc247f082b047969222d466f3c
7
- data.tar.gz: 26cb791aef470cae8b5def32a70f25d5a235989fef4b721105b687c97c52ccfc2ccc619cc3980cd9a8f70cde5b6b593599bce39ce5652219954dc69a81403566
6
+ metadata.gz: b2147203a92a9b3f8d3ceaba70bf63c110b31ccd75c8ae2dffb75d73aa9194c6d562b36d6515bd20d1fb5964dfa78c26633ab171e61ffa7871495cafbfab52fc
7
+ data.tar.gz: 74a7b1e59959446efb47c6e03d0659d4ec92b85b22e70c96bad4eeccbfa9536f541c1179871780842784eab8c0cf96eb9b83ac6a038c3de27c48906f9df3b57d
data/lib/torizon_audit.rb CHANGED
@@ -128,7 +128,7 @@ class Audit
128
128
  actions = response["hits"]["hits"].map{ |obj|
129
129
  src = obj["_source"]
130
130
  {
131
- "time" => DateTime.parse(src.key?("@timestamp") ? src["@timestamp"]: ""),
131
+ "time" => "#{DateTime.parse(src.key?("@timestamp") ? src["@timestamp"]: "").to_time.to_i}",
132
132
  "host" => "app.torizon.io",
133
133
  "source" => "torizon",
134
134
  "event" => {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torizon_audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Clouser