Class: Anthropic::Models::Organization::AnalyticsCoworkMetrics

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/analytics_cowork_metrics.rb,
sig/anthropic/models/organization/analytics_cowork_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:) ⇒ AnalyticsCoworkMetrics

Cowork activity metrics for a single user on a given day.

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

Parameters:

  • action_count (Integer) —

    Number of tool actions completed in Cowork sessions

  • artifacts_created_count (Integer) —

    Number of artifacts created in Cowork sessions: an artifact counts once, on the

  • connectors_used_count (Integer) —

    Total number of connector invocations in Cowork sessions

  • dispatch_turn_count (Integer) —

    Number of Dispatch (background agent) turns completed

  • distinct_connectors_used_count (Integer, nil) —

    Number of distinct connectors used in Cowork sessions. Approximate (HLL, typical

  • distinct_plugins_used_count (Integer, nil) —

    Number of distinct plugins used in Cowork sessions. Null while Cowork plugin-use

  • distinct_session_count (Integer, nil) —

    Number of distinct Cowork sessions. Approximate (HLL, typical error <2%) in date

  • distinct_skills_used_count (Integer, nil) —

    Number of distinct skills used in Cowork sessions. Approximate (HLL, typical err

  • edit_tool_count (Integer, nil) —

    Number of successful Edit tool calls in Cowork sessions. Null while the file-edi

  • file_edit_count (Integer, nil) —

    Number of successful file-edit tool calls (Edit, MultiEdit, Write, NotebookEdit)

  • message_count (Integer) —

    Number of messages sent in Cowork sessions

  • multi_edit_tool_count (Integer, nil) —

    Number of successful MultiEdit tool calls in Cowork sessions. Null while the fil

  • notebook_edit_tool_count (Integer, nil) —

    Number of successful NotebookEdit tool calls in Cowork sessions. Null while the

  • plugins_used_count (Integer, nil) —

    Total number of plugin invocations in Cowork sessions. Null while Cowork plugin-

  • sessions_with_file_edits_count (Integer, nil) —

    Number of distinct Cowork sessions with at least one successful file-edit tool c

  • skills_used_count (Integer) —

    Total number of skill invocations in Cowork sessions

  • write_tool_count (Integer, nil) —

    Number of successful Write tool calls in Cowork sessions. Null while the file-ed

  • 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_cowork_metrics.rb', line 132

Instance Attribute Details

#action_count ⇒ Integer

Number of tool actions completed in Cowork sessions

Parameters:

  • value (Integer)

Returns:

  • (Integer)


11
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 11

required :action_count, Integer

#artifacts_created_count ⇒ Integer

Number of artifacts created in Cowork sessions: an artifact counts once, on the day a session first saves it. Counted from 2026-08-17; 0 on earlier days. 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_cowork_metrics.rb', line 21

required :artifacts_created_count, Integer

#connectors_used_count ⇒ Integer

Total number of connector invocations in Cowork sessions

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :connectors_used_count, Integer

#dispatch_turn_count ⇒ Integer

Number of Dispatch (background agent) turns completed

Parameters:

  • value (Integer)

Returns:

  • (Integer)


33
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 33

required :dispatch_turn_count, Integer

#distinct_connectors_used_count ⇒ Integer?

Number of distinct connectors used in Cowork sessions. 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)


41
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 41

required :distinct_connectors_used_count, Integer, nil?: true

#distinct_plugins_used_count ⇒ Integer?

Number of distinct plugins used in Cowork sessions. Null while Cowork plugin-use metrics are not enabled for this organization. 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)


50
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 50

required :distinct_plugins_used_count, Integer, nil?: true

#distinct_session_count ⇒ Integer?

Number of distinct Cowork sessions. 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)


58
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 58

required :distinct_session_count, Integer, nil?: true

#distinct_skills_used_count ⇒ Integer?

Number of distinct skills used in Cowork sessions. 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)


66
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 66

required :distinct_skills_used_count, Integer, nil?: true

#edit_tool_count ⇒ Integer?

Number of successful Edit tool calls in Cowork sessions. Null while the file-edit metrics are not enabled for this organization.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


73
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 73

required :edit_tool_count, Integer, nil?: true

#file_edit_count ⇒ Integer?

Number of successful file-edit tool calls (Edit, MultiEdit, Write, NotebookEdit) in Cowork sessions. Null, never 0, while the file-edit metrics are not enabled for this organization.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


81
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 81

required :file_edit_count, Integer, nil?: true

#message_count ⇒ Integer

Number of messages sent in Cowork sessions

Parameters:

  • value (Integer)

Returns:

  • (Integer)


87
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 87

required :message_count, Integer

#multi_edit_tool_count ⇒ Integer?

Number of successful MultiEdit tool calls in Cowork sessions. Null while the file-edit metrics are not enabled for this organization.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


94
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 94

required :multi_edit_tool_count, Integer, nil?: true

#notebook_edit_tool_count ⇒ Integer?

Number of successful NotebookEdit tool calls in Cowork sessions. Null while the file-edit metrics are not enabled for this organization.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

required :notebook_edit_tool_count, Integer, nil?: true

#plugins_used_count ⇒ Integer?

Total number of plugin invocations in Cowork sessions. Null while Cowork plugin-use metrics are not enabled for this organization.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

required :plugins_used_count, Integer, nil?: true

#sessions_with_file_edits_count ⇒ Integer?

Number of distinct Cowork sessions with at least one successful file-edit tool call. Null while the file-edit metrics are not enabled for this organization. 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)


117
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 117

required :sessions_with_file_edits_count, Integer, nil?: true

#skills_used_count ⇒ Integer

Total number of skill invocations in Cowork sessions

Parameters:

  • value (Integer)

Returns:

  • (Integer)


123
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 123

required :skills_used_count, Integer

#write_tool_count ⇒ Integer?

Number of successful Write tool calls in Cowork sessions. Null while the file-edit metrics are not enabled for this organization.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


130
# File 'lib/anthropic/models/organization/analytics_cowork_metrics.rb', line 130

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_cowork_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?
}