connectapi icon indicating copy to clipboard operation
connectapi copied to clipboard

Consolidate `get_usage_shiny()` and `get_usage_static()` into `get_views()`

Open nealrichardson opened this issue 10 months ago • 3 comments

Following the model of https://github.com/posit-dev/posit-sdk-py/pull/170, conceal from the user the fact that there are different REST APIs for different content types and just present a single way to get usage stats for all types.

nealrichardson avatar Apr 26 '24 15:04 nealrichardson

This is the same as #218 yeah?

jonkeane avatar Apr 26 '24 15:04 jonkeane

Yep looks like it

nealrichardson avatar Apr 26 '24 15:04 nealrichardson

Consolidating some comments from a separate slack thread...

let's seek to return one usage data frame, regardless of content type, but keep a consistent and predictable column schema. If the content type does not have relevant data, keep the column in the output but return NA.

Suggesting "usage" over "views" because the latter isn't descriptive of programmatic access to APIs or pin reads.

kmasiello avatar Apr 26 '24 21:04 kmasiello