Class AnalyticsConnectorActivity.Builder
-
- All Implemented Interfaces:
public final class AnalyticsConnectorActivity.BuilderA builder for AnalyticsConnectorActivity.
-
-
Method Summary
Modifier and Type Method Description final AnalyticsConnectorActivity.BuilderchatMetrics(AnalyticsConnectorChatMetrics chatMetrics)Claude.ai activity metrics for a single connector on a given day. final AnalyticsConnectorActivity.BuilderchatMetrics(JsonField<AnalyticsConnectorChatMetrics> chatMetrics)Sets Builder.chatMetrics to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderclaudeCodeMetrics(AnalyticsConnectorClaudeCodeMetrics claudeCodeMetrics)Claude Code activity metrics for a single connector on a given day. final AnalyticsConnectorActivity.BuilderclaudeCodeMetrics(JsonField<AnalyticsConnectorClaudeCodeMetrics> claudeCodeMetrics)Sets Builder.claudeCodeMetrics to an arbitrary JSON value. final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.BuilderconnectorDisplayName(Optional<String> connectorDisplayName)Alias for calling Builder.connectorDisplayName with connectorDisplayName.orElse(null).final AnalyticsConnectorActivity.BuilderconnectorDisplayName(JsonField<String> connectorDisplayName)Sets Builder.connectorDisplayName to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderconnectorName(String connectorName)Name of the connector. final AnalyticsConnectorActivity.BuilderconnectorName(JsonField<String> connectorName)Sets Builder.connectorName to an arbitrary JSON value. final AnalyticsConnectorActivity.BuildercoworkMetrics(AnalyticsConnectorCoworkMetrics coworkMetrics)Cowork activity metrics for a single connector on a given day. final AnalyticsConnectorActivity.BuildercoworkMetrics(JsonField<AnalyticsConnectorCoworkMetrics> coworkMetrics)Sets Builder.coworkMetrics to an arbitrary JSON value. final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.BuilderdistinctUserCount(JsonField<Long> distinctUserCount)Sets Builder.distinctUserCount to an arbitrary JSON value. final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.BuilderindividualAuthDistinctUserCount(Long individualAuthDistinctUserCount)Alias for Builder.individualAuthDistinctUserCount. final AnalyticsConnectorActivity.BuilderindividualAuthDistinctUserCount(Optional<Long> individualAuthDistinctUserCount)Alias for calling Builder.individualAuthDistinctUserCount with individualAuthDistinctUserCount.orElse(null).final AnalyticsConnectorActivity.BuilderindividualAuthDistinctUserCount(JsonField<Long> individualAuthDistinctUserCount)Sets Builder.individualAuthDistinctUserCount to an arbitrary JSON value. final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.BuildermanagedAuthDistinctUserCount(Long managedAuthDistinctUserCount)Alias for Builder.managedAuthDistinctUserCount. final AnalyticsConnectorActivity.BuildermanagedAuthDistinctUserCount(Optional<Long> managedAuthDistinctUserCount)Alias for calling Builder.managedAuthDistinctUserCount with managedAuthDistinctUserCount.orElse(null).final AnalyticsConnectorActivity.BuildermanagedAuthDistinctUserCount(JsonField<Long> managedAuthDistinctUserCount)Sets Builder.managedAuthDistinctUserCount to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderofficeMetrics(AnalyticsConnectorOfficeMetrics officeMetrics)Office Agent activity metrics for a single connector on a given day, broken out by Office product. final AnalyticsConnectorActivity.BuilderofficeMetrics(JsonField<AnalyticsConnectorOfficeMetrics> officeMetrics)Sets Builder.officeMetrics to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderreadCallCount(Long readCallCount)Number of connector tool calls on the requested day whose trusted read-only annotation marked them read-only. final AnalyticsConnectorActivity.BuilderreadCallCount(Long readCallCount)Alias for Builder.readCallCount. final AnalyticsConnectorActivity.BuilderreadCallCount(Optional<Long> readCallCount)Alias for calling Builder.readCallCount with readCallCount.orElse(null).final AnalyticsConnectorActivity.BuilderreadCallCount(JsonField<Long> readCallCount)Sets Builder.readCallCount to an arbitrary JSON value. final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.BuilderunclassifiedCallCount(Long unclassifiedCallCount)Alias for Builder.unclassifiedCallCount. final AnalyticsConnectorActivity.BuilderunclassifiedCallCount(Optional<Long> unclassifiedCallCount)Alias for calling Builder.unclassifiedCallCount with unclassifiedCallCount.orElse(null).final AnalyticsConnectorActivity.BuilderunclassifiedCallCount(JsonField<Long> unclassifiedCallCount)Sets Builder.unclassifiedCallCount to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderwriteCallCount(Long writeCallCount)Number of connector tool calls on the requested day whose trusted read-only annotation marked them not read-only. final AnalyticsConnectorActivity.BuilderwriteCallCount(Long writeCallCount)Alias for Builder.writeCallCount. final AnalyticsConnectorActivity.BuilderwriteCallCount(Optional<Long> writeCallCount)Alias for calling Builder.writeCallCount with writeCallCount.orElse(null).final AnalyticsConnectorActivity.BuilderwriteCallCount(JsonField<Long> writeCallCount)Sets Builder.writeCallCount to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderchatCoworkUnifiedMetrics(AnalyticsConnectorChatCoworkUnifiedMetrics 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 AnalyticsConnectorActivity.BuilderchatCoworkUnifiedMetrics(Optional<AnalyticsConnectorChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)Alias for calling Builder.chatCoworkUnifiedMetrics with chatCoworkUnifiedMetrics.orElse(null).final AnalyticsConnectorActivity.BuilderchatCoworkUnifiedMetrics(JsonField<AnalyticsConnectorChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)Sets Builder.chatCoworkUnifiedMetrics to an arbitrary JSON value. final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builderproduct(Optional<String> product)Alias for calling Builder.product with product.orElse(null).final AnalyticsConnectorActivity.Builderproduct(JsonField<String> product)Sets Builder.product to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderrbacGroupId(String rbacGroupId)Tagged RBAC group identifier ( rbac_group_...), matching the spend-limits API spelling.final AnalyticsConnectorActivity.BuilderrbacGroupId(Optional<String> rbacGroupId)Alias for calling Builder.rbacGroupId with rbacGroupId.orElse(null).final AnalyticsConnectorActivity.BuilderrbacGroupId(JsonField<String> rbacGroupId)Sets Builder.rbacGroupId to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderrbacGroupName(String rbacGroupName)Resolved RBAC group display name, alongside rbac_group_idwhen name resolution is available.final AnalyticsConnectorActivity.BuilderrbacGroupName(Optional<String> rbacGroupName)Alias for calling Builder.rbacGroupName with rbacGroupName.orElse(null).final AnalyticsConnectorActivity.BuilderrbacGroupName(JsonField<String> rbacGroupName)Sets Builder.rbacGroupName to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderuserId(String userId)Tagged user identifier (e.g. final AnalyticsConnectorActivity.BuilderuserId(Optional<String> userId)Alias for calling Builder.userId with userId.orElse(null).final AnalyticsConnectorActivity.BuilderuserId(JsonField<String> userId)Sets Builder.userId to an arbitrary JSON value. final AnalyticsConnectorActivity.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final AnalyticsConnectorActivity.BuilderputAdditionalProperty(String key, JsonValue value)final AnalyticsConnectorActivity.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final AnalyticsConnectorActivity.BuilderremoveAdditionalProperty(String key)final AnalyticsConnectorActivity.BuilderremoveAllAdditionalProperties(Set<String> keys)final AnalyticsConnectorActivitybuild()Returns an immutable instance of AnalyticsConnectorActivity. -
-
Method Detail
-
chatMetrics
final AnalyticsConnectorActivity.Builder chatMetrics(AnalyticsConnectorChatMetrics chatMetrics)
Claude.ai activity metrics for a single connector on a given day.
-
chatMetrics
final AnalyticsConnectorActivity.Builder chatMetrics(JsonField<AnalyticsConnectorChatMetrics> chatMetrics)
Sets Builder.chatMetrics to an arbitrary JSON value.
You should usually call Builder.chatMetrics with a well-typed AnalyticsConnectorChatMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
claudeCodeMetrics
final AnalyticsConnectorActivity.Builder claudeCodeMetrics(AnalyticsConnectorClaudeCodeMetrics claudeCodeMetrics)
Claude Code activity metrics for a single connector on a given day.
-
claudeCodeMetrics
final AnalyticsConnectorActivity.Builder claudeCodeMetrics(JsonField<AnalyticsConnectorClaudeCodeMetrics> claudeCodeMetrics)
Sets Builder.claudeCodeMetrics to an arbitrary JSON value.
You should usually call Builder.claudeCodeMetrics with a well-typed AnalyticsConnectorClaudeCodeMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
connectorDisplayName
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder connectorDisplayName(Optional<String> connectorDisplayName)
Alias for calling Builder.connectorDisplayName with
connectorDisplayName.orElse(null).
-
connectorDisplayName
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder coworkMetrics(AnalyticsConnectorCoworkMetrics coworkMetrics)
Cowork activity metrics for a single connector on a given day.
-
coworkMetrics
final AnalyticsConnectorActivity.Builder coworkMetrics(JsonField<AnalyticsConnectorCoworkMetrics> coworkMetrics)
Sets Builder.coworkMetrics to an arbitrary JSON value.
You should usually call Builder.coworkMetrics with a well-typed AnalyticsConnectorCoworkMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
distinctUserCount
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder individualAuthDistinctUserCount(Long individualAuthDistinctUserCount)
Alias for Builder.individualAuthDistinctUserCount.
This unboxed primitive overload exists for backwards compatibility.
-
individualAuthDistinctUserCount
final AnalyticsConnectorActivity.Builder individualAuthDistinctUserCount(Optional<Long> individualAuthDistinctUserCount)
Alias for calling Builder.individualAuthDistinctUserCount with
individualAuthDistinctUserCount.orElse(null).
-
individualAuthDistinctUserCount
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder managedAuthDistinctUserCount(Long managedAuthDistinctUserCount)
Alias for Builder.managedAuthDistinctUserCount.
This unboxed primitive overload exists for backwards compatibility.
-
managedAuthDistinctUserCount
final AnalyticsConnectorActivity.Builder managedAuthDistinctUserCount(Optional<Long> managedAuthDistinctUserCount)
Alias for calling Builder.managedAuthDistinctUserCount with
managedAuthDistinctUserCount.orElse(null).
-
managedAuthDistinctUserCount
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder officeMetrics(AnalyticsConnectorOfficeMetrics officeMetrics)
Office Agent activity metrics for a single connector on a given day, broken out by Office product.
-
officeMetrics
final AnalyticsConnectorActivity.Builder officeMetrics(JsonField<AnalyticsConnectorOfficeMetrics> officeMetrics)
Sets Builder.officeMetrics to an arbitrary JSON value.
You should usually call Builder.officeMetrics with a well-typed AnalyticsConnectorOfficeMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
readCallCount
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder readCallCount(Long readCallCount)
Alias for Builder.readCallCount.
This unboxed primitive overload exists for backwards compatibility.
-
readCallCount
final AnalyticsConnectorActivity.Builder readCallCount(Optional<Long> readCallCount)
Alias for calling Builder.readCallCount with
readCallCount.orElse(null).
-
readCallCount
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder unclassifiedCallCount(Long unclassifiedCallCount)
Alias for Builder.unclassifiedCallCount.
This unboxed primitive overload exists for backwards compatibility.
-
unclassifiedCallCount
final AnalyticsConnectorActivity.Builder unclassifiedCallCount(Optional<Long> unclassifiedCallCount)
Alias for calling Builder.unclassifiedCallCount with
unclassifiedCallCount.orElse(null).
-
unclassifiedCallCount
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder writeCallCount(Long writeCallCount)
Alias for Builder.writeCallCount.
This unboxed primitive overload exists for backwards compatibility.
-
writeCallCount
final AnalyticsConnectorActivity.Builder writeCallCount(Optional<Long> writeCallCount)
Alias for calling Builder.writeCallCount with
writeCallCount.orElse(null).
-
writeCallCount
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder chatCoworkUnifiedMetrics(AnalyticsConnectorChatCoworkUnifiedMetrics 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 AnalyticsConnectorActivity.Builder chatCoworkUnifiedMetrics(Optional<AnalyticsConnectorChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)
Alias for calling Builder.chatCoworkUnifiedMetrics with
chatCoworkUnifiedMetrics.orElse(null).
-
chatCoworkUnifiedMetrics
final AnalyticsConnectorActivity.Builder chatCoworkUnifiedMetrics(JsonField<AnalyticsConnectorChatCoworkUnifiedMetrics> chatCoworkUnifiedMetrics)
Sets Builder.chatCoworkUnifiedMetrics to an arbitrary JSON value.
You should usually call Builder.chatCoworkUnifiedMetrics with a well-typed AnalyticsConnectorChatCoworkUnifiedMetrics value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
product
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder product(Optional<String> product)
Alias for calling Builder.product with
product.orElse(null).
-
product
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder rbacGroupId(Optional<String> rbacGroupId)
Alias for calling Builder.rbacGroupId with
rbacGroupId.orElse(null).
-
rbacGroupId
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder rbacGroupName(Optional<String> rbacGroupName)
Alias for calling Builder.rbacGroupName with
rbacGroupName.orElse(null).
-
rbacGroupName
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder userId(String userId)
Tagged user identifier (e.g.
user_...). Present only when the request grouped byuser_id.
-
userId
final AnalyticsConnectorActivity.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final AnalyticsConnectorActivity.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 AnalyticsConnectorActivity.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final AnalyticsConnectorActivity.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final AnalyticsConnectorActivity.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final AnalyticsConnectorActivity.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final AnalyticsConnectorActivity.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final AnalyticsConnectorActivity build()
Returns an immutable instance of AnalyticsConnectorActivity.
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()
-
-
-
-