Skip to main content

parse_anthropic_usage

Function parse_anthropic_usage 

Source
pub fn parse_anthropic_usage(
    body: &str,
    account_label: &str,
    observed_at: u64,
) -> Result<UsageSnapshot, UsageError>
Expand description

Parse GET /api/oauth/usage. Every object value carrying utilization or resets_at is a window; null windows are skipped with a note.