Hello World Input Source ​
lua
telem.input.helloWorld (checkval: number)
This adapter produces a single metric with a specified static value, primarily serving as a reference implementation of InputAdapter.
Usage ​
lua
local telem = require 'telem'
local backplane = telem.backplane()
:addInput('my_hello', telem.input.helloWorld(123))
:cycleEvery(1)()
This appends the following metric to the backplane:
Name | Value | Unit |
---|---|---|
hello_world | 123 |