spserver.analytic.run(analytic.name, ...)
This function sets the current analytic name to
analytic.name
,
reads the associated script file, and then executes the associated analytics function.
All of these have names derived from analytic.name.
For example, if the analytic name was
http://server1:8080/SplusServer/webdav/analytics/xyz
,
then it would search for a script file in the specified directory with the
name
xyz.q
,
xyz.ssc
, or
xyz.S
(searched in this order),
and then execute the function
xyz
.
This function can be called while executing one analytic, to run another analytic. After the "inner" analytic is run, the analytic name is reset to the outer one.
No cleanup is done after an analytic is run, to remove the function definitions from the analytic script file.
# run the analytic named "foo" in the "splus.analytics.url" directory # spserver.analytic.run("foo")
# run an analytic whose name is given by a complete URL # spserver.analytic.run("http://server1:8080/SplusServer/webdav/analytics/foo")