Module: Labkit::RSpec::Matchers::UserExperience
- Defined in:
- lib/labkit/rspec/matchers/user_experience_matchers.rb
Overview
Helper module for UserExperience functionality
Instance Method Summary collapse
- #apdex_counter ⇒ Object
- #attributes(user_experience_id) ⇒ Object
- #checkpoint_counter ⇒ Object
- #total_counter ⇒ Object
Instance Method Details
#apdex_counter ⇒ Object
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
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 |