ifDouble

fun ifDouble(key: String, condition: Boolean, default: Double = 0.0): Keystone.ObservationBuilder

Conditionally declares a Double key to observe.

Return

This builder for chaining.

Parameters

key

The storage key name.

condition

If true, the key is added; otherwise it is skipped.

default

Default value if the key is missing. Defaults to 0.0.