Class BetaAnalyticsCoreCodeMetrics
-
- All Implemented Interfaces:
public final class BetaAnalyticsCoreCodeMetricsCore Claude Code activity metrics for a single user on a given day.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaAnalyticsCoreCodeMetrics.BuilderA builder for BetaAnalyticsCoreCodeMetrics.
-
Method Summary
Modifier and Type Method Description final LongartifactsCreatedCount()Number of artifacts created in Claude Code sessions: an artifact counts once, on the day a session first saves it. final LongcommitCount()Number of commits made via Claude Code final Optional<Long>distinctSessionCount()Number of distinct Claude Code sessions. final BetaAnalyticsLinesOfCodelinesOfCode()Lines of code added and removed via Claude Code. final LongpullRequestCount()Number of pull requests created via Claude Code final JsonField<Long>_artifactsCreatedCount()Returns the raw JSON value of artifactsCreatedCount. final JsonField<Long>_commitCount()Returns the raw JSON value of commitCount. final JsonField<Long>_distinctSessionCount()Returns the raw JSON value of distinctSessionCount. final JsonField<BetaAnalyticsLinesOfCode>_linesOfCode()Returns the raw JSON value of linesOfCode. final JsonField<Long>_pullRequestCount()Returns the raw JSON value of pullRequestCount. final Map<String, JsonValue>_additionalProperties()final BetaAnalyticsCoreCodeMetrics.BuildertoBuilder()final BetaAnalyticsCoreCodeMetricsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaAnalyticsCoreCodeMetrics.Builderbuilder()Returns a mutable builder for constructing an instance of BetaAnalyticsCoreCodeMetrics. -
-
Method Detail
-
artifactsCreatedCount
final Long artifactsCreatedCount()
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.
-
commitCount
final Long commitCount()
Number of commits made via Claude Code
-
distinctSessionCount
final Optional<Long> distinctSessionCount()
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.
-
linesOfCode
final BetaAnalyticsLinesOfCode linesOfCode()
Lines of code added and removed via Claude Code.
-
pullRequestCount
final Long pullRequestCount()
Number of pull requests created via Claude Code
-
_artifactsCreatedCount
final JsonField<Long> _artifactsCreatedCount()
Returns the raw JSON value of artifactsCreatedCount.
Unlike artifactsCreatedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_commitCount
final JsonField<Long> _commitCount()
Returns the raw JSON value of commitCount.
Unlike commitCount, this method doesn't throw if the JSON field has an unexpected type.
-
_distinctSessionCount
final JsonField<Long> _distinctSessionCount()
Returns the raw JSON value of distinctSessionCount.
Unlike distinctSessionCount, this method doesn't throw if the JSON field has an unexpected type.
-
_linesOfCode
final JsonField<BetaAnalyticsLinesOfCode> _linesOfCode()
Returns the raw JSON value of linesOfCode.
Unlike linesOfCode, this method doesn't throw if the JSON field has an unexpected type.
-
_pullRequestCount
final JsonField<Long> _pullRequestCount()
Returns the raw JSON value of pullRequestCount.
Unlike pullRequestCount, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaAnalyticsCoreCodeMetrics.Builder toBuilder()
-
validate
final BetaAnalyticsCoreCodeMetrics validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaAnalyticsCoreCodeMetrics.Builder builder()
Returns a mutable builder for constructing an instance of BetaAnalyticsCoreCodeMetrics.
The following fields are required:
.artifactsCreatedCount() .commitCount() .distinctSessionCount() .linesOfCode() .pullRequestCount()
-
-
-
-