# <a id="bitdrift.public.unary.workflows.v1.CapturedSession"></a>CapturedSession

**Source definition:** [`src/bitdrift/public/unary/workflows/v1/captured_sessions.proto#L14-L32`](<https://github.com/bitdriftlabs/api/blob/main/src/bitdrift/public/unary/workflows/v1/captured_sessions.proto#L14-L32>)

<section class="proto-fields-table" markdown>
| Field | Type | Description |
|---|---|---|
| session_id | <span class="proto-type proto-type-primitive">string</span><br><em class="proto-field-annotation">at least 1 char</em> | The unique identifier of the captured session. |
| first_seen | <span class="proto-type proto-type-well-known">[google.protobuf.Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp "google.protobuf.Timestamp")</span> | The timestamp of the first log seen for this session. |
| last_seen | <span class="proto-type proto-type-well-known">[google.protobuf.Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp "google.protobuf.Timestamp")</span> | The timestamp of the most recent log seen for this session. |
| count | <span class="proto-type proto-type-primitive">uint64</span> | The number of times the session was seen. This will always be set to 1 when performing a  global search. For a per-action search, it will effectively return the number of trigger logs  for the session. |
| fields | <span class="proto-type proto-type-primitive">map<string, string></span> | The fields associated with the captured session. They are similar to the fields in the  insights. |

</section>
<p class="h4">Example</p>
```json
{
  "count": 42,
  "fields": {
    "key": ""
  },
  "first_seen": "2024-01-15T09:30:00Z",
  "last_seen": "2024-01-15T09:30:00Z",
  "session_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
```

