Learn R Programming

EDIutils (version 1.0.3)

get_recent_uploads: Get recent uploads

Description

Get recent uploads

Usage

get_recent_uploads(query, as = "data.frame", env = "production")

Value

(data.frame or xml_document) A list of zero or more audit records of either recently inserted or recently updated data packages.

Arguments

query

(character) Query (see details below)

as

(character) Format of the returned object. Can be: "data.frame" or "xml".

env

(character) Repository environment. Can be: "production", "staging", or "development".

Details

Query parameters are specified as key=value pairs, multiple pairs must be delimited with ampersands (&), and only a single value should be specified for a particular key. The following query parameter keys are allowed:

  • serviceMethod - Can be: createDataPackage, updateDataPackage

  • fromTime - An ISO8601 timestamp

  • limit - A positive whole number

The query parameter serviceMethod should have the value "createDataPackage" (to retrieve recent inserts) or "updateDataPackage" (to retrieve recent updates). The query parameter fromTime is used to specify the date/time in the past that represents the oldest audit records that should be returned. Data packages uploaded prior to that time are not considered recent uploads and are thus filtered from the query results. The query parameter limit sets an upper limit on the number of audit records returned. For example, "limit=3".

See Also

Other Audit Manager Services: get_audit_count(), get_audit_record(), get_audit_report(), get_docid_reads(), get_packageid_reads()

Examples

Run this code
if (FALSE) {

# Get the 5 most recently created data packages
auditReport <- get_recent_uploads(
 query = "serviceMethod=createDataPackage&limit=5"
)
}

Run the code above in your browser using DataLab