Stats

API to provide time-series data around package delivery, artifact data, overages etc. one metric at a time as specified by /usage/<owner>/<requested_metric>/ where requested_metric can be one of - (download_count, download_bytes, download_count_packages, download_backend_types, num_users, num_teams, max_data_used) The following filters are supported: 1. start_time=%Y-%m-%dT%H:%M:%SZ 2. end_time=%Y-%m-%dT%H:%M:%SZ 3. interval=day|week Metrics like `num_teams` do not provide time-series values and only provide one value for the entire filter period.

Request

gethttps://api.cloudsmith.io/v2/usage/{owner}/{requested_metric}

Response

Responses

OK

object

object

backend_type
string
optional
Allowed values: DEB, RPM, RUBY, PYTHON, MAVEN, BOWER, DOCKER, RAW, CHOCOLATEY, NPM, NUGET, VAGRANT, COMPOSER, ALPINE, HELM, CONAN, CARGO, LUAROCKS, CRAN, GO, DART, COCOAPODS, TERRAFORM, P2, CONDA, HEX, SWIFT, DEFAULT
end_time
date
optional
interval
string
optional
Allowed values: day, week, month
Defaults to day
repository_slugs
array of strings
optional
repository_type
string
optional
Allowed values: PUBLIC, PRIVATE, OPEN_SOURCE
start_time
date
optional
user_type
string
optional
Allowed values: USER, SERVICE

Request could not be processed (see detail).

object

object

detail
string
required
length ≥ 1

Missing or invalid parameters (see detail).

object

object

detail
string
required
length ≥ 1