Class: Anthropic::Models::Organization::AnalyticsCoreCodeMetrics
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::AnalyticsCoreCodeMetrics
- Defined in:
- lib/anthropic/models/organization/analytics_core_code_metrics.rb,
sig/anthropic/models/organization/analytics_core_code_metrics.rbs
Instance Attribute Summary collapse
-
#artifacts_created_count ⇒ Integer
Number of artifacts created in Claude Code sessions: an artifact counts once, on the day a session first saves it.
-
#commit_count ⇒ Integer
Number of commits made via Claude Code.
-
#distinct_session_count ⇒ Integer?
Number of distinct Claude Code sessions.
-
#lines_of_code ⇒ Anthropic::Models::Organization::AnalyticsLinesOfCode
Lines of code added and removed via Claude Code.
-
#pull_request_count ⇒ Integer
Number of pull requests created via Claude Code.
Instance Method Summary collapse
-
#initialize(artifacts_created_count:, commit_count:, distinct_session_count:, lines_of_code:, pull_request_count:) ⇒ AnalyticsCoreCodeMetrics
constructor
Core Claude Code activity metrics for a single user on a given day.
- #to_hash ⇒ { artifacts_created_count: Integer, commit_count: Integer, distinct_session_count: Integer?, lines_of_code: Anthropic::Organization::AnalyticsLinesOfCode, pull_request_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(artifacts_created_count:, commit_count:, distinct_session_count:, lines_of_code:, pull_request_count:) ⇒ AnalyticsCoreCodeMetrics
Core Claude Code activity metrics for a single user on a given day.
Some parameter documentations has been truncated, see Anthropic::Models::Organization::AnalyticsCoreCodeMetrics for more details.
|
|
# File 'lib/anthropic/models/organization/analytics_core_code_metrics.rb', line 43
|
Instance Attribute Details
#artifacts_created_count ⇒ Integer
Number of artifacts created in Claude Code sessions: an artifact counts once, on the day a session first saves it. Counted from 2026-08-17; 0 on earlier days. 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.
15 |
# File 'lib/anthropic/models/organization/analytics_core_code_metrics.rb', line 15 required :artifacts_created_count, Integer |
#commit_count ⇒ Integer
Number of commits made via Claude Code
21 |
# File 'lib/anthropic/models/organization/analytics_core_code_metrics.rb', line 21 required :commit_count, Integer |
#distinct_session_count ⇒ Integer?
Number of distinct Claude Code sessions. On aggregated rows and in date-range mode: summed per-day distinct counts. A session essentially never spans a UTC day, so the sum is in practice the true distinct count.
29 |
# File 'lib/anthropic/models/organization/analytics_core_code_metrics.rb', line 29 required :distinct_session_count, Integer, nil?: true |
#lines_of_code ⇒ Anthropic::Models::Organization::AnalyticsLinesOfCode
Lines of code added and removed via Claude Code.
35 |
# File 'lib/anthropic/models/organization/analytics_core_code_metrics.rb', line 35 required :lines_of_code, -> { Anthropic::Organization::AnalyticsLinesOfCode } |
#pull_request_count ⇒ Integer
Number of pull requests created via Claude Code
41 |
# File 'lib/anthropic/models/organization/analytics_core_code_metrics.rb', line 41 required :pull_request_count, Integer |
Instance Method Details
#to_hash ⇒ { artifacts_created_count: Integer, commit_count: Integer, distinct_session_count: Integer?, lines_of_code: Anthropic::Organization::AnalyticsLinesOfCode, pull_request_count: Integer }
32 33 34 35 36 37 38 |
# File 'sig/anthropic/models/organization/analytics_core_code_metrics.rbs', line 32
def to_hash: -> {
artifacts_created_count: Integer,
commit_count: Integer,
distinct_session_count: Integer?,
lines_of_code: Anthropic::Organization::AnalyticsLinesOfCode,
pull_request_count: Integer
}
|