Skip to content

Commit 95aa591

Browse files
Merge branch 'master' into clean-pydantic-model-dump-warnings
2 parents d6481da + dfb4149 commit 95aa591

File tree

5 files changed

+132
-85
lines changed

5 files changed

+132
-85
lines changed

packages/models-library/src/models_library/api_schemas_webserver/resource_usage.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from ..projects import ProjectID
77
from ..projects_nodes_io import NodeID
88
from ..resource_tracker import (
9+
CreditTransactionStatus,
910
HardwareInfo,
1011
PricingPlanClassification,
1112
PricingPlanId,
@@ -27,13 +28,15 @@
2728

2829
class ServiceRunGet(
2930
BaseModel
30-
): # NOTE: this is already in use so I didnt modidy inheritance from OutputSchema
31+
): # NOTE: this is already in use so I didnt modify inheritance from OutputSchema
3132
service_run_id: ServiceRunID
3233
wallet_id: WalletID | None
3334
wallet_name: str | None
3435
user_id: UserID
36+
user_email: str
3537
project_id: ProjectID
3638
project_name: str
39+
project_tags: list[str]
3740
node_id: NodeID
3841
node_name: str
3942
root_parent_project_id: ProjectID
@@ -44,6 +47,9 @@ class ServiceRunGet(
4447
started_at: datetime
4548
stopped_at: datetime | None
4649
service_run_status: ServiceRunStatus
50+
# Cost in credits
51+
credit_cost: Decimal | None
52+
transaction_status: CreditTransactionStatus | None
4753

4854

4955
class PricingUnitGet(OutputSchema):

0 commit comments

Comments
 (0)