debian-mirror-gitlab/lib/api/entities/ml/mlflow/experiment.rb
2023-03-04 22:38:38 +05:30

17 lines
493 B
Ruby

# frozen_string_literal: true
module API
module Entities
module Ml
module Mlflow
class Experiment < Grape::Entity
expose(:experiment_id) { |experiment| experiment.iid.to_s }
expose :name
expose(:lifecycle_stage) { |experiment| experiment.deleted_on? ? 'deleted' : 'active' }
expose(:artifact_location) { |experiment| 'not_implemented' }
expose :metadata, as: :tags, using: KeyValue
end
end
end
end
end