Class: Anthropic::Models::Organization::AnalyticsSkillClaudeCodeMetrics
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::AnalyticsSkillClaudeCodeMetrics
- Defined in:
- lib/anthropic/models/organization/analytics_skill_claude_code_metrics.rb,
sig/anthropic/models/organization/analytics_skill_claude_code_metrics.rbs
Instance Attribute Summary collapse
-
#distinct_session_skill_used_count ⇒ Integer?
Number of distinct Claude Code sessions in which the skill was used.
Instance Method Summary collapse
-
#initialize(distinct_session_skill_used_count:) ⇒ AnalyticsSkillClaudeCodeMetrics
constructor
Claude Code activity metrics for a single skill on a given day.
- #to_hash ⇒ { distinct_session_skill_used_count: Integer? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(distinct_session_skill_used_count:) ⇒ AnalyticsSkillClaudeCodeMetrics
Claude Code activity metrics for a single skill on a given day.
Some parameter documentations has been truncated, see Anthropic::Models::Organization::AnalyticsSkillClaudeCodeMetrics for more details.
|
|
# File 'lib/anthropic/models/organization/analytics_skill_claude_code_metrics.rb', line 20
|
Instance Attribute Details
#distinct_session_skill_used_count ⇒ Integer?
Number of distinct Claude Code sessions in which the skill was used. A skill counts as used only when it is explicitly activated — the model (or the user, via the skill's slash command) invokes it, reading its instructions into context as part of that activation. Skills that are merely installed or listed as available, or whose content reaches the context without an activation (preloaded, hook-injected, or read as a plain file), are not counted. Approximate (HLL, typical error <2%) in date-range mode. Null on aggregated rows where a distinct count cannot be computed.
18 |
# File 'lib/anthropic/models/organization/analytics_skill_claude_code_metrics.rb', line 18 required :distinct_session_skill_used_count, Integer, nil?: true |
Instance Method Details
#to_hash ⇒ { distinct_session_skill_used_count: Integer? }
12 |
# File 'sig/anthropic/models/organization/analytics_skill_claude_code_metrics.rbs', line 12
def to_hash: -> { distinct_session_skill_used_count: Integer? }
|