Class: Anthropic::Models::Organization::AnalyticsDesignMetrics

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/analytics_design_metrics.rb,
sig/anthropic/models/organization/analytics_design_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(distinct_projects_created_count:, distinct_projects_used_count:, distinct_session_count:, message_count:) ⇒ AnalyticsDesignMetrics

Claude Design activity metrics for a single user on a given day.

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

Parameters:

  • distinct_projects_created_count (Integer) —

    Number of distinct Claude Design projects created. Exact in date-range mode: a c

  • distinct_projects_used_count (Integer, nil) —

    Number of distinct Claude Design projects the user worked in. Approximate (HLL,

  • distinct_session_count (Integer, nil) —

    Number of distinct Claude Design sessions. Approximate (HLL, typical error <2%)

  • message_count (Integer) —

    Number of messages sent in Claude Design sessions

  • distinct_projects_created_count: (Integer)
  • distinct_projects_used_count: (Integer, nil)
  • distinct_session_count: (Integer, nil)
  • message_count: (Integer)


# File 'lib/anthropic/models/organization/analytics_design_metrics.rb', line 37

Instance Attribute Details

#distinct_projects_created_count ⇒ Integer

Number of distinct Claude Design 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)


13
# File 'lib/anthropic/models/organization/analytics_design_metrics.rb', line 13

required :distinct_projects_created_count, Integer

#distinct_projects_used_count ⇒ Integer?

Number of distinct Claude Design projects the user worked 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)


21
# File 'lib/anthropic/models/organization/analytics_design_metrics.rb', line 21

required :distinct_projects_used_count, Integer, nil?: true

#distinct_session_count ⇒ Integer?

Number of distinct Claude Design sessions. 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)


29
# File 'lib/anthropic/models/organization/analytics_design_metrics.rb', line 29

required :distinct_session_count, Integer, nil?: true

#message_count ⇒ Integer

Number of messages sent in Claude Design sessions

Parameters:

  • value (Integer)

Returns:

  • (Integer)


35
# File 'lib/anthropic/models/organization/analytics_design_metrics.rb', line 35

required :message_count, Integer

Instance Method Details

#to_hash ⇒ { distinct_projects_created_count: Integer, distinct_projects_used_count: Integer?, distinct_session_count: Integer?, message_count: Integer }

Returns:

  • ({ distinct_projects_created_count: Integer, distinct_projects_used_count: Integer?, distinct_session_count: Integer?, message_count: Integer })


28
29
30
31
32
33
# File 'sig/anthropic/models/organization/analytics_design_metrics.rbs', line 28

def to_hash: -> {
  distinct_projects_created_count: Integer,
  distinct_projects_used_count: Integer?,
  distinct_session_count: Integer?,
  message_count: Integer
}