Class AnalyticsCoreCodeMetrics

  • All Implemented Interfaces:

    
    public final class AnalyticsCoreCodeMetrics
    
                        

    Core Claude Code activity metrics for a single user on a given day.

    • Constructor Detail

    • 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.

      • _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.

      • _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.

      • 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.