Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • Машинное обучение
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Истории успеха
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Serverless Integrations
  • Правила тарификации
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
        • Start
        • Stop
        • Terminate
        • Get
        • GetHistory
        • List
  • История изменений

В этой статье:

  • gRPC request
  • GetExecutionHistoryRequest
  • GetExecutionHistoryResponse
  • ExecutionPreview
  • HistoryEntry
  • HistoryEntryInput
  • HistoryEntryOutput
  • HistoryEntryError
  1. Справочник API Workflows
  2. gRPC (англ.)
  3. Execution
  4. GetHistory

Workflows Service, gRPC: ExecutionService.GetHistory

Статья создана
Yandex Cloud
Обновлена 26 ноября 2024 г.
  • gRPC request
  • GetExecutionHistoryRequest
  • GetExecutionHistoryResponse
  • ExecutionPreview
  • HistoryEntry
  • HistoryEntryInput
  • HistoryEntryOutput
  • HistoryEntryError

Retrieves detailed history of specified Workflow execution.

gRPC requestgRPC request

rpc GetHistory (GetExecutionHistoryRequest) returns (GetExecutionHistoryResponse)

GetExecutionHistoryRequestGetExecutionHistoryRequest

{
  "execution_id": "string"
}

Field

Description

execution_id

string

Required field. ID of the Workflow execution.

GetExecutionHistoryResponseGetExecutionHistoryResponse

{
  "execution": {
    "id": "string",
    "workflow_id": "string",
    "status": "Status",
    "started_at": "google.protobuf.Timestamp",
    "duration": "google.protobuf.Duration"
  },
  "entries": [
    {
      "id": "string",
      "title": "string",
      "description": "string",
      "started_at": "google.protobuf.Timestamp",
      "duration": "google.protobuf.Duration",
      "input": {
        // Includes only one of the fields `input_json`
        "input_json": "string"
        // end of the list of possible fields
      },
      "output": {
        // Includes only one of the fields `output_json`
        "output_json": "string"
        // end of the list of possible fields
      },
      "error": {
        "message": "string",
        "error_code": "string"
      },
      "status": "Status",
      "type": "string",
      "attempts": "int64",
      "last_error": {
        "message": "string",
        "error_code": "string"
      }
    }
  ]
}

Field

Description

execution

ExecutionPreview

Workflow execution details.

entries[]

HistoryEntry

Workflow execution detailed history items.

ExecutionPreviewExecutionPreview

Field

Description

id

string

ID of the Workflow execution. Generated at creation time.

workflow_id

string

ID of the Workflow.

status

enum Status

Status of the Workflow execution

  • STATUS_UNSPECIFIED
  • QUEUED: Workflow execution is being queued.
  • RUNNING: Workflow execution is running.
  • PAUSED: Workflow execution is being paused.
  • STOPPED: Workflow execution is stopped.
  • FAILED: Workflow execution is failed.
  • FINISHED: Workflow execution is finished.

started_at

google.protobuf.Timestamp

Start timestamp for the Workflow execution.

duration

google.protobuf.Duration

Duration of the Workflow execution.

HistoryEntryHistoryEntry

Field

Description

id

string

ID of the Workflow step.

title

string

Title of the Workflow step.

description

string

Description of the Workflow step.

started_at

google.protobuf.Timestamp

Start timestamp for the Workflow step.

duration

google.protobuf.Duration

Duration of the Workflow step.

input

HistoryEntryInput

Input data for the Workflow step.

output

HistoryEntryOutput

Result of the Workflow step.

error

HistoryEntryError

Error details, in case Workflow step failed.

status

enum Status

Status of the Workflow step.

  • STATUS_UNSPECIFIED
  • SCHEDULED: Step execution is being scheduled.
  • STARTED: Step execution is started.
  • COMPLETED: Step execution is completed.
  • FAILED: Step execution is failed.
  • CANCEL_REQUESTED: Step execution is requested to be cancelled.
  • CANCELLED: Step execution is canceled.

type

string

Type of the Workflow step (for example, FunctionCall or HttpCall).

attempts

int64

Number of attempts (including all retries of unsuccessful attempts). Value "1" means there were no retries.

last_error

HistoryEntryError

Last received error details in case of retries.

HistoryEntryInputHistoryEntryInput

Field

Description

input_json

string

JSON input data for the Workflow step.

Includes only one of the fields input_json.

HistoryEntryOutputHistoryEntryOutput

Field

Description

output_json

string

JSON result for the Workflow step.

Includes only one of the fields output_json.

HistoryEntryErrorHistoryEntryError

Field

Description

message

string

Error message of the Workflow step.

error_code

string

Error code of the Workflow step.

Была ли статья полезна?

Предыдущая
Get
Следующая
List
Проект Яндекса
© 2025 ООО «Яндекс.Облако»