Class: Anthropic::Models::Organization::AnalyticsCoworkMetrics
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::AnalyticsCoworkMetrics
- Defined in:
- lib/anthropic/models/organization/analytics_cowork_metrics.rb,
sig/anthropic/models/organization/analytics_cowork_metrics.rbs
Instance Attribute Summary collapse
-
#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 day a session first saves it.
-
#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?
Number of distinct connectors used in Cowork sessions.
-
#distinct_plugins_used_count ⇒ Integer?
Number of distinct plugins used in Cowork sessions.
-
#distinct_session_count ⇒ Integer?
Number of distinct Cowork sessions.
-
#distinct_skills_used_count ⇒ Integer?
Number of distinct skills used in Cowork sessions.
-
#edit_tool_count ⇒ Integer?
Number of successful Edit tool calls in Cowork sessions.
-
#file_edit_count ⇒ Integer?
Number of successful file-edit tool calls (Edit, MultiEdit, Write, NotebookEdit) in Cowork sessions.
-
#message_count ⇒ Integer
Number of messages sent in Cowork sessions.
-
#multi_edit_tool_count ⇒ Integer?
Number of successful MultiEdit tool calls in Cowork sessions.
-
#notebook_edit_tool_count ⇒ Integer?
Number of successful NotebookEdit tool calls in Cowork sessions.
-
#plugins_used_count ⇒ Integer?
Total number of plugin invocations in Cowork sessions.
-
#sessions_with_file_edits_count ⇒ Integer?
Number of distinct Cowork sessions with at least one successful file-edit tool call.
-
#skills_used_count ⇒ Integer
Total number of skill invocations in Cowork sessions.
-
#write_tool_count ⇒ Integer?
Number of successful Write tool calls in Cowork sessions.
Instance Method Summary collapse
-
#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
constructor
Cowork activity metrics for a single user on a given day.
- #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? }
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.
|
|
# 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
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.
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
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
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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
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.
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? }
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?
}
|