Class BetaAnalyticsUserActivity
-
- All Implemented Interfaces:
public final class BetaAnalyticsUserActivityPer-user activity data for a given day.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaAnalyticsUserActivity.BuilderA builder for BetaAnalyticsUserActivity.
-
Method Summary
Modifier and Type Method Description final BetaAnalyticsChatMetricschatMetrics()Claude.ai activity metrics for a single user on a given day. final BetaAnalyticsClaudeCodeMetricsclaudeCodeMetrics()Claude Code activity metrics for a single user on a given day. final BetaAnalyticsCoworkMetricscoworkMetrics()Cowork activity metrics for a single user on a given day. final BetaAnalyticsDesignMetricsdesignMetrics()Claude Design activity metrics for a single user on a given day. final Optional<Long>distinctUserCount()Number of distinct active users represented by this row. final BetaAnalyticsOfficeMetricsofficeMetrics()Office Agent activity metrics for a single user on a given day, broken out by Office product. final BetaAnalyticsScienceMetricsscienceMetrics()Claude Science activity metrics for a single user on a given day. final Optional<BetaAnalyticsUser>user()The user this row describes. final LongwebSearchCount()Number of web searches performed final Optional<BetaAnalyticsChatCoworkUnifiedMetrics>chatCoworkUnifiedMetrics()Activity recorded while the member had Chat and Cowork unified (Cowork's features inside claude. final Optional<BetaAnalyticsClaudeTagMetrics>claudeTagMetrics()Claude Tag activity in Slack by a user who has linked a Claude account. 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 datein single-day mode, and to the latest active day fromstarting_date(inclusive) toending_date(exclusive) in date-range rollup mode — never a day earlier than the window start.final Optional<String>rbacGroupId()Tagged RBAC group identifier ( rbac_group_...), matching the spend-limits API spelling.final Optional<String>rbacGroupName()Resolved RBAC group display name, alongside rbac_group_idwhen name resolution is available.final JsonField<BetaAnalyticsChatMetrics>_chatMetrics()Returns the raw JSON value of chatMetrics. final JsonField<BetaAnalyticsClaudeCodeMetrics>_claudeCodeMetrics()Returns the raw JSON value of claudeCodeMetrics. final JsonField<BetaAnalyticsCoworkMetrics>_coworkMetrics()Returns the raw JSON value of coworkMetrics. final JsonField<BetaAnalyticsDesignMetrics>_designMetrics()Returns the raw JSON value of designMetrics. final JsonField<Long>_distinctUserCount()Returns the raw JSON value of distinctUserCount. final JsonField<BetaAnalyticsOfficeMetrics>_officeMetrics()Returns the raw JSON value of officeMetrics. final JsonField<BetaAnalyticsScienceMetrics>_scienceMetrics()Returns the raw JSON value of scienceMetrics. final JsonField<BetaAnalyticsUser>_user()Returns the raw JSON value of user. final JsonField<Long>_webSearchCount()Returns the raw JSON value of webSearchCount. final JsonField<BetaAnalyticsChatCoworkUnifiedMetrics>_chatCoworkUnifiedMetrics()Returns the raw JSON value of chatCoworkUnifiedMetrics. final JsonField<BetaAnalyticsClaudeTagMetrics>_claudeTagMetrics()Returns the raw JSON value of claudeTagMetrics. final JsonField<LocalDate>_lastActivityDate()Returns the raw JSON value of lastActivityDate. final JsonField<String>_rbacGroupId()Returns the raw JSON value of rbacGroupId. final JsonField<String>_rbacGroupName()Returns the raw JSON value of rbacGroupName. final Map<String, JsonValue>_additionalProperties()final BetaAnalyticsUserActivity.BuildertoBuilder()final BetaAnalyticsUserActivityvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaAnalyticsUserActivity.Builderbuilder()Returns a mutable builder for constructing an instance of BetaAnalyticsUserActivity. -
-
Method Detail
-
chatMetrics
final BetaAnalyticsChatMetrics chatMetrics()
Claude.ai activity metrics for a single user on a given day.
-
claudeCodeMetrics
final BetaAnalyticsClaudeCodeMetrics claudeCodeMetrics()
Claude Code activity metrics for a single user on a given day.
-
coworkMetrics
final BetaAnalyticsCoworkMetrics coworkMetrics()
Cowork activity metrics for a single user on a given day.
-
designMetrics
final BetaAnalyticsDesignMetrics designMetrics()
Claude Design activity metrics for a single user on a given day.
-
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.
-
officeMetrics
final BetaAnalyticsOfficeMetrics officeMetrics()
Office Agent activity metrics for a single user on a given day, broken out by Office product.
-
scienceMetrics
final BetaAnalyticsScienceMetrics scienceMetrics()
Claude Science activity metrics for a single user on a given day.
-
user
final Optional<BetaAnalyticsUser> user()
The user this row describes. Null on rows aggregated across users.
-
webSearchCount
final Long webSearchCount()
Number of web searches performed
-
chatCoworkUnifiedMetrics
final Optional<BetaAnalyticsChatCoworkUnifiedMetrics> 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) andsessions(Cowork activity). Omitted from the response where Chat and Cowork unified is not available.
-
claudeTagMetrics
final Optional<BetaAnalyticsClaudeTagMetrics> 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
/summariesClaude 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
datein single-day mode, and to the latest active day fromstarting_date(inclusive) toending_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: withfilter[]=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 requesteddatein 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 byrbac_group_id.
-
rbacGroupName
final Optional<String> rbacGroupName()
Resolved RBAC group display name, alongside
rbac_group_idwhen name resolution is available. Null if the group has been deleted or its name could not be resolved;rbac_group_idremains the stable key.
-
_chatMetrics
final JsonField<BetaAnalyticsChatMetrics> _chatMetrics()
Returns the raw JSON value of chatMetrics.
Unlike chatMetrics, this method doesn't throw if the JSON field has an unexpected type.
-
_claudeCodeMetrics
final JsonField<BetaAnalyticsClaudeCodeMetrics> _claudeCodeMetrics()
Returns the raw JSON value of claudeCodeMetrics.
Unlike claudeCodeMetrics, this method doesn't throw if the JSON field has an unexpected type.
-
_coworkMetrics
final JsonField<BetaAnalyticsCoworkMetrics> _coworkMetrics()
Returns the raw JSON value of coworkMetrics.
Unlike coworkMetrics, this method doesn't throw if the JSON field has an unexpected type.
-
_designMetrics
final JsonField<BetaAnalyticsDesignMetrics> _designMetrics()
Returns the raw JSON value of designMetrics.
Unlike designMetrics, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_officeMetrics
final JsonField<BetaAnalyticsOfficeMetrics> _officeMetrics()
Returns the raw JSON value of officeMetrics.
Unlike officeMetrics, this method doesn't throw if the JSON field has an unexpected type.
-
_scienceMetrics
final JsonField<BetaAnalyticsScienceMetrics> _scienceMetrics()
Returns the raw JSON value of scienceMetrics.
Unlike scienceMetrics, this method doesn't throw if the JSON field has an unexpected type.
-
_user
final JsonField<BetaAnalyticsUser> _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.
-
_chatCoworkUnifiedMetrics
final JsonField<BetaAnalyticsChatCoworkUnifiedMetrics> _chatCoworkUnifiedMetrics()
Returns the raw JSON value of chatCoworkUnifiedMetrics.
Unlike chatCoworkUnifiedMetrics, this method doesn't throw if the JSON field has an unexpected type.
-
_claudeTagMetrics
final JsonField<BetaAnalyticsClaudeTagMetrics> _claudeTagMetrics()
Returns the raw JSON value of claudeTagMetrics.
Unlike claudeTagMetrics, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaAnalyticsUserActivity.Builder toBuilder()
-
validate
final BetaAnalyticsUserActivity 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 BetaAnalyticsUserActivity.Builder builder()
Returns a mutable builder for constructing an instance of BetaAnalyticsUserActivity.
The following fields are required:
.chatMetrics() .claudeCodeMetrics() .coworkMetrics() .designMetrics() .distinctUserCount() .officeMetrics() .scienceMetrics() .user() .webSearchCount()
-
-
-
-