Class: Anthropic::Models::Organization::AnalyticsChatMetrics
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::AnalyticsChatMetrics
- Defined in:
- lib/anthropic/models/organization/analytics_chat_metrics.rb,
sig/anthropic/models/organization/analytics_chat_metrics.rbs
Instance Attribute Summary collapse
-
#connectors_used_count ⇒ Integer
Number of MCP connector invocations.
-
#distinct_artifacts_created_count ⇒ Integer
Number of distinct artifacts created.
-
#distinct_connectors_used_count ⇒ Integer?
Distinct claude.ai connectors this user used.
-
#distinct_conversation_count ⇒ Integer?
Number of distinct conversations the user participated in.
-
#distinct_files_uploaded_count ⇒ Integer?
Number of distinct files uploaded.
-
#distinct_projects_created_count ⇒ Integer
Number of distinct projects created.
-
#distinct_projects_used_count ⇒ Integer?
Number of distinct projects used.
-
#distinct_shared_artifacts_viewed_count ⇒ Integer?
Number of distinct shared artifacts the user viewed.
-
#distinct_skills_used_count ⇒ Integer?
Number of distinct skills used.
-
#message_count ⇒ Integer
Number of messages sent.
-
#shared_conversations_viewed_count ⇒ Integer
Number of times the user opened a shared conversation in a project.
-
#thinking_message_count ⇒ Integer
Number of messages that used extended thinking.
Instance Method Summary collapse
-
#initialize(connectors_used_count:, distinct_artifacts_created_count:, distinct_connectors_used_count:, distinct_conversation_count:, distinct_files_uploaded_count:, distinct_projects_created_count:, distinct_projects_used_count:, distinct_shared_artifacts_viewed_count:, distinct_skills_used_count:, message_count:, shared_conversations_viewed_count:, thinking_message_count:) ⇒ AnalyticsChatMetrics
constructor
Claude.ai activity metrics for a single user on a given day.
- #to_hash ⇒ { connectors_used_count: Integer, distinct_artifacts_created_count: Integer, distinct_connectors_used_count: Integer?, distinct_conversation_count: Integer?, distinct_files_uploaded_count: Integer?, distinct_projects_created_count: Integer, distinct_projects_used_count: Integer?, distinct_shared_artifacts_viewed_count: Integer?, distinct_skills_used_count: Integer?, message_count: Integer, shared_conversations_viewed_count: Integer, thinking_message_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(connectors_used_count:, distinct_artifacts_created_count:, distinct_connectors_used_count:, distinct_conversation_count:, distinct_files_uploaded_count:, distinct_projects_created_count:, distinct_projects_used_count:, distinct_shared_artifacts_viewed_count:, distinct_skills_used_count:, message_count:, shared_conversations_viewed_count:, thinking_message_count:) ⇒ AnalyticsChatMetrics
Claude.ai activity metrics for a single user on a given day.
Some parameter documentations has been truncated, see Anthropic::Models::Organization::AnalyticsChatMetrics for more details.
|
|
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 96
|
Instance Attribute Details
#connectors_used_count ⇒ Integer
Number of MCP connector invocations.
11 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 11 required :connectors_used_count, Integer |
#distinct_artifacts_created_count ⇒ Integer
Number of distinct artifacts created. 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.
19 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 19 required :distinct_artifacts_created_count, Integer |
#distinct_connectors_used_count ⇒ Integer?
Distinct claude.ai connectors this user used. Excludes calls whose connector could not be identified and all calls from organizations with zero data retention. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
28 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 28 required :distinct_connectors_used_count, Integer, nil?: true |
#distinct_conversation_count ⇒ Integer?
Number of distinct conversations the user participated in. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
36 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 36 required :distinct_conversation_count, Integer, nil?: true |
#distinct_files_uploaded_count ⇒ Integer?
Number of distinct files uploaded. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
44 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 44 required :distinct_files_uploaded_count, Integer, nil?: true |
#distinct_projects_created_count ⇒ Integer
Number of distinct projects created. 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.
52 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 52 required :distinct_projects_created_count, Integer |
#distinct_projects_used_count ⇒ Integer?
Number of distinct projects used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
60 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 60 required :distinct_projects_used_count, Integer, nil?: true |
#distinct_shared_artifacts_viewed_count ⇒ Integer?
Number of distinct shared artifacts the user viewed. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
68 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 68 required :distinct_shared_artifacts_viewed_count, Integer, nil?: true |
#distinct_skills_used_count ⇒ Integer?
Number of distinct skills used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
76 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 76 required :distinct_skills_used_count, Integer, nil?: true |
#message_count ⇒ Integer
Number of messages sent
82 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 82 required :message_count, Integer |
#shared_conversations_viewed_count ⇒ Integer
Number of times the user opened a shared conversation in a project
88 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 88 required :shared_conversations_viewed_count, Integer |
#thinking_message_count ⇒ Integer
Number of messages that used extended thinking
94 |
# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 94 required :thinking_message_count, Integer |
Instance Method Details
#to_hash ⇒ { connectors_used_count: Integer, distinct_artifacts_created_count: Integer, distinct_connectors_used_count: Integer?, distinct_conversation_count: Integer?, distinct_files_uploaded_count: Integer?, distinct_projects_created_count: Integer, distinct_projects_used_count: Integer?, distinct_shared_artifacts_viewed_count: Integer?, distinct_skills_used_count: Integer?, message_count: Integer, shared_conversations_viewed_count: Integer, thinking_message_count: Integer }
60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'sig/anthropic/models/organization/analytics_chat_metrics.rbs', line 60
def to_hash: -> {
connectors_used_count: Integer,
distinct_artifacts_created_count: Integer,
distinct_connectors_used_count: Integer?,
distinct_conversation_count: Integer?,
distinct_files_uploaded_count: Integer?,
distinct_projects_created_count: Integer,
distinct_projects_used_count: Integer?,
distinct_shared_artifacts_viewed_count: Integer?,
distinct_skills_used_count: Integer?,
message_count: Integer,
shared_conversations_viewed_count: Integer,
thinking_message_count: Integer
}
|