Class: Upkeep::Invalidation::Planner::Plan
- Inherits:
-
Data
- Object
- Data
- Upkeep::Invalidation::Planner::Plan
- Defined in:
- lib/upkeep/invalidation/planner.rb
Instance Attribute Summary collapse
-
#candidate_entries ⇒ Object
readonly
Returns the value of attribute candidate_entries.
-
#matched_entries ⇒ Object
readonly
Returns the value of attribute matched_entries.
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
Instance Method Summary collapse
Instance Attribute Details
#candidate_entries ⇒ Object (readonly)
Returns the value of attribute candidate_entries
34 35 36 |
# File 'lib/upkeep/invalidation/planner.rb', line 34 def candidate_entries @candidate_entries end |
#matched_entries ⇒ Object (readonly)
Returns the value of attribute matched_entries
34 35 36 |
# File 'lib/upkeep/invalidation/planner.rb', line 34 def matched_entries @matched_entries end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets
34 35 36 |
# File 'lib/upkeep/invalidation/planner.rb', line 34 def targets @targets end |
Instance Method Details
#summary ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/upkeep/invalidation/planner.rb', line 35 def summary { targets: targets.size, represented_subscribers: targets.sum(&:represented_subscriber_count), candidate_entries: candidate_entries.size, matched_entries: matched_entries.size, target_kinds: targets.map { |target| target.target.kind }.uniq.sort, manifest_replay_targets: targets.count(&:manifest_replay?), deoptimizations: targets.filter_map(&:deoptimization_reason).tally } end |