You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: batched_background_migration_failed_jobs_metric.rb
    path of file: ./repos/gitlabhq/lib/gitlab/usage/metrics/instrumentations
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Usage
    module Metrics
      module Instrumentations
        class BatchedBackgroundMigrationF
    
          def value
            relation.map do |batched_migration|
              {
                job_class_name: batched_migration.job_class_name,
                table_name: batched_migration.table_name,
                number_of_failed_jobs: batched_migration.number_of_failed_jobs
              }
            end
          end