Skip to content

Commit d42baf0

Browse files
committed
chore: auto-gen by protobufs
triggered by commit: instill-ai/protobufs@6b98dfb
1 parent f6c6ec4 commit d42baf0

File tree

5 files changed

+199
-7
lines changed

5 files changed

+199
-7
lines changed

core/mgmt/v1beta/metric_pb2.py

Lines changed: 23 additions & 5 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: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,3 +402,105 @@ class ListPipelineTriggerChartRecordsResponse(google.protobuf.message.Message):
402402
def ClearField(self, field_name: typing_extensions.Literal["pipeline_trigger_chart_records", b"pipeline_trigger_chart_records"]) -> None: ...
403403

404404
global___ListPipelineTriggerChartRecordsResponse = ListPipelineTriggerChartRecordsResponse
405+
406+
@typing_extensions.final
407+
class CreditConsumptionChartRecord(google.protobuf.message.Message):
408+
"""CreditConsumptionChartRecord contains credit consumption metrics, aggregated
409+
by owner and time frame.
410+
"""
411+
412+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
413+
414+
CREDIT_OWNER_FIELD_NUMBER: builtins.int
415+
TIME_BUCKETS_FIELD_NUMBER: builtins.int
416+
AMOUNT_FIELD_NUMBER: builtins.int
417+
credit_owner: builtins.str
418+
"""Credit owner ID, e.g. `users/chef-wombat`."""
419+
@property
420+
def time_buckets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.timestamp_pb2.Timestamp]:
421+
"""Time buckets."""
422+
@property
423+
def amount(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
424+
"""Total credit consumed in each time bucket."""
425+
def __init__(
426+
self,
427+
*,
428+
credit_owner: builtins.str = ...,
429+
time_buckets: collections.abc.Iterable[google.protobuf.timestamp_pb2.Timestamp] | None = ...,
430+
amount: collections.abc.Iterable[builtins.float] | None = ...,
431+
) -> None: ...
432+
def ClearField(self, field_name: typing_extensions.Literal["amount", b"amount", "credit_owner", b"credit_owner", "time_buckets", b"time_buckets"]) -> None: ...
433+
434+
global___CreditConsumptionChartRecord = CreditConsumptionChartRecord
435+
436+
@typing_extensions.final
437+
class ListCreditConsumptionChartRecordsRequest(google.protobuf.message.Message):
438+
"""ListCreditConsumptionChartRecordsRequest represents a request to list pipeline
439+
trigger metrics, aggregated by pipeline ID and time frame.
440+
"""
441+
442+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
443+
444+
OWNER_FIELD_NUMBER: builtins.int
445+
AGGREGATION_WINDOW_FIELD_NUMBER: builtins.int
446+
START_FIELD_NUMBER: builtins.int
447+
STOP_FIELD_NUMBER: builtins.int
448+
owner: builtins.str
449+
"""The user or organization to which the credit belongs.
450+
Format: `{[users|organizations]}/{id}`.
451+
"""
452+
aggregation_window: builtins.str
453+
"""Aggregation window. The value is a positive duration string, i.e. a
454+
sequence of decimal numbers, each with optional fraction and a unit
455+
suffix, such as "300ms", "1.5h" or "2h45m".
456+
The minimum (and default) window is 1h.
457+
"""
458+
@property
459+
def start(self) -> google.protobuf.timestamp_pb2.Timestamp:
460+
"""Beginning of the time range from which the records will be fetched."""
461+
@property
462+
def stop(self) -> google.protobuf.timestamp_pb2.Timestamp:
463+
"""End of the time range from which the records will be fetched."""
464+
def __init__(
465+
self,
466+
*,
467+
owner: builtins.str = ...,
468+
aggregation_window: builtins.str | None = ...,
469+
start: google.protobuf.timestamp_pb2.Timestamp | None = ...,
470+
stop: google.protobuf.timestamp_pb2.Timestamp | None = ...,
471+
) -> None: ...
472+
def HasField(self, field_name: typing_extensions.Literal["_aggregation_window", b"_aggregation_window", "_start", b"_start", "_stop", b"_stop", "aggregation_window", b"aggregation_window", "start", b"start", "stop", b"stop"]) -> builtins.bool: ...
473+
def ClearField(self, field_name: typing_extensions.Literal["_aggregation_window", b"_aggregation_window", "_start", b"_start", "_stop", b"_stop", "aggregation_window", b"aggregation_window", "owner", b"owner", "start", b"start", "stop", b"stop"]) -> None: ...
474+
@typing.overload
475+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_aggregation_window", b"_aggregation_window"]) -> typing_extensions.Literal["aggregation_window"] | None: ...
476+
@typing.overload
477+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_start", b"_start"]) -> typing_extensions.Literal["start"] | None: ...
478+
@typing.overload
479+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_stop", b"_stop"]) -> typing_extensions.Literal["stop"] | None: ...
480+
481+
global___ListCreditConsumptionChartRecordsRequest = ListCreditConsumptionChartRecordsRequest
482+
483+
@typing_extensions.final
484+
class ListCreditConsumptionChartRecordsResponse(google.protobuf.message.Message):
485+
"""ListCreditConsumptionChartRecordsResponse contains a list of pipeline trigger
486+
chart records.
487+
"""
488+
489+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
490+
491+
CREDIT_CONSUMPTION_CHART_RECORDS_FIELD_NUMBER: builtins.int
492+
TOTAL_AMOUNT_FIELD_NUMBER: builtins.int
493+
@property
494+
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."""
498+
def __init__(
499+
self,
500+
*,
501+
credit_consumption_chart_records: collections.abc.Iterable[global___CreditConsumptionChartRecord] | None = ...,
502+
total_amount: builtins.float = ...,
503+
) -> 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: ...
505+
506+
global___ListCreditConsumptionChartRecordsResponse = ListCreditConsumptionChartRecordsResponse

0 commit comments

Comments
 (0)