1
1
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
+ from typing import Optional
3
4
from datetime import datetime
5
+ from typing_extensions import Literal
4
6
5
7
from pydantic import Field as FieldInfo
6
8
@@ -14,4 +16,30 @@ class Session(BaseModel):
14
16
15
17
created_at : datetime = FieldInfo (alias = "createdAt" )
16
18
19
+ expires_at : datetime = FieldInfo (alias = "expiresAt" )
20
+
21
+ keep_alive : bool = FieldInfo (alias = "keepAlive" )
22
+ """Indicates if the Session was created to be kept alive upon disconnections"""
23
+
24
+ project_id : str = FieldInfo (alias = "projectId" )
25
+ """The Project ID linked to the Session."""
26
+
27
+ proxy_bytes : int = FieldInfo (alias = "proxyBytes" )
28
+ """Bytes used via the [Proxy](/features/stealth-mode#proxies-and-residential-ips)"""
29
+
30
+ started_at : datetime = FieldInfo (alias = "startedAt" )
31
+
32
+ status : Literal ["RUNNING" , "ERROR" , "TIMED_OUT" , "COMPLETED" ]
33
+
17
34
updated_at : datetime = FieldInfo (alias = "updatedAt" )
35
+
36
+ avg_cpu_usage : Optional [int ] = FieldInfo (alias = "avgCpuUsage" , default = None )
37
+ """CPU used by the Session"""
38
+
39
+ context_id : Optional [str ] = FieldInfo (alias = "contextId" , default = None )
40
+ """Optional. The Context linked to the Session."""
41
+
42
+ ended_at : Optional [datetime ] = FieldInfo (alias = "endedAt" , default = None )
43
+
44
+ memory_usage : Optional [int ] = FieldInfo (alias = "memoryUsage" , default = None )
45
+ """Memory used by the Session"""
0 commit comments