Class AnalyticsChatMetrics
-
- All Implemented Interfaces:
public final class AnalyticsChatMetricsClaude.ai activity metrics for a single user on a given day.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAnalyticsChatMetrics.BuilderA builder for AnalyticsChatMetrics.
-
Method Summary
Modifier and Type Method Description final LongconnectorsUsedCount()Number of MCP connector invocations. final LongdistinctArtifactsCreatedCount()Number of distinct artifacts created. final Optional<Long>distinctConnectorsUsedCount()Distinct claude.ai connectors this user used. final Optional<Long>distinctConversationCount()Number of distinct conversations the user participated in. final Optional<Long>distinctFilesUploadedCount()Number of distinct files uploaded. final LongdistinctProjectsCreatedCount()Number of distinct projects created. final Optional<Long>distinctProjectsUsedCount()Number of distinct projects used. final Optional<Long>distinctSharedArtifactsViewedCount()Number of distinct shared artifacts the user viewed. final Optional<Long>distinctSkillsUsedCount()Number of distinct skills used. final LongmessageCount()Number of messages sent final LongsharedConversationsViewedCount()Number of times the user opened a shared conversation in a project final LongthinkingMessageCount()Number of messages that used extended thinking final JsonField<Long>_connectorsUsedCount()Returns the raw JSON value of connectorsUsedCount. final JsonField<Long>_distinctArtifactsCreatedCount()Returns the raw JSON value of distinctArtifactsCreatedCount. final JsonField<Long>_distinctConnectorsUsedCount()Returns the raw JSON value of distinctConnectorsUsedCount. final JsonField<Long>_distinctConversationCount()Returns the raw JSON value of distinctConversationCount. final JsonField<Long>_distinctFilesUploadedCount()Returns the raw JSON value of distinctFilesUploadedCount. final JsonField<Long>_distinctProjectsCreatedCount()Returns the raw JSON value of distinctProjectsCreatedCount. final JsonField<Long>_distinctProjectsUsedCount()Returns the raw JSON value of distinctProjectsUsedCount. final JsonField<Long>_distinctSharedArtifactsViewedCount()Returns the raw JSON value of distinctSharedArtifactsViewedCount. final JsonField<Long>_distinctSkillsUsedCount()Returns the raw JSON value of distinctSkillsUsedCount. final JsonField<Long>_messageCount()Returns the raw JSON value of messageCount. final JsonField<Long>_sharedConversationsViewedCount()Returns the raw JSON value of sharedConversationsViewedCount. final JsonField<Long>_thinkingMessageCount()Returns the raw JSON value of thinkingMessageCount. final Map<String, JsonValue>_additionalProperties()final AnalyticsChatMetrics.BuildertoBuilder()final AnalyticsChatMetricsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AnalyticsChatMetrics.Builderbuilder()Returns a mutable builder for constructing an instance of AnalyticsChatMetrics. -
-
Method Detail
-
connectorsUsedCount
final Long connectorsUsedCount()
Number of MCP connector invocations.
-
distinctArtifactsCreatedCount
final Long distinctArtifactsCreatedCount()
Number of distinct artifacts created. Exact in date-range mode: a creation belongs to exactly one day, so the per-day counts never overlap and their sum over the window is the exact count of distinct creations in it.
-
distinctConnectorsUsedCount
final Optional<Long> distinctConnectorsUsedCount()
Distinct claude.ai connectors this user used. Excludes calls whose connector could not be identified and all calls from organizations with zero data retention. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
-
distinctConversationCount
final Optional<Long> distinctConversationCount()
Number of distinct conversations the user participated in. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
-
distinctFilesUploadedCount
final Optional<Long> distinctFilesUploadedCount()
Number of distinct files uploaded. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
-
distinctProjectsCreatedCount
final Long distinctProjectsCreatedCount()
Number of distinct projects created. Exact in date-range mode: a creation belongs to exactly one day, so the per-day counts never overlap and their sum over the window is the exact count of distinct creations in it.
-
distinctProjectsUsedCount
final Optional<Long> distinctProjectsUsedCount()
Number of distinct projects used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
-
distinctSharedArtifactsViewedCount
final Optional<Long> distinctSharedArtifactsViewedCount()
Number of distinct shared artifacts the user viewed. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
-
distinctSkillsUsedCount
final Optional<Long> distinctSkillsUsedCount()
Number of distinct skills used. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
-
messageCount
final Long messageCount()
Number of messages sent
-
sharedConversationsViewedCount
final Long sharedConversationsViewedCount()
Number of times the user opened a shared conversation in a project
-
thinkingMessageCount
final Long thinkingMessageCount()
Number of messages that used extended thinking
-
_connectorsUsedCount
final JsonField<Long> _connectorsUsedCount()
Returns the raw JSON value of connectorsUsedCount.
Unlike connectorsUsedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_distinctArtifactsCreatedCount
final JsonField<Long> _distinctArtifactsCreatedCount()
Returns the raw JSON value of distinctArtifactsCreatedCount.
Unlike distinctArtifactsCreatedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_distinctConnectorsUsedCount
final JsonField<Long> _distinctConnectorsUsedCount()
Returns the raw JSON value of distinctConnectorsUsedCount.
Unlike distinctConnectorsUsedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_distinctConversationCount
final JsonField<Long> _distinctConversationCount()
Returns the raw JSON value of distinctConversationCount.
Unlike distinctConversationCount, this method doesn't throw if the JSON field has an unexpected type.
-
_distinctFilesUploadedCount
final JsonField<Long> _distinctFilesUploadedCount()
Returns the raw JSON value of distinctFilesUploadedCount.
Unlike distinctFilesUploadedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_distinctProjectsCreatedCount
final JsonField<Long> _distinctProjectsCreatedCount()
Returns the raw JSON value of distinctProjectsCreatedCount.
Unlike distinctProjectsCreatedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_distinctProjectsUsedCount
final JsonField<Long> _distinctProjectsUsedCount()
Returns the raw JSON value of distinctProjectsUsedCount.
Unlike distinctProjectsUsedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_distinctSharedArtifactsViewedCount
final JsonField<Long> _distinctSharedArtifactsViewedCount()
Returns the raw JSON value of distinctSharedArtifactsViewedCount.
Unlike distinctSharedArtifactsViewedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_distinctSkillsUsedCount
final JsonField<Long> _distinctSkillsUsedCount()
Returns the raw JSON value of distinctSkillsUsedCount.
Unlike distinctSkillsUsedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_messageCount
final JsonField<Long> _messageCount()
Returns the raw JSON value of messageCount.
Unlike messageCount, this method doesn't throw if the JSON field has an unexpected type.
-
_sharedConversationsViewedCount
final JsonField<Long> _sharedConversationsViewedCount()
Returns the raw JSON value of sharedConversationsViewedCount.
Unlike sharedConversationsViewedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_thinkingMessageCount
final JsonField<Long> _thinkingMessageCount()
Returns the raw JSON value of thinkingMessageCount.
Unlike thinkingMessageCount, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final AnalyticsChatMetrics.Builder toBuilder()
-
validate
final AnalyticsChatMetrics 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 AnalyticsChatMetrics.Builder builder()
Returns a mutable builder for constructing an instance of AnalyticsChatMetrics.
The following fields are required:
.connectorsUsedCount() .distinctArtifactsCreatedCount() .distinctConnectorsUsedCount() .distinctConversationCount() .distinctFilesUploadedCount() .distinctProjectsCreatedCount() .distinctProjectsUsedCount() .distinctSharedArtifactsViewedCount() .distinctSkillsUsedCount() .messageCount() .sharedConversationsViewedCount() .thinkingMessageCount()
-
-
-
-