summaryrefslogtreecommitdiff
path: root/lib/api/entities/ml/mlflow/run.rb
blob: 01d85e8862b46f5f772c1c16f1b17f1b91692be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module API
  module Entities
    module Ml
      module Mlflow
        class Run < Grape::Entity
          expose :run do
            expose :itself, using: RunInfo, as: :info
            expose :data do
              expose :metrics, using: Metric
              expose :params, using: KeyValue
              expose :metadata, as: :tags, using: KeyValue
            end
          end
        end
      end
    end
  end
end