Class AnalyticsCoreCodeMetrics
-
- All Implemented Interfaces:
public final class AnalyticsCoreCodeMetricsCore Claude Code activity metrics for a single user on a given day.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAnalyticsCoreCodeMetrics.BuilderA builder for AnalyticsCoreCodeMetrics.
-
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 AnalyticsLinesOfCodelinesOfCode()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<AnalyticsLinesOfCode>_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 AnalyticsCoreCodeMetrics.BuildertoBuilder()final AnalyticsCoreCodeMetricsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AnalyticsCoreCodeMetrics.Builderbuilder()Returns a mutable builder for constructing an instance of AnalyticsCoreCodeMetrics. -
-
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 AnalyticsLinesOfCode 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<AnalyticsLinesOfCode> _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 AnalyticsCoreCodeMetrics.Builder toBuilder()
-
validate
final AnalyticsCoreCodeMetrics 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 AnalyticsCoreCodeMetrics.Builder builder()
Returns a mutable builder for constructing an instance of AnalyticsCoreCodeMetrics.
The following fields are required:
.artifactsCreatedCount() .commitCount() .distinctSessionCount() .linesOfCode() .pullRequestCount()
-
-
-
-