---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.1
alternate:
  - https://yandex.ru/dev/metrika/en/logs/openapi/evaluate.md
  - https://yandex.ru/dev/metrika/ru/logs/openapi/evaluate.md
  - href: ru/logs/openapi/evaluate.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/metrika/ru/llms.txt

<div class="openapi">

# Оценка возможности создания запроса

<!-- markdownlint-disable-file -->

Оценивает возможность создания запроса логов по его примерному размеру.

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://api-metrika.yandex.net/management/v1/counter/{counterId}/logrequests/evaluate
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_counterId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Идентификатор счетчика.
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

#|
|| **Name** | **Description** ||
||

_date1_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Первый день.

_Example:_{.json-schema-reset .json-schema-example} `2016-01-01`
{.table-cell}
||
||

_date2_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Последний день (не может быть текущим днем).

_Example:_{.json-schema-reset .json-schema-example} `2016-01-31`
{.table-cell}
||
||

_fields_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Список полей через запятую.

_Example:_{.json-schema-reset .json-schema-example} `ym:pv:dateTime,ym:pv:referer`
{.table-cell}
||
||

_source_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Источник логов.
Источник логов. Возможные значения:
- `hits` — события.
- `visits` — визиты.


_Example:_{.json-schema-reset .json-schema-example} `hits`
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "log_request_evaluation": {
    "possible": true,
    "max_possible_day_quantity": 0
  }
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_log_request_evaluation_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: [LogRequestEvaluation](#entity-LogRequestEvaluation)

Оценка возможности создания запросов логов.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "possible": true,
  "max_possible_day_quantity": 0
}
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### LogRequestEvaluation {#entity-LogRequestEvaluation}

Оценка возможности создания запросов логов.

#|
|| **Name** | **Description** ||
||

_max_possible_day_quantity_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Максимальное количество дней периода, который можно указать в запросах логов, с учетом текущей квоты.
{.table-cell}
||
||

_possible_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean

Возможность создания запроса логов за указанный период.
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "possible": true,
  "max_possible_day_quantity": 0
}
```

{% endcut %}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.