Show application metrics of a currently deployed application. This function only works for ShinyApps servers.
showMetrics(
metricSeries,
metricNames,
appDir = getwd(),
appName = NULL,
account = NULL,
server = "shinyapps.io",
from = NULL,
until = NULL,
interval = NULL
)
Metric series to query. Refer to the shinyapps.io documentation for available series.
Metric names in the series to query. Refer to the shinyapps.io documentation for available metrics.
A directory containing an application (e.g. a Shiny app or plumber API). Defaults to the current directory.
Application name, a string consisting of letters, numbers,
_
and -
. The application name is used to identify applications on a
server, so must be unique.
If not specified, the first deployment will be automatically it from the
appDir
for directory and website, and from the appPrimaryDoc
for
document. On subsequent deploys, it will use the previously stored value.
Uniquely identify a remote server with either your
user account
, the server
name, or both. If neither are supplied, and
there are multiple options, you'll be prompted to pick one.
Use accounts()
to see the full list of available options.
Date range starting timestamp (Unix timestamp or relative time delta such as "2d" or "3w").
Date range ending timestamp (Unix timestamp or relative time delta such as "2d" or "3w").
Summarization interval. Data points at intervals less then this will be grouped. (Relative time delta e.g. "120s" or "1h" or "30d").