showMetrics {rsconnect}R Documentation

Show Application Metrics

Description

Show application metrics of a currently deployed application. This function only works for ShinyApps servers.

Usage

showMetrics(
  metricSeries,
  metricNames,
  appDir = getwd(),
  appName = NULL,
  account = NULL,
  server = "shinyapps.io",
  from = NULL,
  until = NULL,
  interval = NULL
)

Arguments

metricSeries

Metric series to query. Refer to the shinyapps.io documentation for available series.

metricNames

Metric names in the series to query. Refer to the shinyapps.io documentation for available metrics.

appDir

A directory containing an application (e.g. a Shiny app or plumber API). Defaults to the current directory.

appName

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.

account, server

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.

from

Date range starting timestamp (Unix timestamp or relative time delta such as "2d" or "3w").

until

Date range ending timestamp (Unix timestamp or relative time delta such as "2d" or "3w").

interval

Summarization interval. Data points at intervals less then this will be grouped. (Relative time delta e.g. "120s" or "1h" or "30d").


[Package rsconnect version 1.3.1 Index]