{"runtime":"luau-rt2026","schema_version":1,"generated_at":"2026-09-09T16:08:33.300Z","snippets":[{"id":"aggregate-min-max-avg","title":"Minimum, Maximum and Average","description":"Run min, max and aggregate queries on a device and store the results","language":"luau","tags":["data","aggregate","statistics","query"],"filename":"aggregate-min-max-avg.luau","file_path":"luau-rt2026/aggregate-min-max-avg.luau"},{"id":"analysis-structure","title":"Structure an Analysis","description":"Organize a script with local helpers and a table of handlers","language":"luau","tags":["structure","patterns","scope","routing"],"filename":"analysis-structure.luau","file_path":"luau-rt2026/analysis-structure.luau"},{"id":"console","title":"Console Hello World","description":"Write to the Analysis console with print","language":"luau","tags":["basic","console","hello-world"],"filename":"console.luau","file_path":"luau-rt2026/console.luau"},{"id":"create-device","title":"Create Device","description":"Create a device with tags and set its initial configuration parameters","language":"luau","tags":["devices","create","tags","parameters"],"filename":"create-device.luau","file_path":"luau-rt2026/create-device.luau"},{"id":"date-timezone-buckets","title":"Dates and Timezones","description":"Bucket readings into local days with the Date helpers","language":"luau","tags":["date","timezone","aggregate","data"],"filename":"date-timezone-buckets.luau","file_path":"luau-rt2026/date-timezone-buckets.luau"},{"id":"device-last-value","title":"Device Last Value","description":"Read the last value of a variable and write a derived variable back","language":"luau","tags":["devices","data","last-value","add-data"],"filename":"device-last-value.luau","file_path":"luau-rt2026/device-last-value.luau"},{"id":"device-list-by-tag","title":"List Devices by Tag","description":"Page through devices filtered by tag and act on each handle","language":"luau","tags":["devices","list","tags","filtering"],"filename":"device-list-by-tag.luau","file_path":"luau-rt2026/device-list-by-tag.luau"},{"id":"device-parameters","title":"Device Configuration Parameters","description":"Read configuration parameters with filters and upsert them in one call","language":"luau","tags":["devices","parameters","configuration","downlink"],"filename":"device-parameters.luau","file_path":"luau-rt2026/device-parameters.luau"},{"id":"edit-device","title":"Edit Device","description":"Rename a device, replace its tags, and clear them with an empty list","language":"luau","tags":["devices","edit","tags"],"filename":"edit-device.luau","file_path":"luau-rt2026/edit-device.luau"},{"id":"encoding-utilities","title":"JSON, Base64, Hex and UUID","description":"Use the host utility globals to encode, decode and identify data","language":"luau","tags":["json","base64","hex","uuid","utilities"],"filename":"encoding-utilities.luau","file_path":"luau-rt2026/encoding-utilities.luau"},{"id":"environment-variables","title":"Environment Variables","description":"Read Analysis variables and trigger values from context.environment","language":"luau","tags":["basic","environment","configuration"],"filename":"environment-variables.luau","file_path":"luau-rt2026/environment-variables.luau"},{"id":"error-handling","title":"Handle Binding Errors","description":"Wrap a binding call in pcall and read the error message","language":"luau","tags":["error-handling","pcall","devices","resilience"],"filename":"error-handling.luau","file_path":"luau-rt2026/error-handling.luau"},{"id":"parse-scope-payload","title":"Parse Trigger Payload","description":"Decode a raw hex payload from the trigger scope and post the parsed variables","language":"luau","tags":["scope","payload","decode","add-data"],"filename":"parse-scope-payload.luau","file_path":"luau-rt2026/parse-scope-payload.luau"}]}