getUserAccountUsage {RSauceLabs}R Documentation

Get User Account Usage

Description

Access historical account usage data

Usage

getUserAccountUsage(account, username = Sys.getenv("SLUSER"), ...)

Arguments

account

An object of class "account". An account object see account.

username

SauceLabs username

...

Additonal function arguments - Currently unused.

Value

The result is a breakdown summarizing the total number of jobs and VM time used, in seconds, by day.

See Also

Other actUsageMethods: getRealTimeJobActivity, getUserActivity

Examples

## Not run: 
myAcc <- account()
jobActivity <- getRealTimeJobActivity(myAcc)
#> jobActivity$concurrency$self$allowed
#$manual
#[1] 5
#
#$mac
#[1] 5
#
#$overall
#[1] 5
#
#$real_device
#[1] 0
userActivity <- getUserActivity(myAcc)
#> userActivity$subaccounts$rsaucelabs
#$`in progress`
#[1] 0
#
#$all
#[1] 0
#
#$queued
#[1] 0
userAccUsage <- getUserAccountUsage(myAcc)
#> userAccUsage
#user_name      date no_of_jobs vm_minutes
#1: seleniumPipes 2016-8-12          2        239
#2: seleniumPipes 2016-8-13         65       6399
#3: seleniumPipes 2016-8-15         36       7235
#4: seleniumPipes 2016-8-16          7       1101

## End(Not run)

[Package RSauceLabs version 0.1.6 Index]