11from __future__ import annotations
22
3+ from datetime import datetime
34from functools import wraps
45from io import BytesIO
56from typing import TYPE_CHECKING , Any , Callable , Coroutine , TypeVar
1112from ._internal .decorators import validate
1213from .data import (
1314 AppData ,
14- Snapshot ,
15- SnapshotInfo ,
1615 DeployData ,
1716 DNSRecord ,
1817 DomainAnalytics ,
1918 FileInfo ,
2019 LogsData ,
20+ Snapshot ,
21+ SnapshotInfo ,
2122 StatusData ,
2223)
2324from .file import File
@@ -185,6 +186,7 @@ class Application(CaptureListenerManager):
185186 '_lang' ,
186187 '_cluster' ,
187188 'always_avoid_listeners' ,
189+ '_created_at'
188190 ]
189191
190192 def __init__ (
@@ -196,9 +198,10 @@ def __init__(
196198 ram : int ,
197199 lang : str ,
198200 cluster : str ,
201+ created_at : datetime ,
199202 domain : str | None ,
200203 custom : str | None ,
201- desc : str | None = None ,
204+ desc : str | None = None
202205 ) -> None :
203206 """
204207 The `__init__` method is called when the class is instantiated.
@@ -234,6 +237,8 @@ def __init__(
234237 self ._listener : CaptureListenerManager = CaptureListenerManager ()
235238 self .cache : AppCache = AppCache ()
236239 self .always_avoid_listeners : bool = False
240+ self ._created_at : datetime = created_at
241+
237242 super ().__init__ ()
238243
239244 def __repr__ (self ) -> str :
@@ -351,6 +356,17 @@ def custom(self) -> str | None:
351356 """
352357 return self ._custom
353358
359+ @property
360+ def created_at (self ) -> datetime :
361+ """
362+ The created_at function is a property that returns the date and time
363+ when the application was created.
364+
365+ :return: The created_at attribute of the application
366+ :rtype: datetime
367+ """
368+ return self ._created_at
369+
354370 @staticmethod
355371 def _notify_listener (
356372 endpoint : Endpoint ,
0 commit comments