guardcoreapi 0.2.5.dev20251027145234__py3-none-any.whl → 0.2.5.dev20251029142826__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.

@@ -2,18 +2,33 @@ from datetime import datetime
2
2
  from pydantic import BaseModel
3
3
 
4
4
 
5
- class UsageStats(BaseModel):
6
- start: datetime
7
- end: datetime
5
+ class UsageDetailStats(BaseModel):
6
+ start: datetime | None = None
7
+ end: datetime | None = None
8
+ remark: str | None = None
8
9
  usage: int
9
10
 
10
11
 
11
12
  class StatsResponse(BaseModel):
12
- total_subscription: int
13
- active_subscription: int
14
- inactive_subscription: 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
13
+ total_subscriptions: int
14
+ active_subscriptions: int
15
+ inactive_subscriptions: int
16
+ online_subscriptions: int
17
+ most_usage_subscription: str | None = None
18
+ most_usage_subscriptions: list[UsageDetailStats]
19
+
20
+ total_admins: int
21
+ active_admins: int
22
+ inactive_admins: int
23
+ most_usage_admins: list[UsageDetailStats]
24
+
25
+ total_nodes: int
26
+ active_nodes: int
27
+ inactive_nodes: int
28
+ most_usage_nodes: list[UsageDetailStats]
29
+
30
+ total_lifetime_usages: int
31
+ total_day_usages: int
32
+ total_week_usages: list[UsageDetailStats]
33
+ last_24h_usages: list[UsageDetailStats]
34
+ last_7d_usages: list[UsageDetailStats]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: guardcoreapi
3
- Version: 0.2.5.dev20251027145234
3
+ Version: 0.2.5.dev20251029142826
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=5MMu2RdZs4UBrwfgQeZbms7NmGTp7mySYAIDU-Fg-NU,399
10
+ guardcoreapi/types/stats.py,sha256=mgcOoWFntBGtKWh7fP-RFT3zh1WGQ8O9RJSnZYj4hcM,885
11
11
  guardcoreapi/types/subscriptions.py,sha256=HS8z3zhmS8RYa-D4CEGEt5WJ_SDSJ_dIW41uxwgdZ6I,1388
12
- guardcoreapi-0.2.5.dev20251027145234.dist-info/licenses/LICENSE,sha256=BPTJfvegcaek6E2PQ2rViLbxbfB1AbjIauxVQWo5Od4,1062
13
- guardcoreapi-0.2.5.dev20251027145234.dist-info/METADATA,sha256=8oqAI66DYTcD0WwuXo0_zgnz_nvdkl6AAL8zB1Bxn6s,291
14
- guardcoreapi-0.2.5.dev20251027145234.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- guardcoreapi-0.2.5.dev20251027145234.dist-info/top_level.txt,sha256=ArZR_iOVG8XvUCTMHioVgKI8CkJOX_yH8t7898OXBF8,13
16
- guardcoreapi-0.2.5.dev20251027145234.dist-info/RECORD,,
12
+ guardcoreapi-0.2.5.dev20251029142826.dist-info/licenses/LICENSE,sha256=BPTJfvegcaek6E2PQ2rViLbxbfB1AbjIauxVQWo5Od4,1062
13
+ guardcoreapi-0.2.5.dev20251029142826.dist-info/METADATA,sha256=h51_twTQpxhDbO9wFumE2Rigmxw0PM0rg3kuAslp6qU,291
14
+ guardcoreapi-0.2.5.dev20251029142826.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ guardcoreapi-0.2.5.dev20251029142826.dist-info/top_level.txt,sha256=ArZR_iOVG8XvUCTMHioVgKI8CkJOX_yH8t7898OXBF8,13
16
+ guardcoreapi-0.2.5.dev20251029142826.dist-info/RECORD,,