event · events.tuning

Tuning changed

Reports one runtime tuning value only after the tuning owner commits it.

events.tuning.changed(tuning_id, previous_value, current_value, revision, origin_id, request_sequence)
Stable ID
events.tuning.changed
Owner
app.runtime-tuning
Authority
read_only
Timing
post_commit
Availability
active-session
Side effects
none
Determinism
ordered after the tuning commit and before command completion
Introduced
1.1.0

Usage

Listen for committed tuning changes and refresh any displayed values from the detached query when needed.

Parameters

Returns

An immutable post-commit event payload.

Cost

One bounded retained event and one callback delivery per subscribed package.

Fields

IDTypeUnitsRequiredDescription
current_valueunsigned-integernoneyesCommitted tuning value.
origin_idstringnoneyesEngine-created caller origin ID.
previous_valueunsigned-integernoneyesValue before the committed change.
request_sequenceunsigned-integernoneyesCommand request that produced the change.
revisionrevisionnoneyesRuntime tuning revision after the commit.
tuning_idstringnoneyesRegistered runtime tuning identity.

Errors

Examples

local subscription = events.listen("events.tuning.changed", function(event) print(event.payload.current_value) end)

API history

Related symbols

Project references