@cosmosapp/pay_sdkDefinitionenServer

AnalyticsManager

Read-only analytics derived from the consumer's intents and deliveries — client.analytics. Powers dashboard-style Overview / Balances / Logs views.

Read-only analytics derived from the consumer's intents and deliveries — client.analytics. Powers dashboard-style Overview / Balances / Logs views.

Constructor

AnalyticsManager

constructor(client: Client)

Parameters

Properties

client

readonly client: Client

Type Client

Methods

summary()

Overview metrics: totals, settled volume, webhook health, 30-day series.

summary(): Promise<AnalyticsSummaryData>

Returns Promise<AnalyticsSummaryData>

series()

Activity per day, week, month or year, with the window before for growth: payments (with their settled volume in USD), swaps of every kind, liquidity operations, webhook deliveries and private payments, each in the UTC buckets of period (day when omitted).

series(options?: AnalyticsSeriesOptions): Promise<AnalyticsSeriesData>

Parameters

  • options (optional): AnalyticsSeriesOptions

Returns Promise<AnalyticsSeriesData>

balances()

Settled (and pending) amount per asset.

balances(): Promise<AnalyticsBalancesData>

Returns Promise<AnalyticsBalancesData>

apiLogs()

Recent API requests reaching the service (with details).

apiLogs(): Promise<ApiLogsData>

Returns Promise<ApiLogsData>

webhookLogs()

Recent webhook deliveries across all endpoints (with details).

webhookLogs(): Promise<WebhookLogsData>

Returns Promise<WebhookLogsData>

Auf dieser Seite