Skip to content

Commit aaf2aef

Browse files
committed
chore: auto-gen by protobufs
triggered by commit: instill-ai/protobufs@3a42751
1 parent 4c71663 commit aaf2aef

File tree

5 files changed

+49
-41
lines changed

5 files changed

+49
-41
lines changed

core/mgmt/v1beta/metric_pb2.py

Lines changed: 14 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/mgmt/v1beta/metric_pb2.pyi

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -405,15 +405,17 @@ global___ListPipelineTriggerChartRecordsResponse = ListPipelineTriggerChartRecor
405405

406406
@typing_extensions.final
407407
class CreditConsumptionChartRecord(google.protobuf.message.Message):
408-
"""CreditConsumptionChartRecord contains credit consumption metrics, aggregated
409-
by owner and time frame.
408+
"""CreditConsumptionChartRecord represents a timeline of Instill Credit
409+
consumption. It contains a collection of (timestamp, amount) pairs that
410+
represent the total credit consumption in a given time bucket.
410411
"""
411412

412413
DESCRIPTOR: google.protobuf.descriptor.Descriptor
413414

414415
CREDIT_OWNER_FIELD_NUMBER: builtins.int
415416
TIME_BUCKETS_FIELD_NUMBER: builtins.int
416417
AMOUNT_FIELD_NUMBER: builtins.int
418+
SOURCE_FIELD_NUMBER: builtins.int
417419
credit_owner: builtins.str
418420
"""Credit owner ID, e.g. `users/chef-wombat`."""
419421
@property
@@ -422,21 +424,25 @@ class CreditConsumptionChartRecord(google.protobuf.message.Message):
422424
@property
423425
def amount(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
424426
"""Total credit consumed in each time bucket."""
427+
source: builtins.str
428+
"""Credit consumption source (e.g. "pipeline", "model")."""
425429
def __init__(
426430
self,
427431
*,
428432
credit_owner: builtins.str = ...,
429433
time_buckets: collections.abc.Iterable[google.protobuf.timestamp_pb2.Timestamp] | None = ...,
430434
amount: collections.abc.Iterable[builtins.float] | None = ...,
435+
source: builtins.str = ...,
431436
) -> None: ...
432-
def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "credit_owner", b"credit_owner", "time_buckets", b"time_buckets"]) -> None: ...
437+
def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "credit_owner", b"credit_owner", "source", b"source", "time_buckets", b"time_buckets"]) -> None: ...
433438

434439
global___CreditConsumptionChartRecord = CreditConsumptionChartRecord
435440

436441
@typing_extensions.final
437442
class ListCreditConsumptionChartRecordsRequest(google.protobuf.message.Message):
438-
"""ListCreditConsumptionChartRecordsRequest represents a request to list pipeline
439-
trigger metrics, aggregated by pipeline ID and time frame.
443+
"""ListCreditConsumptionChartRecordsRequest represents a request to list credit
444+
consumption chart records for a given owner, grouped by time buckets and
445+
consumption sources.
440446
"""
441447

442448
DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -457,10 +463,14 @@ class ListCreditConsumptionChartRecordsRequest(google.protobuf.message.Message):
457463
"""
458464
@property
459465
def start(self) -> google.protobuf.timestamp_pb2.Timestamp:
460-
"""Beginning of the time range from which the records will be fetched."""
466+
"""Beginning of the time range from which the records will be fetched.
467+
The default value is the beginning of the current day, in UTC.
468+
"""
461469
@property
462470
def stop(self) -> google.protobuf.timestamp_pb2.Timestamp:
463-
"""End of the time range from which the records will be fetched."""
471+
"""End of the time range from which the records will be fetched.
472+
The default value is the current timestamp.
473+
"""
464474
def __init__(
465475
self,
466476
*,
@@ -482,25 +492,21 @@ global___ListCreditConsumptionChartRecordsRequest = ListCreditConsumptionChartRe
482492

483493
@typing_extensions.final
484494
class ListCreditConsumptionChartRecordsResponse(google.protobuf.message.Message):
485-
"""ListCreditConsumptionChartRecordsResponse contains a list of pipeline trigger
495+
"""ListCreditConsumptionChartRecordsResponse contains a list of credit consumption
486496
chart records.
487497
"""
488498

489499
DESCRIPTOR: google.protobuf.descriptor.Descriptor
490500

491501
CREDIT_CONSUMPTION_CHART_RECORDS_FIELD_NUMBER: builtins.int
492-
TOTAL_AMOUNT_FIELD_NUMBER: builtins.int
493502
@property
494503
def credit_consumption_chart_records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CreditConsumptionChartRecord]:
495-
"""A list of pipeline trigger records."""
496-
total_amount: builtins.float
497-
"""Sum of the total credit consumed within the time range."""
504+
"""Credit consumption timelines, aggregated by source."""
498505
def __init__(
499506
self,
500507
*,
501508
credit_consumption_chart_records: collections.abc.Iterable[global___CreditConsumptionChartRecord] | None = ...,
502-
total_amount: builtins.float = ...,
503509
) -> None: ...
504-
def ClearField(self, field_name: typing_extensions.Literal["credit_consumption_chart_records", b"credit_consumption_chart_records", "total_amount", b"total_amount"]) -> None: ...
510+
def ClearField(self, field_name: typing_extensions.Literal["credit_consumption_chart_records", b"credit_consumption_chart_records"]) -> None: ...
505511

506512
global___ListCreditConsumptionChartRecordsResponse = ListCreditConsumptionChartRecordsResponse

0 commit comments

Comments
 (0)