Class: RailsErrorDashboard::Queries::DeveloperInsights
- Inherits:
-
Object
- Object
- RailsErrorDashboard::Queries::DeveloperInsights
- Defined in:
- lib/rails_error_dashboard/queries/developer_insights.rb
Overview
Query: Developer-focused insights Provides actionable metrics instead of environment breakdowns
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(days = 7) ⇒ DeveloperInsights
constructor
A new instance of DeveloperInsights.
Constructor Details
#initialize(days = 7) ⇒ DeveloperInsights
Returns a new instance of DeveloperInsights.
12 13 14 15 |
# File 'lib/rails_error_dashboard/queries/developer_insights.rb', line 12 def initialize(days = 7) @days = days @start_date = days.days.ago end |
Class Method Details
.call(days = 7) ⇒ Object
8 9 10 |
# File 'lib/rails_error_dashboard/queries/developer_insights.rb', line 8 def self.call(days = 7) new(days).call end |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rails_error_dashboard/queries/developer_insights.rb', line 17 def call { critical_metrics: critical_metrics, error_trends: error_trends, hot_spots: hot_spots, platform_health: platform_health, resolution_metrics: resolution_metrics, error_velocity: error_velocity, top_impacted_users: top_impacted_users, recurring_issues: recurring_issues } end |