Class: Anthropic::Models::Organization::AnalyticsChatMetrics

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/analytics_chat_metrics.rb,
sig/anthropic/models/organization/analytics_chat_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(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.

Parameters:

  • connectors_used_count (Integer) —

    Number of MCP connector invocations.

  • distinct_artifacts_created_count (Integer) —

    Number of distinct artifacts created. Exact in date-range mode: a creation belon

  • distinct_connectors_used_count (Integer, nil) —

    Distinct claude.ai connectors this user used. Excludes calls whose connector cou

  • distinct_conversation_count (Integer, nil) —

    Number of distinct conversations the user participated in. Approximate (HLL, typ

  • distinct_files_uploaded_count (Integer, nil) —

    Number of distinct files uploaded. Approximate (HLL, typical error <2%) in date-

  • distinct_projects_created_count (Integer) —

    Number of distinct projects created. Exact in date-range mode: a creation belong

  • distinct_projects_used_count (Integer, nil) —

    Number of distinct projects used. Approximate (HLL, typical error <2%) in date-r

  • distinct_shared_artifacts_viewed_count (Integer, nil) —

    Number of distinct shared artifacts the user viewed. Approximate (HLL, typical e

  • distinct_skills_used_count (Integer, nil) —

    Number of distinct skills used. Approximate (HLL, typical error <2%) in date-ran

  • 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

  • connectors_used_count: (Integer)
  • distinct_artifacts_created_count: (Integer)
  • distinct_connectors_used_count: (Integer, nil)
  • distinct_conversation_count: (Integer, nil)
  • distinct_files_uploaded_count: (Integer, nil)
  • distinct_projects_created_count: (Integer)
  • distinct_projects_used_count: (Integer, nil)
  • distinct_shared_artifacts_viewed_count: (Integer, nil)
  • distinct_skills_used_count: (Integer, nil)
  • message_count: (Integer)
  • shared_conversations_viewed_count: (Integer)
  • thinking_message_count: (Integer)


# File 'lib/anthropic/models/organization/analytics_chat_metrics.rb', line 96

Instance Attribute Details

#connectors_used_count ⇒ Integer

Number of MCP connector invocations.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


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

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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 }

Returns:

  • ({ 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
}