2020-05-24 23:13:21 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
module Metrics
|
|
|
|
class UserStarredDashboard < Grape::Entity
|
2023-01-13 00:05:48 +05:30
|
|
|
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 }
|
2020-05-24 23:13:21 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|