UsageApi class

Constructors

UsageApi([ApiClient? apiClient])

Properties

apiClient → ApiClient
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getUsageAnalytics({String? end, String? plan, String? range, String? start}) → Future<UsageAnalyticsView?>
Is the entitlement-GATED per-provider breakdown of the caller org's LLM usage — the paid lens over the same warehouse ledger GET /v1/usage/summary reads its totals from.
getUsageAnalyticsAccess({String? plan}) → Future<UsageAnalyticsAccess?>
Echoes a plan's resolved analytics entitlement so a dashboard can configure itself against the LIVE catalog instead of hardcoding tier numbers.
getUsageAnalyticsAccessWithHttpInfo({String? plan}) → Future<Response>
Echoes a plan's resolved analytics entitlement so a dashboard can configure itself against the LIVE catalog instead of hardcoding tier numbers.
getUsageAnalyticsWithHttpInfo({String? end, String? plan, String? range, String? start}) → Future<Response>
Is the entitlement-GATED per-provider breakdown of the caller org's LLM usage — the paid lens over the same warehouse ledger GET /v1/usage/summary reads its totals from.
getUsageSamples({String? account, String? provider, String? range, String? window}) → Future<DashResp?>
Is the PER-PROVIDER view: one connected account's own consumption of its own plan — "my plan is 47% through its 6h window, resets at 14:20".
getUsageSamplesWithHttpInfo({String? account, String? provider, String? range, String? window}) → Future<Response>
Is the PER-PROVIDER view: one connected account's own consumption of its own plan — "my plan is 47% through its 6h window, resets at 14:20".
getUsageSummary({String? range, String? start, String? end}) → Future<UsageSummary?>
Answers GET /v1/usage/summary: the caller's own usage footprint over one window — the categorized spend roll-up from the commerce ledger, the org's LLM usage totals from the warehouse, and the caller's OWN linked provider accounts beside the org's Hanzo-routed usage.
getUsageSummaryWithHttpInfo({String? range, String? start, String? end}) → Future<Response>
Answers GET /v1/usage/summary: the caller's own usage footprint over one window — the categorized spend roll-up from the commerce ledger, the org's LLM usage totals from the warehouse, and the caller's OWN linked provider accounts beside the org's Hanzo-routed usage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postUsage(ReportReq reportReq) → Future<ReportResp?>
Ingests a batch of account-usage samples — what a developer's OWN AI accounts have consumed of their OWN plans, metered from each provider's own login — and appends them to the warehouse series.
postUsageWithHttpInfo(ReportReq reportReq) → Future<Response>
Ingests a batch of account-usage samples — what a developer's OWN AI accounts have consumed of their OWN plans, metered from each provider's own login — and appends them to the warehouse series.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited