[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / FlowActionHandled

# Class: FlowActionHandled

Defined in: [flow/src/frameworkEvents.ts:31](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/frameworkEvents.ts#L31)

Emitted after a Flow component action round-trips over the WebSocket. Carries
the same rich context an HTTP request does: `ip`, and the request-scoped `ctx`
(an HttpContext with `user` set by re-run middleware, and the SQL queries that
ran during the action correlated to it).

## Constructors

### Constructor

> **new FlowActionHandled**(`component`, `action`, `durationMs`, `ok`, `ip`, `ctx`): `FlowActionHandled`

Defined in: [flow/src/frameworkEvents.ts:32](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/frameworkEvents.ts#L32)

#### Parameters

##### component

`string`

##### action

`string`

##### durationMs

`number`

##### ok

`boolean`

##### ip

`string` \| `null`

##### ctx

`object` \| `undefined`

#### Returns

`FlowActionHandled`

## Properties

### component

> `readonly` **component**: `string`

Defined in: [flow/src/frameworkEvents.ts:33](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/frameworkEvents.ts#L33)

***

### action

> `readonly` **action**: `string`

Defined in: [flow/src/frameworkEvents.ts:34](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/frameworkEvents.ts#L34)

***

### durationMs

> `readonly` **durationMs**: `number`

Defined in: [flow/src/frameworkEvents.ts:35](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/frameworkEvents.ts#L35)

***

### ok

> `readonly` **ok**: `boolean`

Defined in: [flow/src/frameworkEvents.ts:36](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/frameworkEvents.ts#L36)

***

### ip

> `readonly` **ip**: `string` \| `null`

Defined in: [flow/src/frameworkEvents.ts:37](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/frameworkEvents.ts#L37)

***

### ctx

> `readonly` **ctx**: `object` \| `undefined`

Defined in: [flow/src/frameworkEvents.ts:38](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/frameworkEvents.ts#L38)
