Class BetaAnalyticsCoreCodeMetrics.Builder
-
- All Implemented Interfaces:
public final class BetaAnalyticsCoreCodeMetrics.BuilderA builder for BetaAnalyticsCoreCodeMetrics.
-
-
Method Summary
-
-
Method Detail
-
artifactsCreatedCount
final BetaAnalyticsCoreCodeMetrics.Builder artifactsCreatedCount(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.
-
artifactsCreatedCount
final BetaAnalyticsCoreCodeMetrics.Builder artifactsCreatedCount(JsonField<Long> artifactsCreatedCount)
Sets Builder.artifactsCreatedCount to an arbitrary JSON value.
You should usually call Builder.artifactsCreatedCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
commitCount
final BetaAnalyticsCoreCodeMetrics.Builder commitCount(Long commitCount)
Number of commits made via Claude Code
-
commitCount
final BetaAnalyticsCoreCodeMetrics.Builder commitCount(JsonField<Long> commitCount)
Sets Builder.commitCount to an arbitrary JSON value.
You should usually call Builder.commitCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
distinctSessionCount
final BetaAnalyticsCoreCodeMetrics.Builder distinctSessionCount(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.
-
distinctSessionCount
final BetaAnalyticsCoreCodeMetrics.Builder distinctSessionCount(Long distinctSessionCount)
Alias for Builder.distinctSessionCount.
This unboxed primitive overload exists for backwards compatibility.
-
distinctSessionCount
final BetaAnalyticsCoreCodeMetrics.Builder distinctSessionCount(Optional<Long> distinctSessionCount)
Alias for calling Builder.distinctSessionCount with
distinctSessionCount.orElse(null).
-
distinctSessionCount
final BetaAnalyticsCoreCodeMetrics.Builder distinctSessionCount(JsonField<Long> distinctSessionCount)
Sets Builder.distinctSessionCount to an arbitrary JSON value.
You should usually call Builder.distinctSessionCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
linesOfCode
final BetaAnalyticsCoreCodeMetrics.Builder linesOfCode(BetaAnalyticsLinesOfCode linesOfCode)
Lines of code added and removed via Claude Code.
-
linesOfCode
final BetaAnalyticsCoreCodeMetrics.Builder linesOfCode(JsonField<BetaAnalyticsLinesOfCode> linesOfCode)
Sets Builder.linesOfCode to an arbitrary JSON value.
You should usually call Builder.linesOfCode with a well-typed BetaAnalyticsLinesOfCode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pullRequestCount
final BetaAnalyticsCoreCodeMetrics.Builder pullRequestCount(Long pullRequestCount)
Number of pull requests created via Claude Code
-
pullRequestCount
final BetaAnalyticsCoreCodeMetrics.Builder pullRequestCount(JsonField<Long> pullRequestCount)
Sets Builder.pullRequestCount to an arbitrary JSON value.
You should usually call Builder.pullRequestCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaAnalyticsCoreCodeMetrics.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaAnalyticsCoreCodeMetrics.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaAnalyticsCoreCodeMetrics.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaAnalyticsCoreCodeMetrics.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaAnalyticsCoreCodeMetrics.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaAnalyticsCoreCodeMetrics build()
Returns an immutable instance of BetaAnalyticsCoreCodeMetrics.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.artifactsCreatedCount() .commitCount() .distinctSessionCount() .linesOfCode() .pullRequestCount()
-
-
-
-