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.
(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.
(exposure {:keys [exposure-id experiment revision arm sticky-key context
created-at]})An exposure record for one decision.
An exposure record for one decision.
(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`.
(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.
Longest string attribute value kept; longer ones are truncated.
Longest string attribute value kept; longer ones are truncated.
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.
Units a feedback value can be in.
Units a feedback value can be in.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |