I've been reading through the experimental PuppetDB reports API and I feel a lot of stuff is missing in it. I know it is experimental and kind of beta still, but I thought it might be good to share some feedback on it anyway.
In the report API (https://github.com/puppetlabs/puppetdb/blob/master/documentation/experimental/report.md) I'm missing: * querying on end-time, start-time & receive-time fields, want to be able to use = > < => & =< operators on it. * querying on configuration version * querying on number of event in the report (total, failed, pending & success) * querying on puppet-version In the events API (https://github.com/puppetlabs/puppetdb/blob/master/documentation/experimental/event.md) I would like: * querying on all the different attributes in the return format (old-value, property, timestamp, resource-type, resource title, new-value, message & status) not just on report ID. * ability to query on certname here as well (easy way to pull all events for a host without having to pull all reports for it and then another query for each event in those reports) Possibly this can be solved by subqueries here: ["in", "report", ["extract", "id", ["select-reports", ["=", "certname", "foo.example.com (http://foo.example.com)"]]]] * Ability to pull the most common types of events in a time period, for example a list of the most common fail messages the last 2 hours and counts for them. Also I'm wondering a little bit why it uses a new wire format instead of the regular http report handler? Looking forward to using it and coding some tools around these new APIs :) -- Erik Dalén -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
