Class BetaAnalyticsSkillActivity.Builder
-
- All Implemented Interfaces:
public final class BetaAnalyticsSkillActivity.BuilderA builder for BetaAnalyticsSkillActivity.
-
-
Method Summary
Modifier and Type Method Description final BetaAnalyticsSkillActivity.BuilderattributedListPrice(String attributedListPrice)List-price (rate-card) value of the member requests attributed to this skill, as a decimal string in the minor unit of currency(cents for USD), from Claude Code, Cowork, and Office Agent request-level attribution — the value of requests that involved the skill, not the skill's incremental cost.final BetaAnalyticsSkillActivity.BuilderattributedListPrice(Optional<String> attributedListPrice)Alias for calling Builder.attributedListPrice with attributedListPrice.orElse(null).final BetaAnalyticsSkillActivity.BuilderattributedListPrice(JsonField<String> attributedListPrice)Sets Builder.attributedListPrice to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderchatMetrics(BetaAnalyticsSkillChatMetrics chatMetrics)Claude.ai activity metrics for a single skill on a given day. final BetaAnalyticsSkillActivity.BuilderchatMetrics(JsonField<BetaAnalyticsSkillChatMetrics> chatMetrics)Sets Builder.chatMetrics to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderclaudeCodeMetrics(BetaAnalyticsSkillClaudeCodeMetrics claudeCodeMetrics)Claude Code activity metrics for a single skill on a given day. final BetaAnalyticsSkillActivity.BuilderclaudeCodeMetrics(JsonField<BetaAnalyticsSkillClaudeCodeMetrics> claudeCodeMetrics)Sets Builder.claudeCodeMetrics to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuildercoworkMetrics(BetaAnalyticsSkillCoworkMetrics coworkMetrics)Cowork activity metrics for a single skill on a given day. final BetaAnalyticsSkillActivity.BuildercoworkMetrics(JsonField<BetaAnalyticsSkillCoworkMetrics> coworkMetrics)Sets Builder.coworkMetrics to an arbitrary JSON value. final BetaAnalyticsSkillActivity.Buildercurrency(String currency)Currency for this row's monetary fields ( estimated_overage_spendandattributed_list_price), as an uppercase ISO-4217 code.final BetaAnalyticsSkillActivity.Buildercurrency(Optional<String> currency)Alias for calling Builder.currency with currency.orElse(null).final BetaAnalyticsSkillActivity.Buildercurrency(JsonField<String> currency)Sets Builder.currency to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderdistinctUserCount(Long distinctUserCount)Number of distinct users who used the skill on the requested day, or, in date-range mode, over the requested window — recomputed as an exact distinct count over the window's per-member daily rows, never a sum of per-day values. final BetaAnalyticsSkillActivity.BuilderdistinctUserCount(JsonField<Long> distinctUserCount)Sets Builder.distinctUserCount to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderenableCount(Long enableCount)Distinct accounts that enabled this skill on the requested day (claude. final BetaAnalyticsSkillActivity.BuilderenableCount(Long enableCount)Alias for Builder.enableCount. final BetaAnalyticsSkillActivity.BuilderenableCount(Optional<Long> enableCount)Alias for calling Builder.enableCount with enableCount.orElse(null).final BetaAnalyticsSkillActivity.BuilderenableCount(JsonField<Long> enableCount)Sets Builder.enableCount to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderestimatedOverageSpend(String estimatedOverageSpend)Estimated overage spend attributed to this skill, as a decimal string in the minor unit of currency(cents for USD; "1250" is $12.final BetaAnalyticsSkillActivity.BuilderestimatedOverageSpend(Optional<String> estimatedOverageSpend)Alias for calling Builder.estimatedOverageSpend with estimatedOverageSpend.orElse(null).final BetaAnalyticsSkillActivity.BuilderestimatedOverageSpend(JsonField<String> estimatedOverageSpend)Sets Builder.estimatedOverageSpend to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderinvocationCount(Long invocationCount)Total number of times this skill was invoked on the requested day (the skill analog of plugin invocation_count).final BetaAnalyticsSkillActivity.BuilderinvocationCount(Long invocationCount)Alias for Builder.invocationCount. final BetaAnalyticsSkillActivity.BuilderinvocationCount(Optional<Long> invocationCount)Alias for calling Builder.invocationCount with invocationCount.orElse(null).final BetaAnalyticsSkillActivity.BuilderinvocationCount(JsonField<Long> invocationCount)Sets Builder.invocationCount to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderofficeMetrics(BetaAnalyticsSkillOfficeMetrics officeMetrics)Office Agent activity metrics for a single skill on a given day, broken out by Office product. final BetaAnalyticsSkillActivity.BuilderofficeMetrics(JsonField<BetaAnalyticsSkillOfficeMetrics> officeMetrics)Sets Builder.officeMetrics to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuildershareStatus(BetaAnalyticsSkillActivity.ShareStatus shareStatus)Skill share status (claude. final BetaAnalyticsSkillActivity.BuildershareStatus(Optional<BetaAnalyticsSkillActivity.ShareStatus> shareStatus)Alias for calling Builder.shareStatus with shareStatus.orElse(null).final BetaAnalyticsSkillActivity.BuildershareStatus(JsonField<BetaAnalyticsSkillActivity.ShareStatus> shareStatus)Sets Builder.shareStatus to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderskillDisplayName(String skillDisplayName)Human-readable display name for rows whose skill_nameis an opaque skill id (user/organization skill types and plugin-delivered skills, whose user-defined names usage reports generally withhold).final BetaAnalyticsSkillActivity.BuilderskillDisplayName(Optional<String> skillDisplayName)Alias for calling Builder.skillDisplayName with skillDisplayName.orElse(null).final BetaAnalyticsSkillActivity.BuilderskillDisplayName(JsonField<String> skillDisplayName)Sets Builder.skillDisplayName to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderskillName(String skillName)Name of the skill final BetaAnalyticsSkillActivity.BuilderskillName(JsonField<String> skillName)Sets Builder.skillName to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderchatCoworkUnifiedMetrics(BetaAnalyticsSkillChatCoworkUnifiedMetrics chatCoworkUnifiedMetrics)Skill use recorded while members had Chat and Cowork unified (Cowork's features inside claude.ai chat) turned on, split into chat conversations and Cowork sessions. final BetaAnalyticsSkillActivity.BuilderchatCoworkUnifiedMetrics(Optional<BetaAnalyticsSkillChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)Alias for calling Builder.chatCoworkUnifiedMetrics with chatCoworkUnifiedMetrics.orElse(null).final BetaAnalyticsSkillActivity.BuilderchatCoworkUnifiedMetrics(JsonField<BetaAnalyticsSkillChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)Sets Builder.chatCoworkUnifiedMetrics to an arbitrary JSON value. final BetaAnalyticsSkillActivity.Builderproduct(String product)Product that produced this row's activity: one of chat,claude_code,cowork,office_agent, orchat_cowork_unified(Chat and Cowork unified).final BetaAnalyticsSkillActivity.Builderproduct(Optional<String> product)Alias for calling Builder.product with product.orElse(null).final BetaAnalyticsSkillActivity.Builderproduct(JsonField<String> product)Sets Builder.product to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderrbacGroupId(String rbacGroupId)Tagged RBAC group identifier ( rbac_group_...), matching the spend-limits API spelling.final BetaAnalyticsSkillActivity.BuilderrbacGroupId(Optional<String> rbacGroupId)Alias for calling Builder.rbacGroupId with rbacGroupId.orElse(null).final BetaAnalyticsSkillActivity.BuilderrbacGroupId(JsonField<String> rbacGroupId)Sets Builder.rbacGroupId to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderrbacGroupName(String rbacGroupName)Resolved RBAC group display name, alongside rbac_group_idwhen name resolution is available.final BetaAnalyticsSkillActivity.BuilderrbacGroupName(Optional<String> rbacGroupName)Alias for calling Builder.rbacGroupName with rbacGroupName.orElse(null).final BetaAnalyticsSkillActivity.BuilderrbacGroupName(JsonField<String> rbacGroupName)Sets Builder.rbacGroupName to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderuserId(String userId)Tagged user identifier (e.g. final BetaAnalyticsSkillActivity.BuilderuserId(Optional<String> userId)Alias for calling Builder.userId with userId.orElse(null).final BetaAnalyticsSkillActivity.BuilderuserId(JsonField<String> userId)Sets Builder.userId to an arbitrary JSON value. final BetaAnalyticsSkillActivity.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsSkillActivity.BuilderputAdditionalProperty(String key, JsonValue value)final BetaAnalyticsSkillActivity.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsSkillActivity.BuilderremoveAdditionalProperty(String key)final BetaAnalyticsSkillActivity.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaAnalyticsSkillActivitybuild()Returns an immutable instance of BetaAnalyticsSkillActivity. -
-
Method Detail
-
attributedListPrice
final BetaAnalyticsSkillActivity.Builder attributedListPrice(String attributedListPrice)
List-price (rate-card) value of the member requests attributed to this skill, as a decimal string in the minor unit of
currency(cents for USD), from Claude Code, Cowork, and Office Agent request-level attribution — the value of requests that involved the skill, not the skill's incremental cost. Unlikeestimated_overage_spendthis reflects usage value regardless of how it was funded — seat-covered usage counts — but it is undiscounted and does not tie to billed spend or the organization's spend reporting. claude.ai chat usage carries no request-level attribution and contributes nothing: the field is null onchatproduct rows and onoffice_agentproduct cuts dated before 2026-06-18 (the Office Agent attribution data-start), and on ungrouped rows it covers the Claude Code + Cowork + Office Agent share only (null when no attributable usage exists). Also null under the same conditions asestimated_overage_spend(spend reporting not enabled for this organization,office_agentproduct cuts before the 2026-06-18 data-start). "0" means attributable usage existed but none was attributed to this skill. Addable across days: date-range rollup mode returns the window's sum. Ongroup_by[]andfilter[]shapes both amounts can total below the ungrouped value for the same skill over the same date or range: spend attributed to a member–skill pair with no counted usage on that day is excluded from those cuts.
-
attributedListPrice
final BetaAnalyticsSkillActivity.Builder attributedListPrice(Optional<String> attributedListPrice)
Alias for calling Builder.attributedListPrice with
attributedListPrice.orElse(null).
-
attributedListPrice
final BetaAnalyticsSkillActivity.Builder attributedListPrice(JsonField<String> attributedListPrice)
Sets Builder.attributedListPrice to an arbitrary JSON value.
You should usually call Builder.attributedListPrice with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
chatMetrics
final BetaAnalyticsSkillActivity.Builder chatMetrics(BetaAnalyticsSkillChatMetrics chatMetrics)
Claude.ai activity metrics for a single skill on a given day.
-
chatMetrics
final BetaAnalyticsSkillActivity.Builder chatMetrics(JsonField<BetaAnalyticsSkillChatMetrics> chatMetrics)
Sets Builder.chatMetrics to an arbitrary JSON value.
You should usually call Builder.chatMetrics with a well-typed BetaAnalyticsSkillChatMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
claudeCodeMetrics
final BetaAnalyticsSkillActivity.Builder claudeCodeMetrics(BetaAnalyticsSkillClaudeCodeMetrics claudeCodeMetrics)
Claude Code activity metrics for a single skill on a given day.
-
claudeCodeMetrics
final BetaAnalyticsSkillActivity.Builder claudeCodeMetrics(JsonField<BetaAnalyticsSkillClaudeCodeMetrics> claudeCodeMetrics)
Sets Builder.claudeCodeMetrics to an arbitrary JSON value.
You should usually call Builder.claudeCodeMetrics with a well-typed BetaAnalyticsSkillClaudeCodeMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
coworkMetrics
final BetaAnalyticsSkillActivity.Builder coworkMetrics(BetaAnalyticsSkillCoworkMetrics coworkMetrics)
Cowork activity metrics for a single skill on a given day.
-
coworkMetrics
final BetaAnalyticsSkillActivity.Builder coworkMetrics(JsonField<BetaAnalyticsSkillCoworkMetrics> coworkMetrics)
Sets Builder.coworkMetrics to an arbitrary JSON value.
You should usually call Builder.coworkMetrics with a well-typed BetaAnalyticsSkillCoworkMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
currency
final BetaAnalyticsSkillActivity.Builder currency(String currency)
Currency for this row's monetary fields (
estimated_overage_spendandattributed_list_price), as an uppercase ISO-4217 code. Always "USD" when either amount is populated; null whenever both amounts are null.
-
currency
final BetaAnalyticsSkillActivity.Builder currency(Optional<String> currency)
Alias for calling Builder.currency with
currency.orElse(null).
-
currency
final BetaAnalyticsSkillActivity.Builder currency(JsonField<String> currency)
Sets Builder.currency to an arbitrary JSON value.
You should usually call Builder.currency with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
distinctUserCount
final BetaAnalyticsSkillActivity.Builder distinctUserCount(Long distinctUserCount)
Number of distinct users who used the skill on the requested day, or, in date-range mode, over the requested window — recomputed as an exact distinct count over the window's per-member daily rows, never a sum of per-day values. A skill counts as used only when it is explicitly activated — the model (or the user, via the skill's slash command) invokes it, reading its instructions into context as part of that activation. Skills that are merely installed or listed as available, or whose content reaches the context without an activation (preloaded, hook-injected, or read as a plain file), are not counted.
-
distinctUserCount
final BetaAnalyticsSkillActivity.Builder distinctUserCount(JsonField<Long> distinctUserCount)
Sets Builder.distinctUserCount to an arbitrary JSON value.
You should usually call Builder.distinctUserCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
enableCount
final BetaAnalyticsSkillActivity.Builder enableCount(Long enableCount)
Distinct accounts that enabled this skill on the requested day (claude.ai only — the skill analog of plugin
install_count). The count is org-wide: null when enable reporting is not enabled for this organization, or when the request scopes touser_id/rbac_group_id/productviagroup_by[]orfilter[](an org-wide count would be misleading on per-cut rows). A distinct count, not an event count: summing across days double-counts members who enable the skill on more than one day, so it is also null in date-range rollup mode (starting_date/ending_date).
-
enableCount
final BetaAnalyticsSkillActivity.Builder enableCount(Long enableCount)
Alias for Builder.enableCount.
This unboxed primitive overload exists for backwards compatibility.
-
enableCount
final BetaAnalyticsSkillActivity.Builder enableCount(Optional<Long> enableCount)
Alias for calling Builder.enableCount with
enableCount.orElse(null).
-
enableCount
final BetaAnalyticsSkillActivity.Builder enableCount(JsonField<Long> enableCount)
Sets Builder.enableCount to an arbitrary JSON value.
You should usually call Builder.enableCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
estimatedOverageSpend
final BetaAnalyticsSkillActivity.Builder estimatedOverageSpend(String estimatedOverageSpend)
Estimated overage spend attributed to this skill, as a decimal string in the minor unit of
currency(cents for USD; "1250" is$12.50, fractional cents possible) — an allocation of each member's daily post-discount, pre-credit metered overage spend (the same cost basis as the organization's spend reporting and the Cost & Usage API, so per-skill figures are directly comparable; spend with no skill attribution — including any member-day without skill invocations — is not represented, so skill rows sum to at most those totals) across the skills the member used. Overage only: usage covered by included seat allowances bills nothing and allocates $
0 here — seeattributed_list_pricefor the funding-independent usage-value companion. Claude Code, Cowork, and Office Agent spend use request-level skill attribution; claude.ai chat spend is approximated proportionally to skill-invoking messages. An estimate, not a billing number — and the cost of the requests/messages that involved the skill, not the skill's incremental cost (the same request would still have cost something without the skill active). "0" means no overage spend was attributed; null when spend reporting is not enabled for this organization, onoffice_agentproduct cuts dated before 2026-06-18 (the Office Agent attribution data-start). Addable across days: date-range rollup mode (starting_date/ending_date) returns the window's sum. Withgroup_by[]=user_ideach row carries the user's own attributed spend. Ongroup_by[]andfilter[]shapes both amounts can total below the ungrouped value for the same skill over the same date or range: spend attributed to a member–skill pair with no counted usage on that day is excluded from those cuts.
-
estimatedOverageSpend
final BetaAnalyticsSkillActivity.Builder estimatedOverageSpend(Optional<String> estimatedOverageSpend)
Alias for calling Builder.estimatedOverageSpend with
estimatedOverageSpend.orElse(null).
-
estimatedOverageSpend
final BetaAnalyticsSkillActivity.Builder estimatedOverageSpend(JsonField<String> estimatedOverageSpend)
Sets Builder.estimatedOverageSpend to an arbitrary JSON value.
You should usually call Builder.estimatedOverageSpend with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
invocationCount
final BetaAnalyticsSkillActivity.Builder invocationCount(Long invocationCount)
Total number of times this skill was invoked on the requested day (the skill analog of plugin
invocation_count). Unlikedistinct_user_count— which answers '# of users' — this is the true '# of uses'. A skill counts as used only when it is explicitly activated — the model (or the user, via the skill's slash command) invokes it, reading its instructions into context as part of that activation. Skills that are merely installed or listed as available, or whose content reaches the context without an activation (preloaded, hook-injected, or read as a plain file), are not counted. Null when invocation reporting is not enabled for this organization. Sum across a date range for total uses in the window — date-range rollup mode (starting_date/ending_date) returns this sum directly.
-
invocationCount
final BetaAnalyticsSkillActivity.Builder invocationCount(Long invocationCount)
Alias for Builder.invocationCount.
This unboxed primitive overload exists for backwards compatibility.
-
invocationCount
final BetaAnalyticsSkillActivity.Builder invocationCount(Optional<Long> invocationCount)
Alias for calling Builder.invocationCount with
invocationCount.orElse(null).
-
invocationCount
final BetaAnalyticsSkillActivity.Builder invocationCount(JsonField<Long> invocationCount)
Sets Builder.invocationCount to an arbitrary JSON value.
You should usually call Builder.invocationCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
officeMetrics
final BetaAnalyticsSkillActivity.Builder officeMetrics(BetaAnalyticsSkillOfficeMetrics officeMetrics)
Office Agent activity metrics for a single skill on a given day, broken out by Office product.
-
officeMetrics
final BetaAnalyticsSkillActivity.Builder officeMetrics(JsonField<BetaAnalyticsSkillOfficeMetrics> officeMetrics)
Sets Builder.officeMetrics to an arbitrary JSON value.
You should usually call Builder.officeMetrics with a well-typed BetaAnalyticsSkillOfficeMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
shareStatus
final BetaAnalyticsSkillActivity.Builder shareStatus(BetaAnalyticsSkillActivity.ShareStatus shareStatus)
Skill share status (claude.ai only): one of
private,organization, orpublic. Null for skills used only in Claude Code or Office (no per-skill share-status concept) and when share-status reporting is not yet available for the organization. Filterable viafilter[]=share_status:{value}.
-
shareStatus
final BetaAnalyticsSkillActivity.Builder shareStatus(Optional<BetaAnalyticsSkillActivity.ShareStatus> shareStatus)
Alias for calling Builder.shareStatus with
shareStatus.orElse(null).
-
shareStatus
final BetaAnalyticsSkillActivity.Builder shareStatus(JsonField<BetaAnalyticsSkillActivity.ShareStatus> shareStatus)
Sets Builder.shareStatus to an arbitrary JSON value.
You should usually call Builder.shareStatus with a well-typed ShareStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skillDisplayName
final BetaAnalyticsSkillActivity.Builder skillDisplayName(String skillDisplayName)
Human-readable display name for rows whose
skill_nameis an opaque skill id (user/organization skill types and plugin-delivered skills, whose user-defined names usage reports generally withhold). Organization-shared skills and skills delivered by the organization's own plugins (its plugin marketplaces and its library) resolve; plugin skill names are shown without their 'plugin:' prefix. The literal 'unknown' bucket row gets a fixed 'Unknown skill' label. For a member's own skill (private or personal-plugin) it is null, except when the skill's owner used it from Claude Code or Cowork in the requested period: then it shows the name that client reported at the time. Apart from that, the names of members' own skills are not disclosed to analytics-key holders. Also null for Anthropic-provided plugin skills (not resolved), for an organization skill or plugin whose name can no longer be found (for example, one since deleted), whenskill_nameis already a display name, or when display-name resolution is not enabled for this organization.
-
skillDisplayName
final BetaAnalyticsSkillActivity.Builder skillDisplayName(Optional<String> skillDisplayName)
Alias for calling Builder.skillDisplayName with
skillDisplayName.orElse(null).
-
skillDisplayName
final BetaAnalyticsSkillActivity.Builder skillDisplayName(JsonField<String> skillDisplayName)
Sets Builder.skillDisplayName to an arbitrary JSON value.
You should usually call Builder.skillDisplayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skillName
final BetaAnalyticsSkillActivity.Builder skillName(String skillName)
Name of the skill
-
skillName
final BetaAnalyticsSkillActivity.Builder skillName(JsonField<String> skillName)
Sets Builder.skillName to an arbitrary JSON value.
You should usually call Builder.skillName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
chatCoworkUnifiedMetrics
final BetaAnalyticsSkillActivity.Builder chatCoworkUnifiedMetrics(BetaAnalyticsSkillChatCoworkUnifiedMetrics chatCoworkUnifiedMetrics)
Skill use recorded while members had Chat and Cowork unified (Cowork's features inside claude.ai chat) turned on, split into chat conversations and Cowork sessions. A count is null in date-range mode where it cannot be computed. Omitted from the response where Chat and Cowork unified is not available.
-
chatCoworkUnifiedMetrics
final BetaAnalyticsSkillActivity.Builder chatCoworkUnifiedMetrics(Optional<BetaAnalyticsSkillChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)
Alias for calling Builder.chatCoworkUnifiedMetrics with
chatCoworkUnifiedMetrics.orElse(null).
-
chatCoworkUnifiedMetrics
final BetaAnalyticsSkillActivity.Builder chatCoworkUnifiedMetrics(JsonField<BetaAnalyticsSkillChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)
Sets Builder.chatCoworkUnifiedMetrics to an arbitrary JSON value.
You should usually call Builder.chatCoworkUnifiedMetrics with a well-typed BetaAnalyticsSkillChatCoworkUnifiedMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
product
final BetaAnalyticsSkillActivity.Builder product(String product)
Product that produced this row's activity: one of
chat,claude_code,cowork,office_agent, orchat_cowork_unified(Chat and Cowork unified). These are the canonical Cost & Usage product names; anoffice_agentrow's per-surface breakdown is in itsoffice_metrics. On/pluginsonlycowork,claude_codeandchat_cowork_unifiedoccur (the only surfaces with plugin attribution); on/artifactsonlychat,claude_code,coworkandchat_cowork_unifiedoccur (the surfaces that create artifacts);/apps/chat/projectsdoes not support the product dimension (aproductentry ingroup_by[]orfilter[]there is rejected). Present only when the request grouped byproduct.
-
product
final BetaAnalyticsSkillActivity.Builder product(Optional<String> product)
Alias for calling Builder.product with
product.orElse(null).
-
product
final BetaAnalyticsSkillActivity.Builder product(JsonField<String> product)
Sets Builder.product to an arbitrary JSON value.
You should usually call Builder.product with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
rbacGroupId
final BetaAnalyticsSkillActivity.Builder rbacGroupId(String rbacGroupId)
Tagged RBAC group identifier (
rbac_group_...), matching the spend-limits API spelling. Present only when the request grouped byrbac_group_id.
-
rbacGroupId
final BetaAnalyticsSkillActivity.Builder rbacGroupId(Optional<String> rbacGroupId)
Alias for calling Builder.rbacGroupId with
rbacGroupId.orElse(null).
-
rbacGroupId
final BetaAnalyticsSkillActivity.Builder rbacGroupId(JsonField<String> rbacGroupId)
Sets Builder.rbacGroupId to an arbitrary JSON value.
You should usually call Builder.rbacGroupId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
rbacGroupName
final BetaAnalyticsSkillActivity.Builder rbacGroupName(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.
-
rbacGroupName
final BetaAnalyticsSkillActivity.Builder rbacGroupName(Optional<String> rbacGroupName)
Alias for calling Builder.rbacGroupName with
rbacGroupName.orElse(null).
-
rbacGroupName
final BetaAnalyticsSkillActivity.Builder rbacGroupName(JsonField<String> rbacGroupName)
Sets Builder.rbacGroupName to an arbitrary JSON value.
You should usually call Builder.rbacGroupName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userId
final BetaAnalyticsSkillActivity.Builder userId(String userId)
Tagged user identifier (e.g.
user_...). Present only when the request grouped byuser_id.
-
userId
final BetaAnalyticsSkillActivity.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final BetaAnalyticsSkillActivity.Builder userId(JsonField<String> userId)
Sets Builder.userId to an arbitrary JSON value.
You should usually call Builder.userId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaAnalyticsSkillActivity.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaAnalyticsSkillActivity.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaAnalyticsSkillActivity.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaAnalyticsSkillActivity.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaAnalyticsSkillActivity.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaAnalyticsSkillActivity build()
Returns an immutable instance of BetaAnalyticsSkillActivity.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.attributedListPrice() .chatMetrics() .claudeCodeMetrics() .coworkMetrics() .currency() .distinctUserCount() .enableCount() .estimatedOverageSpend() .invocationCount() .officeMetrics() .shareStatus() .skillDisplayName() .skillName()
-
-
-
-