Аналитика · Чтение
Аналитика · Коллекции · Отчёт
analytics_collection_report
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Аналитика / Коллекции / Отчёт» выполни чтение в текущей компании. Выведи кратко: результат.
- result
- Результат
Уточнить условия
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Для «Аналитика / Коллекции / Отчёт» перечисли допустимые параметры report, period. Уточни, какие значения нужны для моей задачи, до запроса данных.
- report
- Параметр чтения
- period
- Параметр чтения
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Аналитика / Коллекции / Отчёт» объясни результат. Отметь отсутствующие значения.
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Aggregate any numeric field of an authorized business source, including products, ingredients, suppliers and documents. Bounded scans disclose incomplete coverage; money and units stay separated.
Параметры запроса
- report
- Native read and field selection. обязательно по схеме · object
- period
- Explicit dates; select the native date field first. необязательно · object
Что вернёт команда
- result
- Authorized Analytics result. Unknown source data is explicit and never replaced with zero. обязательно по схеме
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"report": {
"type": "object",
"properties": {
"sourceId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$",
"description": "Source ID returned by analytics_sources_list."
},
"action": {
"type": "string",
"maxLength": 64,
"description": "Exact permitted read action mapped to this collection."
},
"snapshot": {
"default": false,
"description": "Explicit current-state report: ignores dashboard dates and comparisons and is labelled as a snapshot.",
"type": "boolean"
},
"input": {
"default": {},
"description": "Native action arguments from analytics_source_describe. No SQL or raw database queries.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
},
"rowsPath": {
"default": "",
"description": "Optional exact nested native line-item array path. Original record fields remain under parent; expanded rows retain native units and currencies.",
"type": "string",
"maxLength": 160
},
"measure": {
"default": "count",
"description": "Exact numeric output field path, or count.",
"type": "string",
"maxLength": 160
},
"aggregation": {
"default": "count",
"description": "Server aggregation over the scanned records.",
"type": "string",
"enum": [
"count",
"sum",
"avg",
"min",
"max",
"distinct"
]
},
"dimension": {
"default": "",
"description": "Exact output field path for grouping; empty for one total.",
"type": "string",
"maxLength": 160
},
"dateField": {
"default": "",
"description": "Exact output date field, required to filter an event report by dates.",
"type": "string",
"maxLength": 160
},
"currencyField": {
"default": "",
"description": "Exact currency field for a money measure; currencies remain separate.",
"type": "string",
"maxLength": 160
},
"unitField": {
"default": "",
"description": "Native unit field; different units remain separate.",
"type": "string",
"maxLength": 160
},
"filters": {
"default": [],
"description": "Filters applied after the native authorized read.",
"maxItems": 12,
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"maxLength": 160,
"description": "Output field path."
},
"operator": {
"type": "string",
"enum": [
"eq",
"ne",
"contains"
],
"description": "Comparison operator."
},
"value": {
"anyOf": [
{
"type": "string",
"maxLength": 500
},
{
"type": "number"
},
{
"type": "boolean"
}
],
"description": "Typed comparison value."
}
},
"required": [
"field",
"operator",
"value"
],
"additionalProperties": false
}
},
"maxPages": {
"default": 5,
"description": "Bounded native pages to scan, with explicit partial coverage.",
"type": "integer",
"minimum": 1,
"maximum": 20
}
},
"required": [
"sourceId",
"action",
"snapshot",
"input",
"rowsPath",
"measure",
"aggregation",
"dimension",
"dateField",
"currencyField",
"unitField",
"filters",
"maxPages"
],
"additionalProperties": false,
"description": "Native read and field selection."
},
"period": {
"description": "Explicit dates; select the native date field first.",
"type": "object",
"properties": {
"from": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Inclusive native calendar date."
},
"to": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Exclusive native calendar date."
}
},
"required": [
"from",
"to"
],
"additionalProperties": false
}
},
"required": [
"report"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"result": {
"description": "Authorized Analytics result. Unknown source data is explicit and never replaced with zero."
}
},
"required": [
"result"
],
"additionalProperties": false
}