Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /nfraxlab_svc-infra /src /svc_infra /billing /schemas.py
| from __future__ import annotations | |
| from datetime import datetime | |
| from typing import Annotated | |
| from pydantic import BaseModel, Field | |
| class UsageIn(BaseModel): | |
| metric: str = Field(..., min_length=1, max_length=64) | |
| amount: Annotated[int, Field(ge=0, description="Non-negative amount for the metric")] | |
| at: datetime | None = Field( | |
| default=None, | |
| description="Event timestamp (UTC). Defaults to server time if omitted.", | |
| ) | |
| idempotency_key: str = Field(..., min_length=1, max_length=128) | |
| metadata: dict = Field(default_factory=dict) | |
| class UsageAckOut(BaseModel): | |
| id: str | |
| accepted: bool = True | |
| class UsageAggregateRow(BaseModel): | |
| period_start: datetime | |
| granularity: str | |
| metric: str | |
| total: int | |
| class UsageAggregatesOut(BaseModel): | |
| items: list[UsageAggregateRow] = Field(default_factory=list) | |
| next_cursor: str | None = None | |
Xet Storage Details
- Size:
- 896 Bytes
- Xet hash:
- c488b69510e17c3492a9de97e47976e4497690f38134ab0a7850ef6b36b81b34
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.