Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_starred_dashboard.rb « metrics « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1d2a8a39547af86280b07568cb03dfd02ac50498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module API
  module Entities
    module Metrics
      class UserStarredDashboard < Grape::Entity
        expose :id, documentation: { type: 'integer', example: 5 }
        expose :dashboard_path, documentation: { type: 'string', example: 'config/prometheus/common_metrics.yml' }
        expose :user_id, documentation: { type: 'integer', example: 1 }
        expose :project_id, documentation: { type: 'integer', example: 20 }
      end
    end
  end
end