Class: Anthropic::Models::Organization::AnalyticsChatCoworkUnifiedSessionsMetrics

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb,
sig/anthropic/models/organization/analytics_chat_cowork_unified_sessions_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(action_count:, artifacts_created_count:, connectors_used_count:, dispatch_turn_count:, distinct_connectors_used_count:, distinct_plugins_used_count:, distinct_session_count:, distinct_skills_used_count:, edit_tool_count:, file_edit_count:, message_count:, multi_edit_tool_count:, notebook_edit_tool_count:, plugins_used_count:, sessions_with_file_edits_count:, skills_used_count:, write_tool_count:) ⇒ AnalyticsChatCoworkUnifiedSessionsMetrics

Cowork session activity recorded while members had Chat and Cowork unified turned on.

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

Parameters:

  • action_count (Integer) —

    Same measure as cowork_metrics.action_count, for activity recorded while membe

  • artifacts_created_count (Integer) —

    Same measure as cowork_metrics.artifacts_created_count, for activity recorded

  • connectors_used_count (Integer) —

    Same measure as cowork_metrics.connectors_used_count, for activity recorded wh

  • dispatch_turn_count (Integer) —

    Same measure as cowork_metrics.dispatch_turn_count, for activity recorded whil

  • distinct_connectors_used_count (Integer, nil) —

    Same measure as cowork_metrics.distinct_connectors_used_count, for activity re

  • distinct_plugins_used_count (Integer, nil) —

    Same measure as cowork_metrics.distinct_plugins_used_count, for activity recor

  • distinct_session_count (Integer, nil) —

    Same measure as cowork_metrics.distinct_session_count, for activity recorded w

  • distinct_skills_used_count (Integer, nil) —

    Same measure as cowork_metrics.distinct_skills_used_count, for activity record

  • edit_tool_count (Integer, nil) —

    Same measure as cowork_metrics.edit_tool_count, for activity recorded while me

  • file_edit_count (Integer, nil) —

    Same measure as cowork_metrics.file_edit_count, for activity recorded while me

  • message_count (Integer) —

    Same measure as cowork_metrics.message_count, for activity recorded while memb

  • multi_edit_tool_count (Integer, nil) —

    Same measure as cowork_metrics.multi_edit_tool_count, for activity recorded wh

  • notebook_edit_tool_count (Integer, nil) —

    Same measure as cowork_metrics.notebook_edit_tool_count, for activity recorded

  • plugins_used_count (Integer, nil) —

    Same measure as cowork_metrics.plugins_used_count, for activity recorded while

  • sessions_with_file_edits_count (Integer, nil) —

    Same measure as cowork_metrics.sessions_with_file_edits_count, for activity re

  • skills_used_count (Integer) —

    Same measure as cowork_metrics.skills_used_count, for activity recorded while

  • write_tool_count (Integer, nil) —

    Same measure as cowork_metrics.write_tool_count, for activity recorded while m

  • action_count: (Integer)
  • artifacts_created_count: (Integer)
  • connectors_used_count: (Integer)
  • dispatch_turn_count: (Integer)
  • distinct_connectors_used_count: (Integer, nil)
  • distinct_plugins_used_count: (Integer, nil)
  • distinct_session_count: (Integer, nil)
  • distinct_skills_used_count: (Integer, nil)
  • edit_tool_count: (Integer, nil)
  • file_edit_count: (Integer, nil)
  • message_count: (Integer)
  • multi_edit_tool_count: (Integer, nil)
  • notebook_edit_tool_count: (Integer, nil)
  • plugins_used_count: (Integer, nil)
  • sessions_with_file_edits_count: (Integer, nil)
  • skills_used_count: (Integer)
  • write_tool_count: (Integer, nil)


# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 140

Instance Attribute Details

#action_count ⇒ Integer

Same measure as cowork_metrics.action_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


12
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 12

required :action_count, Integer

#artifacts_created_count ⇒ Integer

Same measure as cowork_metrics.artifacts_created_count, for activity recorded while members had Chat and Cowork unified turned on. Exact in date-range mode: a creation belongs to exactly one day, so the per-day counts never overlap and their sum over the window is the exact count of distinct creations in it.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


21
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 21

required :artifacts_created_count, Integer

#connectors_used_count ⇒ Integer

Same measure as cowork_metrics.connectors_used_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


28
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 28

required :connectors_used_count, Integer

#dispatch_turn_count ⇒ Integer

Same measure as cowork_metrics.dispatch_turn_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


35
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 35

required :dispatch_turn_count, Integer

#distinct_connectors_used_count ⇒ Integer?

Same measure as cowork_metrics.distinct_connectors_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


44
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 44

required :distinct_connectors_used_count, Integer, nil?: true

#distinct_plugins_used_count ⇒ Integer?

Same measure as cowork_metrics.distinct_plugins_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


53
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 53

required :distinct_plugins_used_count, Integer, nil?: true

#distinct_session_count ⇒ Integer?

Same measure as cowork_metrics.distinct_session_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


62
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 62

required :distinct_session_count, Integer, nil?: true

#distinct_skills_used_count ⇒ Integer?

Same measure as cowork_metrics.distinct_skills_used_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


71
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 71

required :distinct_skills_used_count, Integer, nil?: true

#edit_tool_count ⇒ Integer?

Same measure as cowork_metrics.edit_tool_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


78
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 78

required :edit_tool_count, Integer, nil?: true

#file_edit_count ⇒ Integer?

Same measure as cowork_metrics.file_edit_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


85
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 85

required :file_edit_count, Integer, nil?: true

#message_count ⇒ Integer

Same measure as cowork_metrics.message_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


92
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 92

required :message_count, Integer

#multi_edit_tool_count ⇒ Integer?

Same measure as cowork_metrics.multi_edit_tool_count, for activity recorded while members had Chat and Cowork unified turned on. Claude no longer has a multi-edit tool, so expect 0 when not null; each edit is now a separate Edit tool call, counted in edit_tool_count and file_edit_count.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


101
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 101

required :multi_edit_tool_count, Integer, nil?: true

#notebook_edit_tool_count ⇒ Integer?

Same measure as cowork_metrics.notebook_edit_tool_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


108
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 108

required :notebook_edit_tool_count, Integer, nil?: true

#plugins_used_count ⇒ Integer?

Same measure as cowork_metrics.plugins_used_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


115
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 115

required :plugins_used_count, Integer, nil?: true

#sessions_with_file_edits_count ⇒ Integer?

Same measure as cowork_metrics.sessions_with_file_edits_count, for activity recorded while members had Chat and Cowork unified turned on. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


124
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 124

required :sessions_with_file_edits_count, Integer, nil?: true

#skills_used_count ⇒ Integer

Same measure as cowork_metrics.skills_used_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


131
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 131

required :skills_used_count, Integer

#write_tool_count ⇒ Integer?

Same measure as cowork_metrics.write_tool_count, for activity recorded while members had Chat and Cowork unified turned on.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


138
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rb', line 138

required :write_tool_count, Integer, nil?: true

Instance Method Details

#to_hash ⇒ { action_count: Integer, artifacts_created_count: Integer, connectors_used_count: Integer, dispatch_turn_count: Integer, distinct_connectors_used_count: Integer?, distinct_plugins_used_count: Integer?, distinct_session_count: Integer?, distinct_skills_used_count: Integer?, edit_tool_count: Integer?, file_edit_count: Integer?, message_count: Integer, multi_edit_tool_count: Integer?, notebook_edit_tool_count: Integer?, plugins_used_count: Integer?, sessions_with_file_edits_count: Integer?, skills_used_count: Integer, write_tool_count: Integer? }

Returns:

  • ({ action_count: Integer, artifacts_created_count: Integer, connectors_used_count: Integer, dispatch_turn_count: Integer, distinct_connectors_used_count: Integer?, distinct_plugins_used_count: Integer?, distinct_session_count: Integer?, distinct_skills_used_count: Integer?, edit_tool_count: Integer?, file_edit_count: Integer?, message_count: Integer, multi_edit_tool_count: Integer?, notebook_edit_tool_count: Integer?, plugins_used_count: Integer?, sessions_with_file_edits_count: Integer?, skills_used_count: Integer, write_tool_count: Integer? })


80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'sig/anthropic/models/organization/analytics_chat_cowork_unified_sessions_metrics.rbs', line 80

def to_hash: -> {
  action_count: Integer,
  artifacts_created_count: Integer,
  connectors_used_count: Integer,
  dispatch_turn_count: Integer,
  distinct_connectors_used_count: Integer?,
  distinct_plugins_used_count: Integer?,
  distinct_session_count: Integer?,
  distinct_skills_used_count: Integer?,
  edit_tool_count: Integer?,
  file_edit_count: Integer?,
  message_count: Integer,
  multi_edit_tool_count: Integer?,
  notebook_edit_tool_count: Integer?,
  plugins_used_count: Integer?,
  sessions_with_file_edits_count: Integer?,
  skills_used_count: Integer,
  write_tool_count: Integer?
}