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,33 @@ 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
+ region : Literal ["us-west-2" , "us-east-1" , "eu-central-1" , "ap-southeast-1" ]
31
+ """The region where the Session is running."""
32
+
33
+ started_at : datetime = FieldInfo (alias = "startedAt" )
34
+
35
+ status : Literal ["RUNNING" , "ERROR" , "TIMED_OUT" , "COMPLETED" ]
36
+
17
37
updated_at : datetime = FieldInfo (alias = "updatedAt" )
38
+
39
+ avg_cpu_usage : Optional [int ] = FieldInfo (alias = "avgCpuUsage" , default = None )
40
+ """CPU used by the Session"""
41
+
42
+ context_id : Optional [str ] = FieldInfo (alias = "contextId" , default = None )
43
+ """Optional. The Context linked to the Session."""
44
+
45
+ ended_at : Optional [datetime ] = FieldInfo (alias = "endedAt" , default = None )
46
+
47
+ memory_usage : Optional [int ] = FieldInfo (alias = "memoryUsage" , default = None )
48
+ """Memory used by the Session"""
0 commit comments