diff --git a/NAMESPACE b/NAMESPACE index ee98ffc4..0512e9b8 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -165,17 +165,23 @@ export(users_create_remote) export(vanity_is_available) export(variant_render) export(verify_content_name) -importFrom(lifecycle,deprecate_warn) -importFrom(lifecycle,deprecated) +importFrom(lifecycle, + deprecate_warn, + deprecated +) importFrom(magrittr,"%>%") -importFrom(rlang,"%||%") -importFrom(rlang,":=") -importFrom(rlang,arg_match) -importFrom(rlang,is_string) +importFrom(rlang, + "%||%", + ":=", + arg_match, + is_string +) importFrom(tibble,as_tibble) -importFrom(utils,browseURL) -importFrom(utils,capture.output) -importFrom(utils,compareVersion) -importFrom(utils,head) -importFrom(utils,untar) +importFrom(utils, + browseURL, + capture.output, + compareVersion, + head, + untar +) importFrom(uuid,UUIDgenerate) diff --git a/NEWS.md b/NEWS.md index 40f489e8..ff518327 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,9 @@ fields added in future Connect releases will appear automatically. Column names and types are now determined by the server response rather than a hardcoded schema, so they may vary across Connect versions. +- Corrected the `get_procs()` documentation, which incorrectly stated that only + processes on the responding node of a Highly Available cluster are returned + (#529). # connectapi 0.12.1 diff --git a/R/get.R b/R/get.R index 30e92d01..c0b5b05c 100644 --- a/R/get.R +++ b/R/get.R @@ -764,8 +764,19 @@ get_audit_logs <- function( #' #' `r lifecycle::badge('experimental')` #' This returns real-time process data from the Posit Connect API. It requires -#' administrator privileges to use. NOTE that this only returns data for the -#' server that responds to the request (i.e. in a Highly Available cluster) +#' administrator privileges to use. Processes are returned across all nodes in +#' a Highly Available cluster and across execution modes (including off-host +#' execution, e.g. Kubernetes). +#' +#' Note that: +#' +#' * Usage metrics (e.g. CPU and RAM) are the values most recently reported by +#' each process, so they may be stale, or `NA` if the process has not yet +#' reported any metrics. +#' * Processes that have recently ended but have not yet been finalized may +#' still appear in the results. +#' * This function uses an internal, unversioned API endpoint, so its behavior +#' and the returned columns may change in future versions of Connect. #' #' @param src The source object #' diff --git a/man/get_procs.Rd b/man/get_procs.Rd index 85669e08..60f672ba 100644 --- a/man/get_procs.Rd +++ b/man/get_procs.Rd @@ -27,6 +27,19 @@ A tibble with the following columns: \description{ \ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#experimental}{\figure{lifecycle-experimental.svg}{options: alt='[Experimental]'}}}{\strong{[Experimental]}} This returns real-time process data from the Posit Connect API. It requires -administrator privileges to use. NOTE that this only returns data for the -server that responds to the request (i.e. in a Highly Available cluster) +administrator privileges to use. Processes are returned across all nodes in +a Highly Available cluster and across execution modes (including off-host +execution, e.g. Kubernetes). +} +\details{ +Note that: +\itemize{ +\item Usage metrics (e.g. CPU and RAM) are the values most recently reported by +each process, so they may be stale, or \code{NA} if the process has not yet +reported any metrics. +\item Processes that have recently ended but have not yet been finalized may +still appear in the results. +\item This function uses an internal, unversioned API endpoint, so its behavior +and the returned columns may change in future versions of Connect. +} }