Checking whether a request can be created

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

  1. Request syntax
  2. Response format

Request syntax

counterId: Tag ID.

https://api-metrika.yandex.net/management/v1/counter/{counterId}/logrequests/evaluate
 ? [date1=<string>]
 & [date2=<string>]
 & [fields=<string>]
 & [source=<log_request_source>]
date1First day.
date2Last day (can't be the current day).
fieldsList of fields separated by commas.
sourceLog source.

Acceptable values:

  • hits: Pageviews.
  • visits: Sessions.
date1First day.
date2Last day (can't be the current day).
fieldsList of fields separated by commas.
sourceLog source.

Acceptable values:

  • hits: Pageviews.
  • visits: Sessions.

Response format


{
    "log_request_evaluation" : {
        "possible" :  < boolean > ,
        "max_possible_day_quantity" :  < long > 
    }
}
Parameters Description
log_request_evaluation Checks whether a log request can be created.
log_request_evaluation
possible Whether logs can be requested for the specified period.
max_possible_day_quantity The maximum number of days in the time period that can be specified in log requests accounting for to the current quota.
Parameters Description
log_request_evaluation Checks whether a log request can be created.
log_request_evaluation
possible Whether logs can be requested for the specified period.
max_possible_day_quantity The maximum number of days in the time period that can be specified in log requests accounting for to the current quota.