Class: Kward::TelemetryStats::Result
- Inherits:
-
Struct
- Object
- Struct
- Kward::TelemetryStats::Result
- Defined in:
- lib/kward/telemetry/stats.rb
Instance Attribute Summary collapse
-
#enabled_categories ⇒ Object
Returns the value of attribute enabled_categories.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#log_dir ⇒ Object
Returns the value of attribute log_dir.
-
#performance ⇒ Object
Returns the value of attribute performance.
-
#range ⇒ Object
Returns the value of attribute range.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#records_by_category ⇒ Object
Returns the value of attribute records_by_category.
-
#records_by_event ⇒ Object
Returns the value of attribute records_by_event.
-
#tokens ⇒ Object
Returns the value of attribute tokens.
-
#tools ⇒ Object
Returns the value of attribute tools.
Instance Method Summary collapse
Instance Attribute Details
#enabled_categories ⇒ Object
Returns the value of attribute enabled_categories
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def enabled_categories @enabled_categories end |
#errors ⇒ Object
Returns the value of attribute errors
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def errors @errors end |
#log_dir ⇒ Object
Returns the value of attribute log_dir
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def log_dir @log_dir end |
#performance ⇒ Object
Returns the value of attribute performance
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def performance @performance end |
#range ⇒ Object
Returns the value of attribute range
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def range @range end |
#record_count ⇒ Object
Returns the value of attribute record_count
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def record_count @record_count end |
#records_by_category ⇒ Object
Returns the value of attribute records_by_category
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def records_by_category @records_by_category end |
#records_by_event ⇒ Object
Returns the value of attribute records_by_event
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def records_by_event @records_by_event end |
#tokens ⇒ Object
Returns the value of attribute tokens
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def tokens @tokens end |
#tools ⇒ Object
Returns the value of attribute tools
14 15 16 |
# File 'lib/kward/telemetry/stats.rb', line 14 def tools @tools end |
Instance Method Details
#to_h ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/kward/telemetry/stats.rb', line 15 def to_h { range: { input: range[:input], count: range[:count], unit: range[:unit], startAt: range[:start_at].iso8601, endAt: range[:end_at].iso8601 }, logDir: log_dir, enabledCategories: enabled_categories, recordCount: record_count, recordsByCategory: records_by_category, recordsByEvent: records_by_event, usageStats: tokens, performance: performance, tools: tools, errors: errors } end |