listenerDataTable | R Documentation |
A number of listerner capture information. This method extracts the data as a data frame for further processing.
listenerDataTable(listener, appid = character())
## S4 method for signature 'RefListener'
listenerDataTable(listener, appid = character())
listener |
A |
appid |
The name of the application whose data is to be extracted. (In case data from more than one application is stored in the same collection.) |
A data.frame
giving the requested data.
Note that this data frame could in fact contain columns which are
themselves data frames. Consider calling
jsonlite::flatten
or
Peanut::flattenStats
on the output.
Russell Almond
InjectionListener
, registerOutput
## Not run:
jspecs <- '{
"listeners":[
{
"name":"ToAS",
"type":"InjectionListener",
"dbname":"ASRecords",
"colname":"Statistics",
"messages":["Statistics"]
}
]}'
speclist <- jsonlite::fromJSON(jspecs,FALSE)
appid <- "ecd://pluto.coe.fsu.edu/P4Test"
outdir <- "/usr/local/share/Proc4/data"
lset <- buildListenerSet("TestEngine",speclist$listeners,
appid=appid,
lscol="Messages",dbname="test",
dburi="", sslops=mongolite::ssl_options(),
registrycol="OutputFiles",
registrydbname="Proc4")
## After engine running.
sl <- lset$listeners[["ToAS"]]
sdat <- listenerDataTable(sl,NULL,appid)
registerOutput(ls,"PP Statistics",
file.path(outdir,"PPstats.csv"),
appid,"EA")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.