Skip to content

Commit 6aac358

Browse files
authored
feat(cockpit): add traces infos to plan (#345)
1 parent 0477161 commit 6aac358

File tree

4 files changed

+40
-8
lines changed

4 files changed

+40
-8
lines changed

scaleway-async/scaleway_async/cockpit/v1beta1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,15 @@ def unmarshal_Plan(data: Any) -> Plan:
243243
field = data.get("retention_price", None)
244244
args["retention_price"] = field
245245

246+
field = data.get("retention_traces_interval", None)
247+
args["retention_traces_interval"] = field
248+
246249
field = data.get("sample_ingestion_price", None)
247250
args["sample_ingestion_price"] = field
248251

252+
field = data.get("traces_ingestion_price", None)
253+
args["traces_ingestion_price"] = field
254+
249255
return Plan(**args)
250256

251257

scaleway-async/scaleway_async/cockpit/v1beta1/types.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,22 +426,32 @@ class Plan:
426426

427427
retention_metrics_interval: Optional[str]
428428
"""
429-
Retention for metrics.
429+
Interval of time during which Scaleway's Cockpit keeps your metrics.
430430
"""
431431

432432
retention_logs_interval: Optional[str]
433433
"""
434-
Retention for logs.
434+
Interval of time during which Scaleway's Cockpit keeps your logs.
435+
"""
436+
437+
retention_traces_interval: Optional[str]
438+
"""
439+
Interval of time during which Scaleway's Cockpit keeps your traces.
435440
"""
436441

437442
sample_ingestion_price: int
438443
"""
439-
Ingestion price for 1 million samples in cents.
444+
Ingestion price in cents for 1 million samples.
440445
"""
441446

442447
logs_ingestion_price: int
443448
"""
444-
Ingestion price for 1 GB of logs in cents.
449+
Ingestion price in cents for 1 GB of logs.
450+
"""
451+
452+
traces_ingestion_price: int
453+
"""
454+
Ingestion price in cents for 1 GB of traces.
445455
"""
446456

447457
retention_price: int

scaleway/scaleway/cockpit/v1beta1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,15 @@ def unmarshal_Plan(data: Any) -> Plan:
243243
field = data.get("retention_price", None)
244244
args["retention_price"] = field
245245

246+
field = data.get("retention_traces_interval", None)
247+
args["retention_traces_interval"] = field
248+
246249
field = data.get("sample_ingestion_price", None)
247250
args["sample_ingestion_price"] = field
248251

252+
field = data.get("traces_ingestion_price", None)
253+
args["traces_ingestion_price"] = field
254+
249255
return Plan(**args)
250256

251257

scaleway/scaleway/cockpit/v1beta1/types.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,22 +426,32 @@ class Plan:
426426

427427
retention_metrics_interval: Optional[str]
428428
"""
429-
Retention for metrics.
429+
Interval of time during which Scaleway's Cockpit keeps your metrics.
430430
"""
431431

432432
retention_logs_interval: Optional[str]
433433
"""
434-
Retention for logs.
434+
Interval of time during which Scaleway's Cockpit keeps your logs.
435+
"""
436+
437+
retention_traces_interval: Optional[str]
438+
"""
439+
Interval of time during which Scaleway's Cockpit keeps your traces.
435440
"""
436441

437442
sample_ingestion_price: int
438443
"""
439-
Ingestion price for 1 million samples in cents.
444+
Ingestion price in cents for 1 million samples.
440445
"""
441446

442447
logs_ingestion_price: int
443448
"""
444-
Ingestion price for 1 GB of logs in cents.
449+
Ingestion price in cents for 1 GB of logs.
450+
"""
451+
452+
traces_ingestion_price: int
453+
"""
454+
Ingestion price in cents for 1 GB of traces.
445455
"""
446456

447457
retention_price: int

0 commit comments

Comments
 (0)