[Документация Yandex Cloud](../../../../../index.md) > [Yandex Audit Trails](../../../../index.md) > Справочник аудитных логов (англ.) > serverless > ExecutionFinished

# Serverless Workflows Audit Trails Events: ExecutionFinished

## Event JSON schema {#yandex.cloud.audit.serverless.workflows.ExecutionFinished2-schema}

```json
{
  "eventId": "string",
  "eventSource": "string",
  "eventType": "string",
  "eventTime": "string",
  "eventStatus": "string",
  "error": {
    "code": "integer",
    "message": "string",
    "details": [
      "object"
    ]
  },
  "details": {
    "executionId": "string",
    "workflowId": "string",
    "executionStatus": "string",
    // Includes only one of the fields `duration`
    "duration": "string",
    // end of the list of possible fields
    // Includes only one of the fields `error`
    "error": {
      "message": "string",
      "errorCode": "string"
    }
    // end of the list of possible fields
  }
}
```

## Field description {#yandex.cloud.audit.serverless.workflows.ExecutionFinished2}

#|
||Field | Description ||
|| eventId | **string** ||
|| eventSource | **string** ||
|| eventType | **string** ||
|| eventTime | **string** (date-time)

String in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. The range of possible values is from
`0001-01-01T00:00:00Z` to `9999-12-31T23:59:59.999999999Z`, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the
[Protocol Buffers reference](https://developers.google.com/protocol-buffers/docs/reference/overview).
In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). ||
|| eventStatus | **enum** (EventStatus)

- `STARTED`
- `ERROR`
- `DONE`
- `CANCELLED`
- `RUNNING` ||
|| error | **[Status](#google.rpc.Status)**

The error result of the operation in case of failure or cancellation. ||
|| details | **[EventDetails](#yandex.cloud.audit.serverless.workflows.ExecutionFinished.EventDetails)** ||
|#

## Status {#google.rpc.Status}

The error result of the operation in case of failure or cancellation.

#|
||Field | Description ||
|| code | **integer** (int32)

Error code. An enum value of [google.rpc.Code](https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto). ||
|| message | **string**

An error message. ||
|| details[] | **object**

A list of messages that carry the error details. ||
|#

## EventDetails {#yandex.cloud.audit.serverless.workflows.ExecutionFinished.EventDetails}

#|
||Field | Description ||
|| executionId | **string** ||
|| workflowId | **string** ||
|| executionStatus | **enum** (Status)

- `QUEUED`
- `RUNNING`
- `PAUSED`
- `STOPPED`
- `FAILED`
- `FINISHED` ||
|| duration | **string** (duration)

Includes only one of the fields `duration`. ||
|| error | **[ExecutionError](#yandex.cloud.serverless.workflows.v1.ExecutionError)**

Includes only one of the fields `error`. ||
|#

## ExecutionError {#yandex.cloud.serverless.workflows.v1.ExecutionError}

#|
||Field | Description ||
|| message | **string** ||
|| errorCode | **string** ||
|#