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: record_daily_usage_worker.rb
    path of file: ./repos/forem/app/workers/metrics
    
    the code of the file until where you have to start completion: module Metrics
  class RecordDailyUsageWorker
    include Sidekiq::Job
    sidekiq_options queue: :low_priority, retry: 10

    def perform
      # Articles published in the past 24 hours with at least 15 "score" (positive/negative reactions)
      articles_min_15_score_past_24h = Article.published.where("score >= ? AND published_at > ?", 15, 1.day.ago).size
      ForemStatsClient.count(
        "articles.min_15_score_past_24h",
        articles_min_15_score_past_24h,
        tags: ["resource:articles"],
      )

      # Articles published in the past 24 hours with at least 15 "score" (positive/negative reactions)
      articles_min_15_comment_score_past_24h = Article.published
        .where("comment_score >= ? AND published_at > ?", 15, 1.day.ago)
        .size
      ForemStatsClient.count(
        "articles.min_15_comment_score_past_24h",
        articles_min_15_comment_score_past_24h,
        tags: ["resource:articles"],
      )

      # Articles published in the past 24 which were that user's first article
      first_articles_past_24h = Article.where(nth_published_by_author: 1).where("published_at > ?", 1.day.ago).size
      ForemStatsClient.count("articles.first_past_24h", first_articles_past_24h, tags: ["resource:articles"])

      # Users who signed up in the past 24 hours who have made at least 1 comment so far
      new_users_min_1_comment_past_24h = User.where("comments_count >= ? AND registered_at > ?", 1, 24.hours.ago).size
      ForemStatsClient.count(
        "users.new_min_1_comment_past_24h",
        new_users_min_1_comment_past_24h,
        tags: ["resource:users"],
      )

      # Total negative reactions in the past 24 hours
      negative_reactions_past_24h = Reaction.where("points < 0").where("created_at > ?", 1.day.ago).size
      ForemStatsClient.count("reactions.negative_past_24h", negative_reactions_past_24h, tags: ["resource:reactions"])

      # Total abuse (etc.) reports in the past 24 hours
      categories = ["spam", "other", "rude or vulgar", "harassment"]
      reports_past_2
    
    def perform
      # Articles published in the past 24 hours with at least 15 "score" (positive/negative reactions)
      articles_min_15_score_past_24h = Article.published.where("score >= ? AND published_at > ?", 15, 1.day.ago).size
      ForemStatsClient.count(
        "articles.min_15_score_past_24h",
        articles_min_15_score_past_24h,
        tags: ["resource:articles"],
      )

      # Articles published in the past 24 hours with at least 15 "score" (positive/negative reactions)
      articles_min_15_comment_score_past_24h = Article.published
        .where("comment_score >= ? AND published_at > ?", 15, 1.day.ago)
        .size
      ForemStatsClient.count(
        "articles.min_15_comment_score_past_24h",
        articles_min_15_comment_score_past_24h,
        tags: ["resource:articles"],
      )

      # Articles published in the past 24 which were that user's first article
      first_articles_past_24h = Article.where(nth_published_by_author: 1).where("published_at > ?", 1.day.ago).size
      ForemStatsClient.count("articles.first_past_24h", first_articles_past_24h, tags: ["resource:articles"])

      # Users who signed up in the past 24 hours who have made at least 1 comment so far
      new_users_min_1_comment_past_24h = User.where("comments_count >= ? AND registered_at > ?", 1, 24.hours.ago).size
      ForemStatsClient.count(
        "users.new_min_1_comment_past_24h",
        new_users_min_1_comment_past_24h,
        tags: ["resource:users"],
      )

      # Total negative reactions in the past 24 hours
      negative_reactions_past_24h = Reaction.where("points < 0").where("created_at > ?", 1.day.ago).size
      ForemStatsClient.count("reactions.negative_past_24h", negative_reactions_past_24h, tags: ["resource:reactions"])

      # Total abuse (etc.) reports in the past 24 hours
      categories = ["spam", "other", "rude or vulgar", "harassment"]
      reports_past_24_hours = FeedbackMessage.where(category: categories).where("created_at > ?", 1.day.ago).size
      ForemStatsClient.count(
        "feedback_messages.reports_past_24_hours",
        reports_past_24_hours,
        tags: ["resource:feedback_messages"],
      )

      # Counts of total days active (1-7) in the past week,
      # e.g. 5000 users visited once this week, 3500 visited twice, etc.
      get_days_active_past_week_counts
    end