Class AnalyticsChatMetrics

  • All Implemented Interfaces:

    
    public final class AnalyticsChatMetrics
    
                        

    Claude.ai activity metrics for a single user on a given day.

    • Constructor Detail

    • Method Detail

      • 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.

      • _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.

      • 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()