Sha256: 5fe020911bc7369bad77343ffe1f66fcfa4c5b7bd5b7287a374887ff1c6c59b7

Contents?: true

Size: 814 Bytes

Versions: 1

Compression:

Stored size: 814 Bytes

Contents

# frozen_string_literal: true

# Defines methods related to sidekiq metrics.
# @see https://docs.gitlab.com/ce/api/sidekiq_metrics.html
module Sidekiq
  # Get the current Queue Metrics
  #
  # @example
  #   Gitlab.sidekiq_queue_metrics
  def sidekiq_queue_metrics
    get('/sidekiq/queue_metrics')
  end

  # Get the current Process Metrics
  #
  # @example
  #   Gitlab.sidekiq_process_metrics
  def sidekiq_process_metrics
    get('/sidekiq/process_metrics')
  end

  # Get the current Job Statistics
  #
  # @example
  #   Gitlab.sidekiq_job_stats
  def sidekiq_job_stats
    get('/sidekiq/job_stats')
  end

  # Get a compound response of all the previously mentioned metrics
  #
  # @example
  #   Gitlab.sidekiq_compound_metrics
  def sidekiq_compound_metrics
    get('/sidekiq/compound_metrics')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gitlab-4.6.0 lib/gitlab/client/sidekiq.rb