ll_get_device_state_logs: Retrieve state logs

View source: R/db_read.R

ll_get_device_state_logsR Documentation

Retrieve state logs

Description

Returns state logs joined with devices table so filter conditions can be applied on the devices as well. Sorted by descending order (i.e. latest record first).

Usage

ll_get_device_state_logs(
  group_id = default(group_id),
  filter = NULL,
  select = c(device_id, device_name, device_state_log_id, log_datetime, log_type,
    log_message, starts_with("state"), notes),
  max_rows = NULL,
  convert_to_TZ = Sys.timezone(),
  con = default(con),
  quiet = default(quiet)
)

Arguments

filter

what filter conditions to apply, if any (forwarded to filter)

select

what columns to select (forwarded to select), by default a selection of the most commonly used columns

max_rows

if provided, only selects the indicated number of rows (more efficient this way than part of the filter)

convert_to_TZ

if provided, converts the log_datetime to the provided timezone (by default the local one stored in Sys.timezone()). If NULL, will keep it as UTC.

Value

device state logs


KopfLab/lablogger documentation built on July 6, 2023, 12:03 a.m.