Checking whether a request can be created

Checks whether a log request can be created based on the size.

Request

GET

https://api-metrica.yandex.net/management/v1/counter/{counterId}/logrequests/evaluate

Path parameters

Name

Description

counterId*

Type: integer<int32>

Tag ID.
Example: 2215573

Query parameters

Name

Description

date1*

Type: string

First day.
Example: 2016-01-01T00:00:00.000Z

date2*

Type: string

Last day (can't be the current day).
Example: 2016-01-31T00:00:00.000Z

fields*

Type: string

List of fields separated by commas.
Example: ym:pv:dateTime,ym:pv:referer

source*

Type: string[]

Log source.
Log source. Possible values:

  • hits: Events.
  • visits: Sessions.
    Example: hits

Responses

200 OK

OK

Body

application/json
{
    "log_request_evaluation": {
        "possible": false,
        "max_possible_day_quantity": 0
    }
}

Name

Description

log_request_evaluation

Type: LogRequestEvaluation

Checks whether a log request can be created.

LogRequestEvaluation

Checks whether a log request can be created.

Name

Description

max_possible_day_quantity

Type: integer<int64>

The maximum number of days in the time period that can be specified in log requests accounting for to the current quota.

possible

Type: boolean

Whether logs can be requested for the specified period.