Skip to content

Analytics DTO

Описание сущностей и типов из src/dto/analytics/.

Обогащено snapshot-данными бэкенд-DTO (0 из 13 типов сопоставлено, snapshot от 2026-05-05T13:21:51.699Z).

Содержание


AnalyticsChartRequestParam

Query parameters for a chart request.

from/to are calendar dates (YYYY-MM-DD) resolved in the analytics time zone (Europe/Berlin), and to is inclusive. Buckets are cut in that same zone.

region is an ISO 3166-2 code (DE-BE). It does not apply to e-mail metrics, so the e-mail chart ignores it.

Поля

ПолеТипОбязательноеОписание
fromstringда
tostringда
regionstringнет
granularityAnalyticsGranularityDtoнет

Пример

json
{
  "from": "2026-05-05T08:00:00Z",
  "to": "2026-05-05T08:00:00Z",
  "region": "string",
  "granularity": "<AnalyticsGranularityDto>"
}


AnalyticsChartResponseDto

granularity echoes what the backend actually applied — format the X axis by it.

Поля

ПолеТипОбязательноеОписание
successfullybooleanда
granularityAnalyticsGranularityDtoда
seriesAnalyticsChartSeriesDto[]да

Пример

json
{
  "successfully": false,
  "granularity": "<AnalyticsGranularityDto>",
  "series": []
}


AnalyticsChartSeriesDto

Time series of one metric. Every bucket of the requested period is present — empty ones come as zero, so nothing needs densifying on the client.

Поля

ПолеТипОбязательноеОписание
keystringда
bucketsTimeBucketDto[]да

Пример

json
{
  "key": "string",
  "buckets": []
}


AnalyticsGranularityDto

Значения

ИмяЗначениеОписание
Day1
Week2
Month3

Пример

json
1


AnalyticsKpiRequestParam

Query parameters for a KPI panel request.

from/to are calendar dates (YYYY-MM-DD) resolved in the analytics time zone (Europe/Berlin), and to is inclusive. There is no granularity: a KPI panel is a single aggregate per metric.

region is an ISO 3166-2 code (DE-BE). It does not apply to e-mail metrics — an e-mail has no address of its own — so the mail panel ignores it.

Поля

ПолеТипОбязательноеОписание
fromstringда
tostringда
regionstringнет

Пример

json
{
  "from": "2026-05-05T08:00:00Z",
  "to": "2026-05-05T08:00:00Z",
  "region": "string"
}


AnalyticsKpiResponseDto

Поля

ПолеТипОбязательноеОписание
successfullybooleanда
valuesAnalyticsKpiValueDto[]да

Пример

json
{
  "successfully": false,
  "values": []
}


AnalyticsKpiValueDto

Aggregate of one metric over the requested period. key is a stable snake_case metric key.

Поля

ПолеТипОбязательноеОписание
keystringда
valuenumberда

Пример

json
{
  "key": "string",
  "value": 0
}


AnalyticsRequestParam

Query parameters for an analytics section request.

from/to and the optional compareFrom/compareTo are ISO-8601 date-time strings. When both compare bounds are set, each metric also carries previousValue and deltaPercent.

Поля

ПолеТипОбязательноеОписание
fromstringда
tostringда
regionstringнет
compareFromstringнет
compareTostringнет
granularityAnalyticsGranularityDtoнет

Пример

json
{
  "from": "2026-05-05T08:00:00Z",
  "to": "2026-05-05T08:00:00Z",
  "region": "string",
  "compareFrom": "2026-05-05T08:00:00Z",
  "compareTo": "2026-05-05T08:00:00Z",
  "granularity": "<AnalyticsGranularityDto>"
}


AnalyticsSectionDto

Значения

ИмяЗначениеОписание
Clients1
Workers2
CallCenter3
Marketing4
Communications5

Пример

json
1


AnalyticsSectionResponseDto

Поля

ПолеТипОбязательноеОписание
sectionAnalyticsSectionDtoда
metricsMetricDto[]да

Пример

json
{
  "section": "<AnalyticsSectionDto>",
  "metrics": []
}


BreakdownDto

Поля

ПолеТипОбязательноеОписание
dimensionstringда
keystringда
valuenumberда

Пример

json
{
  "dimension": "string",
  "key": "string",
  "value": 0
}


MetricDto

Поля

ПолеТипОбязательноеОписание
keystringда
labelstringда
valuenumberда
previousValuenumber | nullнет
deltaPercentnumber | nullнет
seriesTimeBucketDto[]да
breakdownsBreakdownDto[]да

Пример

json
{
  "key": "string",
  "label": "string",
  "value": 0,
  "previousValue": 0,
  "deltaPercent": 0,
  "series": [],
  "breakdowns": []
}


TimeBucketDto

Поля

ПолеТипОбязательноеОписание
bucketstringда
valuenumberда

Пример

json
{
  "bucket": "string",
  "value": 0
}