The Claude Enterprise Analytics API has a new rule for when a chat in Chat and Cowork unified counts as a session. New rule: A session starts the first time on a UTC day that Claude successfully runs a Bash command, creates a file, or edits a file in the chat. It ends when that day ends. Previous rule: A chat counted as a session after it moved into a Cowork cloud session (a sandbox where Claude runs code), including on later days. Uploading some types of files could cause that move. Rollout: The change reaches chats gradually, and existing chats can change later than new ones. Until then, a chat follows the previous rule. Activity from before then is not recounted. The API does not show which rule a chat follows. In List User ActivityPreview with links to the API reference available — press Tab until focus enters the card, Escape to return., these counts can change. chat and sessions are the objects in chat_cowork_unified_metrics. Sessions: sessions.distinct_session_count can be higher, or lower for some users. Messages: They count in chat before the session starts and in sessions after. message_count can be higher or lower in each. Chats: chat.distinct_conversation_count can be higher. A chat counts there on each day that it gets a message, even one that counts in sessions. Tool actions and file edits: They count in sessions during the session. action_count and file_edit_count can be higher or lower. Connectors: In most chats, connectors_used_count and distinct_connectors_used_count split the same way as messages. Added up across both objects, each can be higher or lower. Skills and plugins: Their use counts in sessions, even on a day with no session. Artifacts: Counts can move between chat and sessions. For chats that the change reached, the API does not get the names of some skills and plugins that Anthropic did not make, such as your own. List User Activity: distinct_skills_used_count can leave out these skills. Added up across both objects, it can be lower. Get Skill UsagePreview with links to the API reference available — press Tab until focus enters the card, Escape to return.: Spend for these skills can leave out these chats. estimated_overage_spend can be lower, and attributed_list_price can be lower or null. Get Plugin UsagePreview with links to the API reference available — press Tab until focus enters the card, Escape to return.: These plugins can appear under the plugin_name value third-party. In Get Connector UsagePreview with links to the API reference available — press Tab until focus enters the card, Escape to return., individual_auth_distinct_user_count and managed_auth_distinct_user_count can leave out some users of chats that the change reached, so they can be lower. Other counts from the connector, skill, and plugin usage endpoints can be higher or lower.
The Claude Enterprise Analytics API has a new rule for when a chat in Chat and Cowork unified counts as a session. New rule: A session starts the first time on a UTC day that Claude successfully runs a Bash command, creates a file, or edits a file in the chat. It ends when that day ends. Previous rule: A chat counted as a session after it moved into a Cowork cloud session (a sandbox where Claude runs code), including on later days. Uploading some types of files could cause that move. Rollout: The change reaches chats gradually, and existing chats can change later than new ones. Until then, a chat follows the previous rule. Activity from before then is not recounted. The API does not show which rule a chat follows. In List User ActivityPreview with links to the API reference available — press Tab until focus enters the card, Escape to return., these counts can change. chat and sessions are the objects in chat_cowork_unified_metrics. Sessions: sessions.distinct_session_count can be higher, or lower for some users. Messages: They count in chat before the session starts and in sessions after. message_count can be higher or lower in each. Chats: chat.distinct_conversation_count can be higher. A chat counts there on each day that it gets a message, even one that counts in sessions. Tool actions and file edits: They count in sessions during the session. action_count and file_edit_count can be higher or lower. Connectors: In most chats, connectors_used_count and distinct_connectors_used_count split the same way as messages. Added up across both objects, each can be higher or lower. Skills and plugins: Their use counts in sessions, even on a day with no session. Artifacts: Counts can move between chat and sessions. For chats that the change reached, the API does not get the names of some skills and plugins that Anthropic did not make, such as your own. List User Activity: distinct_skills_used_count can leave out these skills. Added up across both objects, it can be lower. Get Skill UsagePreview with links to the API reference available — press Tab until focus enters the card, Escape to return.: Spend for these skills can leave out these chats. estimated_overage_spend can be lower, and attributed_list_price can be lower or null. Get Plugin UsagePreview with links to the API reference available — press Tab until focus enters the card, Escape to return.: These plugins can appear under the plugin_name value third-party. In Get Connector UsagePreview with links to the API reference available — press Tab until focus enters the card, Escape to return., individual_auth_distinct_user_count and managed_auth_distinct_user_count can leave out some users of chats that the change reached, so they can be lower. Other counts from the connector, skill, and plugin usage endpoints can be higher or lower.
本文内容采集自官方网站,排版和翻译可能与原页面存在差异。
阅读官方全文