guardcoreapi 0.2.3.dev20251025231518__py3-none-any.whl → 0.2.3.dev20251027143148__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of guardcoreapi might be problematic. Click here for more details.

@@ -1,12 +1,19 @@
1
+ from datetime import datetime
1
2
  from pydantic import BaseModel
2
3
 
3
4
 
5
+ class UsageStats(BaseModel):
6
+ start: datetime
7
+ end: datetime
8
+ usage: int
9
+
10
+
4
11
  class StatsResponse(BaseModel):
5
12
  total_subscription: int
6
13
  active_subscription: int
7
14
  inactive_subscription: int
8
-
9
- hour_usages: int
10
- today_usages: int
11
- yesterday_usages: int
12
- total_usages: int
15
+ last_24_hours: list[UsageStats]
16
+ today_usage: int
17
+ last_7_days: list[UsageStats]
18
+ week_usage: int
19
+ total_usage: int
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: guardcoreapi
3
- Version: 0.2.3.dev20251025231518
3
+ Version: 0.2.3.dev20251027143148
4
4
  Summary: Guard Management Core Api Python lib
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -7,10 +7,10 @@ guardcoreapi/types/__init__.py,sha256=t07YOFdjubkHZqHrn_nlaEvCPdhiJUFxyFyZt8DNwJ
7
7
  guardcoreapi/types/admins.py,sha256=YaA0dxIkcTm_a0LfaQ7gVYedhFQVI6hbHK6WIXAIAVE,2851
8
8
  guardcoreapi/types/nodes.py,sha256=U4uCTm2TYETysceN_5ap4dP2if6sIUyEnavCvzlNpUo,1075
9
9
  guardcoreapi/types/services.py,sha256=3lpP76Q9iij2zSEXutDg1IatIslLokQ-DNPvSdckRCQ,369
10
- guardcoreapi/types/stats.py,sha256=yzSeJU39S-2djs6mNoLkSf3K2RDE994buu7T04-wDXQ,245
10
+ guardcoreapi/types/stats.py,sha256=5MMu2RdZs4UBrwfgQeZbms7NmGTp7mySYAIDU-Fg-NU,399
11
11
  guardcoreapi/types/subscriptions.py,sha256=HS8z3zhmS8RYa-D4CEGEt5WJ_SDSJ_dIW41uxwgdZ6I,1388
12
- guardcoreapi-0.2.3.dev20251025231518.dist-info/licenses/LICENSE,sha256=BPTJfvegcaek6E2PQ2rViLbxbfB1AbjIauxVQWo5Od4,1062
13
- guardcoreapi-0.2.3.dev20251025231518.dist-info/METADATA,sha256=aKWlwCtFShmTm5jQ-x36jvVPydbf9UYDEEvbuKPXLCU,291
14
- guardcoreapi-0.2.3.dev20251025231518.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- guardcoreapi-0.2.3.dev20251025231518.dist-info/top_level.txt,sha256=ArZR_iOVG8XvUCTMHioVgKI8CkJOX_yH8t7898OXBF8,13
16
- guardcoreapi-0.2.3.dev20251025231518.dist-info/RECORD,,
12
+ guardcoreapi-0.2.3.dev20251027143148.dist-info/licenses/LICENSE,sha256=BPTJfvegcaek6E2PQ2rViLbxbfB1AbjIauxVQWo5Od4,1062
13
+ guardcoreapi-0.2.3.dev20251027143148.dist-info/METADATA,sha256=_pYd2wCnJRenzX1j1xue-Mqop8N7_7ldH1ru03ZaaS0,291
14
+ guardcoreapi-0.2.3.dev20251027143148.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ guardcoreapi-0.2.3.dev20251027143148.dist-info/top_level.txt,sha256=ArZR_iOVG8XvUCTMHioVgKI8CkJOX_yH8t7898OXBF8,13
16
+ guardcoreapi-0.2.3.dev20251027143148.dist-info/RECORD,,