Canceling a pending log request

Cancels a log request that hasn't been processed yet.

Request

POST

https://api-metrica.yandex.net/management/v1/counter/{counterId}/logrequest/{requestId}/cancel

Path parameters

Name

Description

counterId

Type: integer

Tag ID.

requestId

Type: integer

Log request ID.

Responses

200 OK

OK

Body

application/json
{
  "log_request": {
    "request_id": 0,
    "counter_id": 0,
    "source": [
      "example"
    ],
    "date1": "example",
    "date2": "example",
    "fields": [
      "example"
    ],
    "status": "example",
    "size": 0,
    "parts": [
      {
        "part_number": 0,
        "size": 0
      }
    ],
    "attribution": "example"
  }
}

Name

Description

log_request

Type: LogRequest

Log request.

Example
{
  "request_id": 0,
  "counter_id": 0,
  "source": [
    "example"
  ],
  "date1": "example",
  "date2": "example",
  "fields": [
    "example"
  ],
  "status": "example",
  "size": 0,
  "parts": [
    {
      "part_number": 0,
      "size": 0
    }
  ],
  "attribution": "example"
}

LogRequestPart

Response parts.

Name

Description

part_number

Type: integer

Part number.

size

Type: integer

Size in bytes.

Example
{
  "part_number": 0,
  "size": 0
}

LogRequest

Log request.

Name

Description

attribution

Type: string

Attribution model. Possible values:

  • FIRST: First click.
  • LAST: Last click.
  • LASTSIGN: Last non-direct click.
  • LAST_YANDEX_DIRECT_CLICK: Last click from Yandex Direct.
  • CROSS_DEVICE_LAST_SIGNIFICANT: Last non-direct click (cross-device), including sessions from all the user's devices.
  • CROSS_DEVICE_FIRST: First non-direct click (cross-device), including sessions from all the user's devices.
  • CROSS_DEVICE_LAST_YANDEX_DIRECT_CLICK: Last click from Yandex Direct (cross-device), including sessions from all the user's devices.
  • CROSS_DEVICE_LAST: Last click (cross-device), including sessions from all the user's devices.
  • AUTOMATIC: Automatic attribution.

Example: example

counter_id

Type: integer

Tag ID.

date1

Type: string

First day.

Example: example

date2

Type: string

Last day.

Example: example

fields

Type: string[]

Example
[
  "example"
]

parts

Type: LogRequestPart[]

Example
[
  {
    "part_number": 0,
    "size": 0
  }
]

request_id

Type: integer

Log request ID.

size

Type: integer

Size of logs in the request in bytes.

source

Type: string[]

Example
[
  "example"
]

status

Type: string

Request status:

  • created: Created.
  • canceled: Canceled.
  • processed: Processed.
  • cleaned_by_user: Cleared by user.
  • cleaned_automatically_as_too_old: Cleared automatically.
  • processing_failed: Processing error.
  • awaiting_retry: To be restarted.

Example: example

Example
{
  "request_id": 0,
  "counter_id": 0,
  "source": [
    "example"
  ],
  "date1": "example",
  "date2": "example",
  "fields": [
    "example"
  ],
  "status": "example",
  "size": 0,
  "parts": [
    {
      "part_number": 0,
      "size": 0
    }
  ],
  "attribution": "example"
}

No longer supported, please use an alternative and newer version.