get_last_sync_dates: Compute the last sync date for each interviewer

View source: R/monitor.R

get_last_sync_datesR Documentation

Compute the last sync date for each interviewer

Description

Conducts full workflow to get the last sync date for each interviewer:

Usage

get_last_sync_dates(
  start,
  end,
  server = Sys.getenv("SUSO_SERVER"),
  workspace = Sys.getenv("SUSO_WORKSPACE"),
  user = Sys.getenv("SUSO_USER"),
  password = Sys.getenv("SUSO_PASSWORD")
)

Arguments

start

Character vector. Date in YYY-MM-DD format

end

Character vector. Date in YYY-MM-DD format

server

Full server web address (e.g., https://demo.mysurvey.solutions, https://my.domain)

workspace

Character. Workspace whose action logs to get.

user

API user name

password

API password

Details

  1. Obtain the list of all interviewers

  2. Fetch the action logs for each interviewers

  3. Determine the last sync date for each interviewer

Returns a data frame. Columns contain Contains the user ID (UserId) and last sync date (last_sync_date). Rows correspond to interviewers. NA in last_sync_date mean that there was no sync action identified in the action log–that is between the start and end dates used to obtain the action logs.

Value

Data frame consisting of one or more user action log.


arthur-shaw/susoflows documentation built on Feb. 10, 2023, 7:52 p.m.