Class: Tasker::AnalyticsService::PerformanceAnalytics
- Inherits:
-
Object
- Object
- Tasker::AnalyticsService::PerformanceAnalytics
- Defined in:
- app/services/tasker/analytics_service.rb
Overview
Performance analytics data structure
Instance Attribute Summary collapse
-
#generated_at ⇒ Object
readonly
Returns the value of attribute generated_at.
-
#performance_trends ⇒ Object
readonly
Returns the value of attribute performance_trends.
-
#system_overview ⇒ Object
readonly
Returns the value of attribute system_overview.
-
#telemetry_insights ⇒ Object
readonly
Returns the value of attribute telemetry_insights.
Instance Method Summary collapse
-
#initialize(system_overview:, performance_trends:, telemetry_insights:) ⇒ PerformanceAnalytics
constructor
A new instance of PerformanceAnalytics.
- #to_h ⇒ Object
Constructor Details
#initialize(system_overview:, performance_trends:, telemetry_insights:) ⇒ PerformanceAnalytics
Returns a new instance of PerformanceAnalytics.
15 16 17 18 19 20 |
# File 'app/services/tasker/analytics_service.rb', line 15 def initialize(system_overview:, performance_trends:, telemetry_insights:) @system_overview = system_overview @performance_trends = performance_trends @telemetry_insights = telemetry_insights @generated_at = Time.current end |
Instance Attribute Details
#generated_at ⇒ Object (readonly)
Returns the value of attribute generated_at.
13 14 15 |
# File 'app/services/tasker/analytics_service.rb', line 13 def generated_at @generated_at end |
#performance_trends ⇒ Object (readonly)
Returns the value of attribute performance_trends.
13 14 15 |
# File 'app/services/tasker/analytics_service.rb', line 13 def performance_trends @performance_trends end |
#system_overview ⇒ Object (readonly)
Returns the value of attribute system_overview.
13 14 15 |
# File 'app/services/tasker/analytics_service.rb', line 13 def system_overview @system_overview end |
#telemetry_insights ⇒ Object (readonly)
Returns the value of attribute telemetry_insights.
13 14 15 |
# File 'app/services/tasker/analytics_service.rb', line 13 def telemetry_insights @telemetry_insights end |
Instance Method Details
#to_h ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'app/services/tasker/analytics_service.rb', line 22 def to_h { system_overview: system_overview, performance_trends: performance_trends, telemetry_insights: telemetry_insights, generated_at: generated_at } end |