Class BetaAnalyticsSkillClaudeCodeMetrics
-
- All Implemented Interfaces:
public final class BetaAnalyticsSkillClaudeCodeMetricsClaude Code activity metrics for a single skill on a given day.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaAnalyticsSkillClaudeCodeMetrics.BuilderA builder for BetaAnalyticsSkillClaudeCodeMetrics.
-
Method Summary
Modifier and Type Method Description final Optional<Long>distinctSessionSkillUsedCount()Number of distinct Claude Code sessions in which the skill was used. final JsonField<Long>_distinctSessionSkillUsedCount()Returns the raw JSON value of distinctSessionSkillUsedCount. final Map<String, JsonValue>_additionalProperties()final BetaAnalyticsSkillClaudeCodeMetrics.BuildertoBuilder()final BetaAnalyticsSkillClaudeCodeMetricsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaAnalyticsSkillClaudeCodeMetrics.Builderbuilder()Returns a mutable builder for constructing an instance of BetaAnalyticsSkillClaudeCodeMetrics. final static BetaAnalyticsSkillClaudeCodeMetricsof(Long distinctSessionSkillUsedCount)Returns an immutable instance of BetaAnalyticsSkillClaudeCodeMetrics with the required distinctSessionSkillUsedCount set to the given value. final static BetaAnalyticsSkillClaudeCodeMetricsof(Long distinctSessionSkillUsedCount)Alias for of. final static BetaAnalyticsSkillClaudeCodeMetricsof(Optional<Long> distinctSessionSkillUsedCount)Alias for calling of with distinctSessionSkillUsedCount.orElse(null).-
-
Method Detail
-
distinctSessionSkillUsedCount
final Optional<Long> distinctSessionSkillUsedCount()
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.
-
_distinctSessionSkillUsedCount
final JsonField<Long> _distinctSessionSkillUsedCount()
Returns the raw JSON value of distinctSessionSkillUsedCount.
Unlike distinctSessionSkillUsedCount, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaAnalyticsSkillClaudeCodeMetrics.Builder toBuilder()
-
validate
final BetaAnalyticsSkillClaudeCodeMetrics 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 BetaAnalyticsSkillClaudeCodeMetrics.Builder builder()
Returns a mutable builder for constructing an instance of BetaAnalyticsSkillClaudeCodeMetrics.
The following fields are required:
.distinctSessionSkillUsedCount()
-
of
final static BetaAnalyticsSkillClaudeCodeMetrics of(Long distinctSessionSkillUsedCount)
Returns an immutable instance of BetaAnalyticsSkillClaudeCodeMetrics with the required distinctSessionSkillUsedCount set to the given value.
-
of
final static BetaAnalyticsSkillClaudeCodeMetrics of(Long distinctSessionSkillUsedCount)
Alias for of.
This unboxed primitive overload exists for backwards compatibility.
-
of
final static BetaAnalyticsSkillClaudeCodeMetrics of(Optional<Long> distinctSessionSkillUsedCount)
Alias for calling of with
distinctSessionSkillUsedCount.orElse(null).
-
-
-
-