Class: Anthropic::Models::Organization::AnalyticsClaudeTagMetrics

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/analytics_claude_tag_metrics.rb,
sig/anthropic/models/organization/analytics_claude_tag_metrics.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(active_day_count:, active_message_count:) ⇒ AnalyticsClaudeTagMetrics

Claude Tag activity metrics for a single linked user on a given day.

Some parameter documentations has been truncated, see Anthropic::Models::Organization::AnalyticsClaudeTagMetrics for more details.

Parameters:

  • active_day_count (Integer, nil) —

    1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over

  • active_message_count (Integer, nil) —

    Number of the user's Slack messages that made them active: @-mentions, direct me

  • active_day_count: (Integer, nil)
  • active_message_count: (Integer, nil)


# File 'lib/anthropic/models/organization/analytics_claude_tag_metrics.rb', line 27

Instance Attribute Details

#active_day_count ⇒ Integer?

1 on a day the user was active in Claude Tag in Slack, otherwise 0. Summed over the window in date-range mode, so it is the number of active days; on grouped rows, the total of each member's active days. Null when Claude Tag data cannot be read for the request. Otherwise, 0 on a row filtered by project, and null on any other row when no covered day was measured.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


15
# File 'lib/anthropic/models/organization/analytics_claude_tag_metrics.rb', line 15

required :active_day_count, Integer, nil?: true

#active_message_count ⇒ Integer?

Number of the user's Slack messages that made them active: @-mentions, direct messages, group direct message asks, and thread posts Claude answered. Other messages are not counted. Null when Claude Tag data cannot be read for the request. Otherwise, 0 on a row filtered by project, and null on any other row when no covered day was measured.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


25
# File 'lib/anthropic/models/organization/analytics_claude_tag_metrics.rb', line 25

required :active_message_count, Integer, nil?: true

Instance Method Details

#to_hash ⇒ { active_day_count: Integer?, active_message_count: Integer? }

Returns:

  • ({ active_day_count: Integer?, active_message_count: Integer? })


17
18
19
20
# File 'sig/anthropic/models/organization/analytics_claude_tag_metrics.rbs', line 17

def to_hash: -> {
  active_day_count: Integer?,
  active_message_count: Integer?
}