Class: Anthropic::Models::Organization::AnalyticsChatCoworkUnifiedChatMetrics

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

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

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

Parameters:

  • connectors_used_count (Integer) —

    Same measure as chat_metrics.connectors_used_count, for activity recorded whil

  • distinct_artifacts_created_count (Integer) —

    Same measure as chat_metrics.distinct_artifacts_created_count, for activity re

  • distinct_connectors_used_count (Integer, nil) —

    Same measure as chat_metrics.distinct_connectors_used_count, for activity reco

  • distinct_conversation_count (Integer, nil) —

    Same measure as chat_metrics.distinct_conversation_count, for activity recorde

  • distinct_files_uploaded_count (Integer, nil) —

    Same measure as chat_metrics.distinct_files_uploaded_count, for activity recor

  • distinct_projects_created_count (Integer) —

    Same measure as chat_metrics.distinct_projects_created_count, for activity rec

  • distinct_projects_used_count (Integer, nil) —

    Same measure as chat_metrics.distinct_projects_used_count, for activity record

  • distinct_shared_artifacts_viewed_count (Integer, nil) —

    Always null: shared-artifact views are not currently measured.

  • distinct_skills_used_count (Integer, nil) —

    Same measure as chat_metrics.distinct_skills_used_count, for activity recorded

  • message_count (Integer) —

    Same measure as chat_metrics.message_count, for activity recorded while member

  • shared_conversations_viewed_count (Integer) —

    Same measure as chat_metrics.shared_conversations_viewed_count, for activity r

  • thinking_message_count (Integer) —

    Same measure as chat_metrics.thinking_message_count, for activity recorded whi

  • 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_cowork_unified_chat_metrics.rb', line 107

Instance Attribute Details

#connectors_used_count ⇒ Integer

Same measure as chat_metrics.connectors_used_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_chat_metrics.rb', line 12

required :connectors_used_count, Integer

#distinct_artifacts_created_count ⇒ Integer

Same measure as chat_metrics.distinct_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)


22
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 22

required :distinct_artifacts_created_count, Integer

#distinct_connectors_used_count ⇒ Integer?

Same measure as chat_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)


31
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 31

required :distinct_connectors_used_count, Integer, nil?: true

#distinct_conversation_count ⇒ Integer?

Same measure as chat_metrics.distinct_conversation_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)


40
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 40

required :distinct_conversation_count, Integer, nil?: true

#distinct_files_uploaded_count ⇒ Integer?

Same measure as chat_metrics.distinct_files_uploaded_count, for activity recorded while members had Chat and Cowork unified turned on. It counts uploaded files as well as files Claude created and images returned by Claude's tools, such as screenshots. 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_chat_cowork_unified_chat_metrics.rb', line 50

required :distinct_files_uploaded_count, Integer, nil?: true

#distinct_projects_created_count ⇒ Integer

Same measure as chat_metrics.distinct_projects_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)


60
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 60

required :distinct_projects_created_count, Integer

#distinct_projects_used_count ⇒ Integer?

Same measure as chat_metrics.distinct_projects_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)


69
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 69

required :distinct_projects_used_count, Integer, nil?: true

#distinct_shared_artifacts_viewed_count ⇒ Integer?

Always null: shared-artifact views are not currently measured.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


75
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 75

required :distinct_shared_artifacts_viewed_count, Integer, nil?: true

#distinct_skills_used_count ⇒ Integer?

Same measure as chat_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)


84
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 84

required :distinct_skills_used_count, Integer, nil?: true

#message_count ⇒ Integer

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

Parameters:

  • value (Integer)

Returns:

  • (Integer)


91
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 91

required :message_count, Integer

#shared_conversations_viewed_count ⇒ Integer

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

Parameters:

  • value (Integer)

Returns:

  • (Integer)


98
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 98

required :shared_conversations_viewed_count, Integer

#thinking_message_count ⇒ Integer

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

Parameters:

  • value (Integer)

Returns:

  • (Integer)


105
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_chat_metrics.rb', line 105

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_cowork_unified_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
}