Class: Anthropic::Models::Organization::AnalyticsChatCoworkUnifiedMetrics

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

Activity in Chat and Cowork unified for one user on one day: chat holds chat activity and sessions holds Cowork session activity.

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

Parameters:



# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_metrics.rb', line 20

Instance Attribute Details

#chat ⇒ Anthropic::Models::Organization::AnalyticsChatCoworkUnifiedChatMetrics

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

Parameters:

  • value (Anthropic::Organization::AnalyticsChatCoworkUnifiedChatMetrics)

Returns:



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

required :chat, -> { Anthropic::Organization::AnalyticsChatCoworkUnifiedChatMetrics }

#sessions ⇒ Anthropic::Models::Organization::AnalyticsChatCoworkUnifiedSessionsMetrics

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

Parameters:

  • value (Anthropic::Organization::AnalyticsChatCoworkUnifiedSessionsMetrics)

Returns:



18
# File 'lib/anthropic/models/organization/analytics_chat_cowork_unified_metrics.rb', line 18

required :sessions, -> { Anthropic::Organization::AnalyticsChatCoworkUnifiedSessionsMetrics }

Instance Method Details

#to_hash ⇒ { chat: Anthropic::Organization::AnalyticsChatCoworkUnifiedChatMetrics, sessions: Anthropic::Organization::AnalyticsChatCoworkUnifiedSessionsMetrics }

Returns:

  • ({ chat: Anthropic::Organization::AnalyticsChatCoworkUnifiedChatMetrics, sessions: Anthropic::Organization::AnalyticsChatCoworkUnifiedSessionsMetrics })


20
21
22
23
# File 'sig/anthropic/models/organization/analytics_chat_cowork_unified_metrics.rbs', line 20

def to_hash: -> {
  chat: Anthropic::Organization::AnalyticsChatCoworkUnifiedChatMetrics,
  sessions: Anthropic::Organization::AnalyticsChatCoworkUnifiedSessionsMetrics
}