Class BetaAnalyticsCoworkMetrics

  • All Implemented Interfaces:

    
    public final class BetaAnalyticsCoworkMetrics
    
                        

    Cowork activity metrics for a single user on a given day.

    • Constructor Detail

    • Method Detail

      • actionCount

         final Long actionCount()

        Number of tool actions completed in Cowork sessions

      • artifactsCreatedCount

         final Long artifactsCreatedCount()

        Number of artifacts created in Cowork sessions: an artifact counts once, on the day a session first saves it. Counted from 2026-08-17; 0 on earlier days. 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()

        Number of distinct connectors used in Cowork sessions. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

      • distinctPluginsUsedCount

         final Optional<Long> distinctPluginsUsedCount()

        Number of distinct plugins used in Cowork sessions. Null while Cowork plugin-use metrics are not enabled for this organization. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

      • distinctSessionCount

         final Optional<Long> distinctSessionCount()

        Number of distinct Cowork sessions. 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 in Cowork sessions. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

      • editToolCount

         final Optional<Long> editToolCount()

        Number of successful Edit tool calls in Cowork sessions. Null while the file-edit metrics are not enabled for this organization.

      • fileEditCount

         final Optional<Long> fileEditCount()

        Number of successful file-edit tool calls (Edit, MultiEdit, Write, NotebookEdit) in Cowork sessions. Null, never 0, while the file-edit metrics are not enabled for this organization.

      • messageCount

         final Long messageCount()

        Number of messages sent in Cowork sessions

      • multiEditToolCount

         final Optional<Long> multiEditToolCount()

        Number of successful MultiEdit tool calls in Cowork sessions. Null while the file-edit metrics are not enabled for this organization.

      • notebookEditToolCount

         final Optional<Long> notebookEditToolCount()

        Number of successful NotebookEdit tool calls in Cowork sessions. Null while the file-edit metrics are not enabled for this organization.

      • pluginsUsedCount

         final Optional<Long> pluginsUsedCount()

        Total number of plugin invocations in Cowork sessions. Null while Cowork plugin-use metrics are not enabled for this organization.

      • sessionsWithFileEditsCount

         final Optional<Long> sessionsWithFileEditsCount()

        Number of distinct Cowork sessions with at least one successful file-edit tool call. Null while the file-edit metrics are not enabled for this organization. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.

      • skillsUsedCount

         final Long skillsUsedCount()

        Total number of skill invocations in Cowork sessions

      • writeToolCount

         final Optional<Long> writeToolCount()

        Number of successful Write tool calls in Cowork sessions. Null while the file-edit metrics are not enabled for this organization.

      • _actionCount

         final JsonField<Long> _actionCount()

        Returns the raw JSON value of actionCount.

        Unlike actionCount, this method doesn't throw if the JSON field has an unexpected type.

      • _artifactsCreatedCount

         final JsonField<Long> _artifactsCreatedCount()

        Returns the raw JSON value of artifactsCreatedCount.

        Unlike artifactsCreatedCount, this method doesn't throw if the JSON field has an unexpected type.

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

      • _dispatchTurnCount

         final JsonField<Long> _dispatchTurnCount()

        Returns the raw JSON value of dispatchTurnCount.

        Unlike dispatchTurnCount, 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.

      • _distinctPluginsUsedCount

         final JsonField<Long> _distinctPluginsUsedCount()

        Returns the raw JSON value of distinctPluginsUsedCount.

        Unlike distinctPluginsUsedCount, this method doesn't throw if the JSON field has an unexpected type.

      • _distinctSessionCount

         final JsonField<Long> _distinctSessionCount()

        Returns the raw JSON value of distinctSessionCount.

        Unlike distinctSessionCount, 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.

      • _editToolCount

         final JsonField<Long> _editToolCount()

        Returns the raw JSON value of editToolCount.

        Unlike editToolCount, this method doesn't throw if the JSON field has an unexpected type.

      • _fileEditCount

         final JsonField<Long> _fileEditCount()

        Returns the raw JSON value of fileEditCount.

        Unlike fileEditCount, 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.

      • _multiEditToolCount

         final JsonField<Long> _multiEditToolCount()

        Returns the raw JSON value of multiEditToolCount.

        Unlike multiEditToolCount, this method doesn't throw if the JSON field has an unexpected type.

      • _notebookEditToolCount

         final JsonField<Long> _notebookEditToolCount()

        Returns the raw JSON value of notebookEditToolCount.

        Unlike notebookEditToolCount, this method doesn't throw if the JSON field has an unexpected type.

      • _pluginsUsedCount

         final JsonField<Long> _pluginsUsedCount()

        Returns the raw JSON value of pluginsUsedCount.

        Unlike pluginsUsedCount, this method doesn't throw if the JSON field has an unexpected type.

      • _sessionsWithFileEditsCount

         final JsonField<Long> _sessionsWithFileEditsCount()

        Returns the raw JSON value of sessionsWithFileEditsCount.

        Unlike sessionsWithFileEditsCount, this method doesn't throw if the JSON field has an unexpected type.

      • _skillsUsedCount

         final JsonField<Long> _skillsUsedCount()

        Returns the raw JSON value of skillsUsedCount.

        Unlike skillsUsedCount, this method doesn't throw if the JSON field has an unexpected type.

      • _writeToolCount

         final JsonField<Long> _writeToolCount()

        Returns the raw JSON value of writeToolCount.

        Unlike writeToolCount, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final BetaAnalyticsCoworkMetrics 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 BetaAnalyticsCoworkMetrics.Builder builder()

        Returns a mutable builder for constructing an instance of BetaAnalyticsCoworkMetrics.

        The following fields are required:

        .actionCount()
        .artifactsCreatedCount()
        .connectorsUsedCount()
        .dispatchTurnCount()
        .distinctConnectorsUsedCount()
        .distinctPluginsUsedCount()
        .distinctSessionCount()
        .distinctSkillsUsedCount()
        .editToolCount()
        .fileEditCount()
        .messageCount()
        .multiEditToolCount()
        .notebookEditToolCount()
        .pluginsUsedCount()
        .sessionsWithFileEditsCount()
        .skillsUsedCount()
        .writeToolCount()