Class BetaAnalyticsConnectorActivity.Builder
-
- All Implemented Interfaces:
public final class BetaAnalyticsConnectorActivity.BuilderA builder for BetaAnalyticsConnectorActivity.
-
-
Method Summary
Modifier and Type Method Description final BetaAnalyticsConnectorActivity.BuilderchatMetrics(BetaAnalyticsConnectorChatMetrics chatMetrics)Claude.ai activity metrics for a single connector on a given day. final BetaAnalyticsConnectorActivity.BuilderchatMetrics(JsonField<BetaAnalyticsConnectorChatMetrics> chatMetrics)Sets Builder.chatMetrics to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderclaudeCodeMetrics(BetaAnalyticsConnectorClaudeCodeMetrics claudeCodeMetrics)Claude Code activity metrics for a single connector on a given day. final BetaAnalyticsConnectorActivity.BuilderclaudeCodeMetrics(JsonField<BetaAnalyticsConnectorClaudeCodeMetrics> claudeCodeMetrics)Sets Builder.claudeCodeMetrics to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderconnectorDisplayName(String connectorDisplayName)Human-readable display name for rows whose connector_nameis an opaque connector id rather than a readable name, resolved at request time from the organization's connectors (including connectors that have since been removed).final BetaAnalyticsConnectorActivity.BuilderconnectorDisplayName(Optional<String> connectorDisplayName)Alias for calling Builder.connectorDisplayName with connectorDisplayName.orElse(null).final BetaAnalyticsConnectorActivity.BuilderconnectorDisplayName(JsonField<String> connectorDisplayName)Sets Builder.connectorDisplayName to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderconnectorName(String connectorName)Name of the connector. final BetaAnalyticsConnectorActivity.BuilderconnectorName(JsonField<String> connectorName)Sets Builder.connectorName to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuildercoworkMetrics(BetaAnalyticsConnectorCoworkMetrics coworkMetrics)Cowork activity metrics for a single connector on a given day. final BetaAnalyticsConnectorActivity.BuildercoworkMetrics(JsonField<BetaAnalyticsConnectorCoworkMetrics> coworkMetrics)Sets Builder.coworkMetrics to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderdistinctUserCount(Long distinctUserCount)Number of distinct users who used the connector 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 BetaAnalyticsConnectorActivity.BuilderdistinctUserCount(JsonField<Long> distinctUserCount)Sets Builder.distinctUserCount to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderindividualAuthDistinctUserCount(Long individualAuthDistinctUserCount)Number of distinct users whose use of this connector on the requested day ran on their own individual credential, connected through their own consent flow. final BetaAnalyticsConnectorActivity.BuilderindividualAuthDistinctUserCount(Long individualAuthDistinctUserCount)Alias for Builder.individualAuthDistinctUserCount. final BetaAnalyticsConnectorActivity.BuilderindividualAuthDistinctUserCount(Optional<Long> individualAuthDistinctUserCount)Alias for calling Builder.individualAuthDistinctUserCount with individualAuthDistinctUserCount.orElse(null).final BetaAnalyticsConnectorActivity.BuilderindividualAuthDistinctUserCount(JsonField<Long> individualAuthDistinctUserCount)Sets Builder.individualAuthDistinctUserCount to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuildermanagedAuthDistinctUserCount(Long managedAuthDistinctUserCount)Number of distinct users whose use of this connector on the requested day ran on Enterprise Managed Auth (an organization-managed credential provisioned through the organization's identity provider), read from the token record each request used. final BetaAnalyticsConnectorActivity.BuildermanagedAuthDistinctUserCount(Long managedAuthDistinctUserCount)Alias for Builder.managedAuthDistinctUserCount. final BetaAnalyticsConnectorActivity.BuildermanagedAuthDistinctUserCount(Optional<Long> managedAuthDistinctUserCount)Alias for calling Builder.managedAuthDistinctUserCount with managedAuthDistinctUserCount.orElse(null).final BetaAnalyticsConnectorActivity.BuildermanagedAuthDistinctUserCount(JsonField<Long> managedAuthDistinctUserCount)Sets Builder.managedAuthDistinctUserCount to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderofficeMetrics(BetaAnalyticsConnectorOfficeMetrics officeMetrics)Office Agent activity metrics for a single connector on a given day, broken out by Office product. final BetaAnalyticsConnectorActivity.BuilderofficeMetrics(JsonField<BetaAnalyticsConnectorOfficeMetrics> officeMetrics)Sets Builder.officeMetrics to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderreadCallCount(Long readCallCount)Number of connector tool calls on the requested day whose trusted read-only annotation marked them read-only. final BetaAnalyticsConnectorActivity.BuilderreadCallCount(Long readCallCount)Alias for Builder.readCallCount. final BetaAnalyticsConnectorActivity.BuilderreadCallCount(Optional<Long> readCallCount)Alias for calling Builder.readCallCount with readCallCount.orElse(null).final BetaAnalyticsConnectorActivity.BuilderreadCallCount(JsonField<Long> readCallCount)Sets Builder.readCallCount to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderunclassifiedCallCount(Long unclassifiedCallCount)Number of connector tool calls on the requested day with no trusted read-only annotation — the annotation is optional in the MCP spec and is discarded when connector access controls are active, so unclassified calls are common. final BetaAnalyticsConnectorActivity.BuilderunclassifiedCallCount(Long unclassifiedCallCount)Alias for Builder.unclassifiedCallCount. final BetaAnalyticsConnectorActivity.BuilderunclassifiedCallCount(Optional<Long> unclassifiedCallCount)Alias for calling Builder.unclassifiedCallCount with unclassifiedCallCount.orElse(null).final BetaAnalyticsConnectorActivity.BuilderunclassifiedCallCount(JsonField<Long> unclassifiedCallCount)Sets Builder.unclassifiedCallCount to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderwriteCallCount(Long writeCallCount)Number of connector tool calls on the requested day whose trusted read-only annotation marked them not read-only. final BetaAnalyticsConnectorActivity.BuilderwriteCallCount(Long writeCallCount)Alias for Builder.writeCallCount. final BetaAnalyticsConnectorActivity.BuilderwriteCallCount(Optional<Long> writeCallCount)Alias for calling Builder.writeCallCount with writeCallCount.orElse(null).final BetaAnalyticsConnectorActivity.BuilderwriteCallCount(JsonField<Long> writeCallCount)Sets Builder.writeCallCount to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderchatCoworkUnifiedMetrics(BetaAnalyticsConnectorChatCoworkUnifiedMetrics chatCoworkUnifiedMetrics)Connector 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 BetaAnalyticsConnectorActivity.BuilderchatCoworkUnifiedMetrics(Optional<BetaAnalyticsConnectorChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)Alias for calling Builder.chatCoworkUnifiedMetrics with chatCoworkUnifiedMetrics.orElse(null).final BetaAnalyticsConnectorActivity.BuilderchatCoworkUnifiedMetrics(JsonField<BetaAnalyticsConnectorChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)Sets Builder.chatCoworkUnifiedMetrics to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.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 BetaAnalyticsConnectorActivity.Builderproduct(Optional<String> product)Alias for calling Builder.product with product.orElse(null).final BetaAnalyticsConnectorActivity.Builderproduct(JsonField<String> product)Sets Builder.product to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderrbacGroupId(String rbacGroupId)Tagged RBAC group identifier ( rbac_group_...), matching the spend-limits API spelling.final BetaAnalyticsConnectorActivity.BuilderrbacGroupId(Optional<String> rbacGroupId)Alias for calling Builder.rbacGroupId with rbacGroupId.orElse(null).final BetaAnalyticsConnectorActivity.BuilderrbacGroupId(JsonField<String> rbacGroupId)Sets Builder.rbacGroupId to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderrbacGroupName(String rbacGroupName)Resolved RBAC group display name, alongside rbac_group_idwhen name resolution is available.final BetaAnalyticsConnectorActivity.BuilderrbacGroupName(Optional<String> rbacGroupName)Alias for calling Builder.rbacGroupName with rbacGroupName.orElse(null).final BetaAnalyticsConnectorActivity.BuilderrbacGroupName(JsonField<String> rbacGroupName)Sets Builder.rbacGroupName to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderuserId(String userId)Tagged user identifier (e.g. final BetaAnalyticsConnectorActivity.BuilderuserId(Optional<String> userId)Alias for calling Builder.userId with userId.orElse(null).final BetaAnalyticsConnectorActivity.BuilderuserId(JsonField<String> userId)Sets Builder.userId to an arbitrary JSON value. final BetaAnalyticsConnectorActivity.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsConnectorActivity.BuilderputAdditionalProperty(String key, JsonValue value)final BetaAnalyticsConnectorActivity.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaAnalyticsConnectorActivity.BuilderremoveAdditionalProperty(String key)final BetaAnalyticsConnectorActivity.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaAnalyticsConnectorActivitybuild()Returns an immutable instance of BetaAnalyticsConnectorActivity. -
-
Method Detail
-
chatMetrics
final BetaAnalyticsConnectorActivity.Builder chatMetrics(BetaAnalyticsConnectorChatMetrics chatMetrics)
Claude.ai activity metrics for a single connector on a given day.
-
chatMetrics
final BetaAnalyticsConnectorActivity.Builder chatMetrics(JsonField<BetaAnalyticsConnectorChatMetrics> chatMetrics)
Sets Builder.chatMetrics to an arbitrary JSON value.
You should usually call Builder.chatMetrics with a well-typed BetaAnalyticsConnectorChatMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
claudeCodeMetrics
final BetaAnalyticsConnectorActivity.Builder claudeCodeMetrics(BetaAnalyticsConnectorClaudeCodeMetrics claudeCodeMetrics)
Claude Code activity metrics for a single connector on a given day.
-
claudeCodeMetrics
final BetaAnalyticsConnectorActivity.Builder claudeCodeMetrics(JsonField<BetaAnalyticsConnectorClaudeCodeMetrics> claudeCodeMetrics)
Sets Builder.claudeCodeMetrics to an arbitrary JSON value.
You should usually call Builder.claudeCodeMetrics with a well-typed BetaAnalyticsConnectorClaudeCodeMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
connectorDisplayName
final BetaAnalyticsConnectorActivity.Builder connectorDisplayName(String connectorDisplayName)
Human-readable display name for rows whose
connector_nameis an opaque connector id rather than a readable name, resolved at request time from the organization's connectors (including connectors that have since been removed).connector_nameremains the row's stable key for sorting and pagination, andfilter[]=connector_name:{value}also matches these rows by display name. Display names are not unique, and the same connector's claude.ai usage can appear under a separate row with a readableconnector_name. Null whenconnector_nameis already a readable name, when the id cannot be resolved to one of the organization's connectors, or when display-name resolution is not enabled for this organization.
-
connectorDisplayName
final BetaAnalyticsConnectorActivity.Builder connectorDisplayName(Optional<String> connectorDisplayName)
Alias for calling Builder.connectorDisplayName with
connectorDisplayName.orElse(null).
-
connectorDisplayName
final BetaAnalyticsConnectorActivity.Builder connectorDisplayName(JsonField<String> connectorDisplayName)
Sets Builder.connectorDisplayName to an arbitrary JSON value.
You should usually call Builder.connectorDisplayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
connectorName
final BetaAnalyticsConnectorActivity.Builder connectorName(String connectorName)
Name of the connector. Some rows carry an opaque connector id here instead of a readable name;
connector_display_nameholds the resolved name for those rows.
-
connectorName
final BetaAnalyticsConnectorActivity.Builder connectorName(JsonField<String> connectorName)
Sets Builder.connectorName to an arbitrary JSON value.
You should usually call Builder.connectorName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
coworkMetrics
final BetaAnalyticsConnectorActivity.Builder coworkMetrics(BetaAnalyticsConnectorCoworkMetrics coworkMetrics)
Cowork activity metrics for a single connector on a given day.
-
coworkMetrics
final BetaAnalyticsConnectorActivity.Builder coworkMetrics(JsonField<BetaAnalyticsConnectorCoworkMetrics> coworkMetrics)
Sets Builder.coworkMetrics to an arbitrary JSON value.
You should usually call Builder.coworkMetrics with a well-typed BetaAnalyticsConnectorCoworkMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
distinctUserCount
final BetaAnalyticsConnectorActivity.Builder distinctUserCount(Long distinctUserCount)
Number of distinct users who used the connector 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.
-
distinctUserCount
final BetaAnalyticsConnectorActivity.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.
-
individualAuthDistinctUserCount
final BetaAnalyticsConnectorActivity.Builder individualAuthDistinctUserCount(Long individualAuthDistinctUserCount)
Number of distinct users whose use of this connector on the requested day ran on their own individual credential, connected through their own consent flow. Companion bucket to
managed_auth_distinct_user_count, which carries the measurement, attribution, and null rules. Users whose requests used no stored credential count in neither bucket.
-
individualAuthDistinctUserCount
final BetaAnalyticsConnectorActivity.Builder individualAuthDistinctUserCount(Long individualAuthDistinctUserCount)
Alias for Builder.individualAuthDistinctUserCount.
This unboxed primitive overload exists for backwards compatibility.
-
individualAuthDistinctUserCount
final BetaAnalyticsConnectorActivity.Builder individualAuthDistinctUserCount(Optional<Long> individualAuthDistinctUserCount)
Alias for calling Builder.individualAuthDistinctUserCount with
individualAuthDistinctUserCount.orElse(null).
-
individualAuthDistinctUserCount
final BetaAnalyticsConnectorActivity.Builder individualAuthDistinctUserCount(JsonField<Long> individualAuthDistinctUserCount)
Sets Builder.individualAuthDistinctUserCount to an arbitrary JSON value.
You should usually call Builder.individualAuthDistinctUserCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
managedAuthDistinctUserCount
final BetaAnalyticsConnectorActivity.Builder managedAuthDistinctUserCount(Long managedAuthDistinctUserCount)
Number of distinct users whose use of this connector on the requested day ran on Enterprise Managed Auth (an organization-managed credential provisioned through the organization's identity provider), read from the token record each request used. Null, never 0, when managed-auth reporting is not enabled for the organization, the value cannot be attributed to the row, no credentialed requests and no managed-token mint events (a managed credential being provisioned for a user's use of the connector) were observed that day, or the day predates 2026-07-01, the first day the backing data exists (forward-only data, no backfill). When credentialed requests or mint events were observed and attributed, both managed-auth fields populate, reporting 0 for a bucket with no users; the two counts are independent, not a partition — a user whose requests that day used both kinds of credential counts in both. Mint events carry user but not surface attribution, so they count as observed auth activity on
user_idandrbac_group_idcuts — attributed to the user the credential was provisioned for — but never on a cut that referencesproduct(group or filter). Date-range rollup mode (starting_date/ending_date) computes both fields exactly over the window — distinct users with at least one qualifying day — when the whole window starts on or after 2026-07-01, with the null-versus-0 and mint-event rules applying with the window in place of the day; a range starting earlier reports every managed-auth field as null, never a partial-window value.
-
managedAuthDistinctUserCount
final BetaAnalyticsConnectorActivity.Builder managedAuthDistinctUserCount(Long managedAuthDistinctUserCount)
Alias for Builder.managedAuthDistinctUserCount.
This unboxed primitive overload exists for backwards compatibility.
-
managedAuthDistinctUserCount
final BetaAnalyticsConnectorActivity.Builder managedAuthDistinctUserCount(Optional<Long> managedAuthDistinctUserCount)
Alias for calling Builder.managedAuthDistinctUserCount with
managedAuthDistinctUserCount.orElse(null).
-
managedAuthDistinctUserCount
final BetaAnalyticsConnectorActivity.Builder managedAuthDistinctUserCount(JsonField<Long> managedAuthDistinctUserCount)
Sets Builder.managedAuthDistinctUserCount to an arbitrary JSON value.
You should usually call Builder.managedAuthDistinctUserCount 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 BetaAnalyticsConnectorActivity.Builder officeMetrics(BetaAnalyticsConnectorOfficeMetrics officeMetrics)
Office Agent activity metrics for a single connector on a given day, broken out by Office product.
-
officeMetrics
final BetaAnalyticsConnectorActivity.Builder officeMetrics(JsonField<BetaAnalyticsConnectorOfficeMetrics> officeMetrics)
Sets Builder.officeMetrics to an arbitrary JSON value.
You should usually call Builder.officeMetrics with a well-typed BetaAnalyticsConnectorOfficeMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
readCallCount
final BetaAnalyticsConnectorActivity.Builder readCallCount(Long readCallCount)
Number of connector tool calls on the requested day whose trusted read-only annotation marked them read-only. Call count, not distinct users. Every call recorded on a classified surface lands in exactly one of
read_call_count,write_call_count, orunclassified_call_count, so the three sum to the day's classified calls. Classification is forward-only per surface: claude.ai from 2026-06-01, Claude Code from 2026-05-30, Claude in Office from 2026-05-29, Cowork from 2026-06-02 (Cowork clients predating annotation forwarding land inunclassified_call_count). Null, never 0, when the value cannot be stated: the read/write split is not enabled for this organization, or the day predates 2026-05-29. For a date-range total, sum the per-day values, but treat a window that extends before 2026-05-29 as null rather than summing only its covered days — date-range rollup mode (starting_date/ending_date) applies both rules server-side.
-
readCallCount
final BetaAnalyticsConnectorActivity.Builder readCallCount(Long readCallCount)
Alias for Builder.readCallCount.
This unboxed primitive overload exists for backwards compatibility.
-
readCallCount
final BetaAnalyticsConnectorActivity.Builder readCallCount(Optional<Long> readCallCount)
Alias for calling Builder.readCallCount with
readCallCount.orElse(null).
-
readCallCount
final BetaAnalyticsConnectorActivity.Builder readCallCount(JsonField<Long> readCallCount)
Sets Builder.readCallCount to an arbitrary JSON value.
You should usually call Builder.readCallCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
unclassifiedCallCount
final BetaAnalyticsConnectorActivity.Builder unclassifiedCallCount(Long unclassifiedCallCount)
Number of connector tool calls on the requested day with no trusted read-only annotation — the annotation is optional in the MCP spec and is discarded when connector access controls are active, so unclassified calls are common. This field shows how much of the day's classified activity the read/write split actually covers. Call count, not distinct users. One of the three call-classification buckets; see
read_call_countfor the per-surface data-start dates, null conditions, and date-range guidance.
-
unclassifiedCallCount
final BetaAnalyticsConnectorActivity.Builder unclassifiedCallCount(Long unclassifiedCallCount)
Alias for Builder.unclassifiedCallCount.
This unboxed primitive overload exists for backwards compatibility.
-
unclassifiedCallCount
final BetaAnalyticsConnectorActivity.Builder unclassifiedCallCount(Optional<Long> unclassifiedCallCount)
Alias for calling Builder.unclassifiedCallCount with
unclassifiedCallCount.orElse(null).
-
unclassifiedCallCount
final BetaAnalyticsConnectorActivity.Builder unclassifiedCallCount(JsonField<Long> unclassifiedCallCount)
Sets Builder.unclassifiedCallCount to an arbitrary JSON value.
You should usually call Builder.unclassifiedCallCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
writeCallCount
final BetaAnalyticsConnectorActivity.Builder writeCallCount(Long writeCallCount)
Number of connector tool calls on the requested day whose trusted read-only annotation marked them not read-only. Call count, not distinct users. One of the three call-classification buckets; see
read_call_countfor the per-surface data-start dates, null conditions, and date-range guidance.
-
writeCallCount
final BetaAnalyticsConnectorActivity.Builder writeCallCount(Long writeCallCount)
Alias for Builder.writeCallCount.
This unboxed primitive overload exists for backwards compatibility.
-
writeCallCount
final BetaAnalyticsConnectorActivity.Builder writeCallCount(Optional<Long> writeCallCount)
Alias for calling Builder.writeCallCount with
writeCallCount.orElse(null).
-
writeCallCount
final BetaAnalyticsConnectorActivity.Builder writeCallCount(JsonField<Long> writeCallCount)
Sets Builder.writeCallCount to an arbitrary JSON value.
You should usually call Builder.writeCallCount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
chatCoworkUnifiedMetrics
final BetaAnalyticsConnectorActivity.Builder chatCoworkUnifiedMetrics(BetaAnalyticsConnectorChatCoworkUnifiedMetrics chatCoworkUnifiedMetrics)
Connector 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 BetaAnalyticsConnectorActivity.Builder chatCoworkUnifiedMetrics(Optional<BetaAnalyticsConnectorChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)
Alias for calling Builder.chatCoworkUnifiedMetrics with
chatCoworkUnifiedMetrics.orElse(null).
-
chatCoworkUnifiedMetrics
final BetaAnalyticsConnectorActivity.Builder chatCoworkUnifiedMetrics(JsonField<BetaAnalyticsConnectorChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)
Sets Builder.chatCoworkUnifiedMetrics to an arbitrary JSON value.
You should usually call Builder.chatCoworkUnifiedMetrics with a well-typed BetaAnalyticsConnectorChatCoworkUnifiedMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
product
final BetaAnalyticsConnectorActivity.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 BetaAnalyticsConnectorActivity.Builder product(Optional<String> product)
Alias for calling Builder.product with
product.orElse(null).
-
product
final BetaAnalyticsConnectorActivity.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 BetaAnalyticsConnectorActivity.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 BetaAnalyticsConnectorActivity.Builder rbacGroupId(Optional<String> rbacGroupId)
Alias for calling Builder.rbacGroupId with
rbacGroupId.orElse(null).
-
rbacGroupId
final BetaAnalyticsConnectorActivity.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 BetaAnalyticsConnectorActivity.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 BetaAnalyticsConnectorActivity.Builder rbacGroupName(Optional<String> rbacGroupName)
Alias for calling Builder.rbacGroupName with
rbacGroupName.orElse(null).
-
rbacGroupName
final BetaAnalyticsConnectorActivity.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 BetaAnalyticsConnectorActivity.Builder userId(String userId)
Tagged user identifier (e.g.
user_...). Present only when the request grouped byuser_id.
-
userId
final BetaAnalyticsConnectorActivity.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final BetaAnalyticsConnectorActivity.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 BetaAnalyticsConnectorActivity.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaAnalyticsConnectorActivity.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaAnalyticsConnectorActivity.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaAnalyticsConnectorActivity.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaAnalyticsConnectorActivity.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaAnalyticsConnectorActivity build()
Returns an immutable instance of BetaAnalyticsConnectorActivity.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.chatMetrics() .claudeCodeMetrics() .connectorDisplayName() .connectorName() .coworkMetrics() .distinctUserCount() .individualAuthDistinctUserCount() .managedAuthDistinctUserCount() .officeMetrics() .readCallCount() .unclassifiedCallCount() .writeCallCount()
-
-
-
-