Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
15 changes: 13 additions & 2 deletions R/get.R
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking, since this was already wrong before this PR. The @return list just below doesn't match what get_procs() returns. Worth a follow-up issue?

  • It uses camelCase names (appId, cpuCurrent, ...), but the server sends snake_case (app_id, cpu_current, ...), and get_procs() keeps them as-is.
  • It lists cpuTotal, which the server doesn't send.
  • It leaves out hostname, job_key, image, start_time, and heartbeat.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, issue documented here: #532

#'
#' @param src The source object
#'
Expand Down
17 changes: 15 additions & 2 deletions man/get_procs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading