# AnalyticsManager (https://dev.cosmospay.lat/docs/sdk/definitions/server/analytics-manager/)

> 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

```ts
constructor(client: Client)
```

**Parameters**

- `client`: [`Client`](https://dev.cosmospay.lat/docs/sdk/definitions/server/client/)

## Properties

### client

```ts
readonly client: Client
```

**Type** [`Client`](https://dev.cosmospay.lat/docs/sdk/definitions/server/client/)

## Methods

### summary()

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

```ts
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).

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

**Parameters**

- `options` _(optional)_: `AnalyticsSeriesOptions`

**Returns** `Promise<AnalyticsSeriesData>`

### balances()

Settled (and pending) amount per asset.

```ts
balances(): Promise<AnalyticsBalancesData>
```

**Returns** `Promise<AnalyticsBalancesData>`

### apiLogs()

Recent API requests reaching the service (with details).

```ts
apiLogs(): Promise<ApiLogsData>
```

**Returns** `Promise<ApiLogsData>`

### webhookLogs()

Recent webhook deliveries across all endpoints (with details).

```ts
webhookLogs(): Promise<WebhookLogsData>
```

**Returns** `Promise<WebhookLogsData>`

## Related

- [Client](https://dev.cosmospay.lat/docs/sdk/definitions/server/client/)
