View source: R/dbpf_maintenance_add.R
dbpf_maintenance_add | R Documentation |
Record maintenance or service issue at a location
dbpf_maintenance_add(
con,
location_name,
maintenance_text,
time_UTC,
mode = "test"
)
con |
Database connection object, as returned by |
location_name |
location name used to obtain location ID [character] |
maintenance_text |
Text describing the repair or maintenance item needed [character] |
time_UTC |
(optional) When the issue was discovered. If not provided the current time is used. [POSIXct] |
mode |
Should data be inserted into DB? Defaults to 'test' so that only testing information is returned. To insert: 'insert' |
Adds an observation to using the 'maintenance_required' sensor for a particular location. A description of what maintenance is needed should be provided, and should include: who is reporting the issue, what is needed, why it is needed, and a description of where the problem is, if the location is not specific enough.
Nick Brown <nick.brown@carleton.ca>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.