Class: Temporalio::Client::ActivityExecutionCount

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/client/activity_execution_count.rb

Overview

Result of a #count_activities call.

Defined Under Namespace

Classes: AggregationGroup

Instance Attribute Summary collapse

Instance Attribute Details

#countInteger (readonly)

Returns Approximate number of activities matching the query. If the query had a group-by clause, this is the sum of all the counts in #groups.

Returns:

  • (Integer)

    Approximate number of activities matching the query. If the query had a group-by clause, this is the sum of all the counts in #groups.



9
10
11
# File 'lib/temporalio/client/activity_execution_count.rb', line 9

def count
  @count
end

#groupsArray<AggregationGroup> (readonly)

Returns Groups if the query had a group-by clause, or empty if not.

Returns:

  • (Array<AggregationGroup>)

    Groups if the query had a group-by clause, or empty if not.



12
13
14
# File 'lib/temporalio/client/activity_execution_count.rb', line 12

def groups
  @groups
end