Class AnalyticsUserActivity

  • All Implemented Interfaces:

    
    public final class AnalyticsUserActivity
    
                        

    Per-user activity data for a given day.

    • Constructor Detail

    • Method Detail

      • distinctUserCount

         final Optional<Long> distinctUserCount()

        Number of distinct active users represented by this row. Only set for grouped rollups (group_by[]); null for per-user rows. In date-range mode, recomputed as an exact distinct count of the group's active members over the requested window, never a sum of per-day values.

      • chatCoworkUnifiedMetrics

         final Optional<AnalyticsChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics()

        Activity recorded while the member had Chat and Cowork unified (Cowork's features inside claude.ai chat) turned on, split into chat (chat activity) and sessions (Cowork activity). Omitted from the response where Chat and Cowork unified is not available.

      • claudeTagMetrics

         final Optional<AnalyticsClaudeTagMetrics> claudeTagMetrics()

        Claude Tag activity in Slack by a user who has linked a Claude account. Activity by Slack users who have not linked an account appears only in the /summaries Claude Tag counts, so these rows do not add up to those counts. Omitted from the response on deployments that do not offer Claude Tag reporting.

      • lastActivityDate

         final Optional<LocalDate> lastActivityDate()

        Most recent UTC day (YYYY-MM-DD) on which the user had any counted activity, within the requested window: equal to the requested date in single-day mode, and to the latest active day from starting_date (inclusive) to ending_date (exclusive) in date-range rollup mode — never a day earlier than the window start. On filtered requests (filter[]) only days matching the filter count: with filter[]=rbac_group_id:{id} it is the last day the user was active while a member of that group, consistent with the row's other metrics. On grouped (group_by[]) rows it is the latest day any member of the group was active (the requested date in single-day mode). Omitted from the response while last-activity reporting is not enabled for this organization.

      • rbacGroupId

         final Optional<String> rbacGroupId()

        Tagged RBAC group identifier (rbac_group_...), matching the spend-limits API spelling. Present only when the request grouped by rbac_group_id.

      • rbacGroupName

         final Optional<String> rbacGroupName()

        Resolved RBAC group display name, alongside rbac_group_id when name resolution is available. Null if the group has been deleted or its name could not be resolved; rbac_group_id remains the stable key.

      • _distinctUserCount

         final JsonField<Long> _distinctUserCount()

        Returns the raw JSON value of distinctUserCount.

        Unlike distinctUserCount, this method doesn't throw if the JSON field has an unexpected type.

      • _user

         final JsonField<AnalyticsUser> _user()

        Returns the raw JSON value of user.

        Unlike user, this method doesn't throw if the JSON field has an unexpected type.

      • _webSearchCount

         final JsonField<Long> _webSearchCount()

        Returns the raw JSON value of webSearchCount.

        Unlike webSearchCount, this method doesn't throw if the JSON field has an unexpected type.

      • _lastActivityDate

         final JsonField<LocalDate> _lastActivityDate()

        Returns the raw JSON value of lastActivityDate.

        Unlike lastActivityDate, this method doesn't throw if the JSON field has an unexpected type.

      • _rbacGroupId

         final JsonField<String> _rbacGroupId()

        Returns the raw JSON value of rbacGroupId.

        Unlike rbacGroupId, this method doesn't throw if the JSON field has an unexpected type.

      • _rbacGroupName

         final JsonField<String> _rbacGroupName()

        Returns the raw JSON value of rbacGroupName.

        Unlike rbacGroupName, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final AnalyticsUserActivity 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 AnalyticsUserActivity.Builder builder()

        Returns a mutable builder for constructing an instance of AnalyticsUserActivity.

        The following fields are required:

        .chatMetrics()
        .claudeCodeMetrics()
        .coworkMetrics()
        .designMetrics()
        .distinctUserCount()
        .officeMetrics()
        .scienceMetrics()
        .user()
        .webSearchCount()