Skip to content

Instantly share code, notes, and snippets.

@kbarber
Created November 8, 2013 11:33
Show Gist options
  • Select an option

  • Save kbarber/7369761 to your computer and use it in GitHub Desktop.

Select an option

Save kbarber/7369761 to your computer and use it in GitHub Desktop.
Bug with anonymization
diff --git a/src/com/puppetlabs/puppetdb/reports.clj b/src/com/puppetlabs/puppetdb/reports.clj
index 31755a3..7328fec 100644
--- a/src/com/puppetlabs/puppetdb/reports.clj
+++ b/src/com/puppetlabs/puppetdb/reports.clj
@@ -24,24 +24,27 @@
})
(defmodel ResourceEvent
- {:status :string
- :timestamp :datetime
- :resource-type :string
- :resource-title :string
- :property { :optional? true
- :type :string }
- :new-value { :optional? true
- :type :jsonable }
- :old-value { :optional? true
- :type :jsonable }
- :message { :optional? true
- :type :string }
- :file { :optional? true
- :type :string }
- :line { :optional? true
- :type :integer }
- :containment-path { :optional? true
- :type :coll }
+ {:status :string
+ :timestamp :datetime
+ :run-start-time :datetime
+ :run-end-time :datetime
+ :report-receive-time :datetime
+ :resource-type :string
+ :resource-title :string
+ :property { :optional? true
+ :type :string }
+ :new-value { :optional? true
+ :type :jsonable }
+ :old-value { :optional? true
+ :type :jsonable }
+ :message { :optional? true
+ :type :string }
+ :file { :optional? true
+ :type :string }
+ :line { :optional? true
+ :type :integer }
+ :containment-path { :optional? true
+ :type :coll }
})
(def v2-new-event-fields [:file :line])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment