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 Tag ID. |
Query parameters
|
Name |
Description |
|
date1 |
Type: string First day. Example: |
|
date2 |
Type: string Last day (can't be the current day). Example: |
|
fields |
Type: string List of fields separated by commas. Example: |
|
source |
Type: string[] Log source. Example: |
Responses
200 OK
OK
Body
application/json
{
"log_request_evaluation": {
"possible": true,
"expected_size": 0,
"max_possible_day_quantity": 0,
"log_request_sum_max_size": 0,
"log_request_sum_size": 0
}
}
|
Name |
Description |
|
log_request_evaluation |
Type: LogRequestEvaluation Checks whether a log request can be created. Example
|
LogRequestEvaluation
Checks whether a log request can be created.
|
Name |
Description |
|
max_possible_day_quantity |
Type: integer 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. |
Example
{
"possible": true,
"max_possible_day_quantity": 0
}
No longer supported, please use an alternative and newer version.