Class AnalyticsUserActivity
-
- All Implemented Interfaces:
public final class AnalyticsUserActivityPer-user activity data for a given day.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAnalyticsUserActivity.BuilderA builder for AnalyticsUserActivity.
-
Method Summary
Modifier and Type Method Description final AnalyticsChatMetricschatMetrics()Claude.ai activity metrics for a single user on a given day. final AnalyticsClaudeCodeMetricsclaudeCodeMetrics()Claude Code activity metrics for a single user on a given day. final AnalyticsCoworkMetricscoworkMetrics()Cowork activity metrics for a single user on a given day. final AnalyticsDesignMetricsdesignMetrics()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 AnalyticsOfficeMetricsofficeMetrics()Office Agent activity metrics for a single user on a given day, broken out by Office product. final AnalyticsScienceMetricsscienceMetrics()Claude Science activity metrics for a single user on a given day. final Optional<AnalyticsUser>user()The user this row describes. final LongwebSearchCount()Number of web searches performed final Optional<AnalyticsChatCoworkUnifiedMetrics>chatCoworkUnifiedMetrics()Activity recorded while the member had Chat and Cowork unified (Cowork's features inside claude. final Optional<AnalyticsClaudeTagMetrics>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<AnalyticsChatMetrics>_chatMetrics()Returns the raw JSON value of chatMetrics. final JsonField<AnalyticsClaudeCodeMetrics>_claudeCodeMetrics()Returns the raw JSON value of claudeCodeMetrics. final JsonField<AnalyticsCoworkMetrics>_coworkMetrics()Returns the raw JSON value of coworkMetrics. final JsonField<AnalyticsDesignMetrics>_designMetrics()Returns the raw JSON value of designMetrics. final JsonField<Long>_distinctUserCount()Returns the raw JSON value of distinctUserCount. final JsonField<AnalyticsOfficeMetrics>_officeMetrics()Returns the raw JSON value of officeMetrics. final JsonField<AnalyticsScienceMetrics>_scienceMetrics()Returns the raw JSON value of scienceMetrics. final JsonField<AnalyticsUser>_user()Returns the raw JSON value of user. final JsonField<Long>_webSearchCount()Returns the raw JSON value of webSearchCount. final JsonField<AnalyticsChatCoworkUnifiedMetrics>_chatCoworkUnifiedMetrics()Returns the raw JSON value of chatCoworkUnifiedMetrics. final JsonField<AnalyticsClaudeTagMetrics>_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 AnalyticsUserActivity.BuildertoBuilder()final AnalyticsUserActivityvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AnalyticsUserActivity.Builderbuilder()Returns a mutable builder for constructing an instance of AnalyticsUserActivity. -
-
Method Detail
-
chatMetrics
final AnalyticsChatMetrics chatMetrics()
Claude.ai activity metrics for a single user on a given day.
-
claudeCodeMetrics
final AnalyticsClaudeCodeMetrics claudeCodeMetrics()
Claude Code activity metrics for a single user on a given day.
-
coworkMetrics
final AnalyticsCoworkMetrics coworkMetrics()
Cowork activity metrics for a single user on a given day.
-
designMetrics
final AnalyticsDesignMetrics 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 AnalyticsOfficeMetrics officeMetrics()
Office Agent activity metrics for a single user on a given day, broken out by Office product.
-
scienceMetrics
final AnalyticsScienceMetrics scienceMetrics()
Claude Science activity metrics for a single user on a given day.
-
user
final Optional<AnalyticsUser> user()
The user this row describes. Null on rows aggregated across users.
-
webSearchCount
final Long webSearchCount()
Number of web searches performed
-
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) andsessions(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
/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<AnalyticsChatMetrics> _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<AnalyticsClaudeCodeMetrics> _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<AnalyticsCoworkMetrics> _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<AnalyticsDesignMetrics> _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<AnalyticsOfficeMetrics> _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<AnalyticsScienceMetrics> _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<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.
-
_chatCoworkUnifiedMetrics
final JsonField<AnalyticsChatCoworkUnifiedMetrics> _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<AnalyticsClaudeTagMetrics> _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 AnalyticsUserActivity.Builder toBuilder()
-
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()
-
-
-
-