Module: Labkit::RSpec::Matchers::UserExperience Private
- Defined in:
- lib/labkit/rspec/matchers/user_experience_matchers.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Helper module for UserExperience functionality
Instance Method Summary collapse
- #apdex_counter ⇒ Object private
- #attributes(user_experience_id) ⇒ Object private
- #checkpoint_counter ⇒ Object private
- #total_counter ⇒ Object private
Instance Method Details
#apdex_counter ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
30 31 32 |
# File 'lib/labkit/rspec/matchers/user_experience_matchers.rb', line 30 def apdex_counter Labkit::Metrics::Client.get(:gitlab_user_experience_apdex_total) end |
#attributes(user_experience_id) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 18 19 20 |
# File 'lib/labkit/rspec/matchers/user_experience_matchers.rb', line 15 def attributes(user_experience_id) raise ArgumentError, "user_experience_id is required" if user_experience_id.nil? definition = Labkit::UserExperienceSli::Registry.new[user_experience_id] definition.to_h.slice(:user_experience_id, :feature_category, :urgency) end |
#checkpoint_counter ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/labkit/rspec/matchers/user_experience_matchers.rb', line 22 def checkpoint_counter Labkit::Metrics::Client.get(:gitlab_user_experience_checkpoint_total) end |
#total_counter ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/labkit/rspec/matchers/user_experience_matchers.rb', line 26 def total_counter Labkit::Metrics::Client.get(:gitlab_user_experience_total) end |