diff options
author | Nick Thomas <nick@gitlab.com> | 2019-02-27 15:07:05 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-02-27 15:07:05 +0300 |
commit | a5174cf0fcfd0ae77d25ac5208b7aa371d7d7b73 (patch) | |
tree | 6610d4dbd0b47f666586e7f5e0e87a285a3426c5 /lib/api/entities.rb | |
parent | 61c1509cc992959ac5021d10825d5dbf9dd2c091 (diff) | |
parent | 5ae9a44aa17c8929627cc450f936cd960c143e25 (diff) |
Merge branch '42086-project-fetch-statistics-api-http-only' into 'master'
Resolve "Project fetch statistics API (HTTP only)"
Closes #42086
See merge request gitlab-org/gitlab-ce!23596
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 26ca90c02cb..18f15632f2b 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -300,6 +300,18 @@ module API expose :build_artifacts_size, as: :job_artifacts_size end + class ProjectDailyFetches < Grape::Entity + expose :fetch_count, as: :count + expose :date + end + + class ProjectDailyStatistics < Grape::Entity + expose :fetches do + expose :total_fetch_count, as: :total + expose :fetches, as: :days, using: ProjectDailyFetches + end + end + class Member < Grape::Entity expose :user, merge: true, using: UserBasic expose :access_level |