Liking cljdoc? Tell your friends :D

puppetlabs.puppetdb.query.population

Population-wide queries

Contains queries and metrics that apply across an entire population.

Population-wide queries

Contains queries and metrics that apply across an entire population.
raw docstring

avg-resource-per-nodeclj

(avg-resource-per-node)

The average number of resources per node

The average number of resources per node
sourceraw docstring

backoff-on-failureclj

(backoff-on-failure f backoff-ms)

Make a wrapper for f to help with backoff. When everything is working, the wrapper just calls through to f. If f throws an exception, subsequent invocations of the wrapper will just return nil until backoff-ms have elapsed.

Make a wrapper for f to help with backoff. When everything is working, the
wrapper just calls through to `f`. If `f` throws an exception, subsequent
invocations of the wrapper will just return `nil` until `backoff-ms` have
elapsed.
sourceraw docstring

call-with-metrics-db-connectionclj

(call-with-metrics-db-connection db-spec f)

Call f with an open connection to db-spec bound to jdbc/*db*. Unlike the regular db connection helpers, this version goes through backoff-on-failure to avoid long timeouts on every invocation when the database is down. It also doesn't open a transaction, as they aren't very important here.

Call `f` with an open connection to `db-spec` bound to `jdbc/*db*`. Unlike
the regular db connection helpers, this version goes through
`backoff-on-failure` to avoid long timeouts on every invocation when the
database is down. It also doesn't open a transaction, as they aren't very
important here.
sourceraw docstring

first-query-resultclj

(first-query-result query k)

Pick a key out of the first result of a query.

Pick a key out of the first result of a query.
sourceraw docstring

get-metrics-db-connectionclj

source

initialize-population-metrics!clj

(initialize-population-metrics! registry db)

Initializes the set of population-wide metrics

Initializes the set of population-wide metrics
sourceraw docstring

num-active-nodesclj

(num-active-nodes)

The number of unique certnames in the population

The number of unique certnames in the population
sourceraw docstring

num-inactive-nodesclj

(num-inactive-nodes)

The number of expired/deactivated nodes

The number of expired/deactivated nodes
sourceraw docstring

num-resourcesclj

(num-resources)

The number of resources in the population

The number of resources in the population
sourceraw docstring

pct-resource-duplicationclj

source

pct-resource-duplication*clj

(pct-resource-duplication*)

What percentage of resources in the population are duplicates

What percentage of resources in the population are duplicates
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close