Liking cljdoc? Tell your friends :D

fieldtest.records

Constructors and validation for the two kinds of record a recorder gets.

An exposure is written by the server each time it makes a decision, and holds the arm, revision, sticky key and context. Feedback is a measurement the client reports later, and it refers to one or more exposures by id. To find out which arm a measurement came from, join it to its exposure.

Constructors and validation for the two kinds of record a recorder gets.

An exposure is written by the server each time it makes a decision, and
holds the arm, revision, sticky key and context. Feedback is a measurement
the client reports later, and it refers to one or more exposures by id. To
find out which arm a measurement came from, join it to its exposure.
raw docstring

clean-attrsclj/s

(clean-attrs attrs)

Keeps attribute values that are strings, numbers, booleans or keywords, and truncates long strings. Anything else is dropped.

Keeps attribute values that are strings, numbers, booleans or keywords, and
truncates long strings. Anything else is dropped.
sourceraw docstring

exposureclj/s

(exposure {:keys [exposure-id experiment revision arm sticky-key context
                  created-at]})

An exposure record for one decision.

An exposure record for one decision.
sourceraw docstring

feedbackclj/s

(feedback m)

A feedback record. Throws ex-info when m is not valid feedback.

Takes :exposure-ids (or a single :exposure-id), :metric, :value, :value-unit, :outcome and optional :attrs and :recorded-at.

A feedback record. Throws ex-info when `m` is not valid feedback.

Takes `:exposure-ids` (or a single `:exposure-id`), `:metric`, `:value`,
`:value-unit`, `:outcome` and optional `:attrs` and `:recorded-at`.
sourceraw docstring

feedback-problemclj/s

(feedback-problem m)

Why m is not valid feedback, or nil when it is. Accepts keyword or JSON-shaped (string) keys and enum values.

Why `m` is not valid feedback, or nil when it is. Accepts keyword or
JSON-shaped (string) keys and enum values.
sourceraw docstring

max-attr-lengthclj/s

Longest string attribute value kept; longer ones are truncated.

Longest string attribute value kept; longer ones are truncated.
sourceraw docstring

nowclj/s

(now)

The current time as an inst.

The current time as an inst.
sourceraw docstring

outcomesclj/s

Possible outcomes for a measured operation. Errors and timeouts are reported the same way as successes.

Possible outcomes for a measured operation. Errors and timeouts are reported
the same way as successes.
sourceraw docstring

value-unitsclj/s

Units a feedback value can be in.

Units a feedback value can be in.
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