|
| 1 | +from buf.validate import validate_pb2 as _validate_pb2 |
| 2 | +from google.api import annotations_pb2 as _annotations_pb2 |
| 3 | +from google.api import field_behavior_pb2 as _field_behavior_pb2 |
| 4 | +from google.api import visibility_pb2 as _visibility_pb2 |
| 5 | +from google.protobuf import timestamp_pb2 as _timestamp_pb2 |
| 6 | +from protoc_gen_openapiv2.options import annotations_pb2 as _annotations_pb2_1 |
| 7 | +from scalekit.v1.options import options_pb2 as _options_pb2 |
| 8 | +from google.protobuf.internal import containers as _containers |
| 9 | +from google.protobuf import descriptor as _descriptor |
| 10 | +from google.protobuf import message as _message |
| 11 | +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union |
| 12 | + |
| 13 | +DESCRIPTOR: _descriptor.FileDescriptor |
| 14 | + |
| 15 | +class GetOverviewStatsRequest(_message.Message): |
| 16 | + __slots__ = ("start_time", "end_time", "provider", "status", "error_code", "connection_name") |
| 17 | + START_TIME_FIELD_NUMBER: _ClassVar[int] |
| 18 | + END_TIME_FIELD_NUMBER: _ClassVar[int] |
| 19 | + PROVIDER_FIELD_NUMBER: _ClassVar[int] |
| 20 | + STATUS_FIELD_NUMBER: _ClassVar[int] |
| 21 | + ERROR_CODE_FIELD_NUMBER: _ClassVar[int] |
| 22 | + CONNECTION_NAME_FIELD_NUMBER: _ClassVar[int] |
| 23 | + start_time: _timestamp_pb2.Timestamp |
| 24 | + end_time: _timestamp_pb2.Timestamp |
| 25 | + provider: _containers.RepeatedScalarFieldContainer[str] |
| 26 | + status: _containers.RepeatedScalarFieldContainer[str] |
| 27 | + error_code: _containers.RepeatedScalarFieldContainer[str] |
| 28 | + connection_name: str |
| 29 | + def __init__(self, start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., provider: _Optional[_Iterable[str]] = ..., status: _Optional[_Iterable[str]] = ..., error_code: _Optional[_Iterable[str]] = ..., connection_name: _Optional[str] = ...) -> None: ... |
| 30 | + |
| 31 | +class OverviewStats(_message.Message): |
| 32 | + __slots__ = ("total", "success", "errors", "provider_errors", "platform_errors", "top_error_codes", "connector_breakdown", "time_series") |
| 33 | + TOTAL_FIELD_NUMBER: _ClassVar[int] |
| 34 | + SUCCESS_FIELD_NUMBER: _ClassVar[int] |
| 35 | + ERRORS_FIELD_NUMBER: _ClassVar[int] |
| 36 | + PROVIDER_ERRORS_FIELD_NUMBER: _ClassVar[int] |
| 37 | + PLATFORM_ERRORS_FIELD_NUMBER: _ClassVar[int] |
| 38 | + TOP_ERROR_CODES_FIELD_NUMBER: _ClassVar[int] |
| 39 | + CONNECTOR_BREAKDOWN_FIELD_NUMBER: _ClassVar[int] |
| 40 | + TIME_SERIES_FIELD_NUMBER: _ClassVar[int] |
| 41 | + total: int |
| 42 | + success: int |
| 43 | + errors: int |
| 44 | + provider_errors: int |
| 45 | + platform_errors: int |
| 46 | + top_error_codes: _containers.RepeatedCompositeFieldContainer[ErrorCodeCount] |
| 47 | + connector_breakdown: _containers.RepeatedCompositeFieldContainer[ConnectorStat] |
| 48 | + time_series: _containers.RepeatedCompositeFieldContainer[TimeSeriesBucket] |
| 49 | + def __init__(self, total: _Optional[int] = ..., success: _Optional[int] = ..., errors: _Optional[int] = ..., provider_errors: _Optional[int] = ..., platform_errors: _Optional[int] = ..., top_error_codes: _Optional[_Iterable[_Union[ErrorCodeCount, _Mapping]]] = ..., connector_breakdown: _Optional[_Iterable[_Union[ConnectorStat, _Mapping]]] = ..., time_series: _Optional[_Iterable[_Union[TimeSeriesBucket, _Mapping]]] = ...) -> None: ... |
| 50 | + |
| 51 | +class ErrorCodeCount(_message.Message): |
| 52 | + __slots__ = ("error_code", "count") |
| 53 | + ERROR_CODE_FIELD_NUMBER: _ClassVar[int] |
| 54 | + COUNT_FIELD_NUMBER: _ClassVar[int] |
| 55 | + error_code: str |
| 56 | + count: int |
| 57 | + def __init__(self, error_code: _Optional[str] = ..., count: _Optional[int] = ...) -> None: ... |
| 58 | + |
| 59 | +class ConnectorStat(_message.Message): |
| 60 | + __slots__ = ("provider", "total", "success", "errors", "provider_errors", "platform_errors") |
| 61 | + PROVIDER_FIELD_NUMBER: _ClassVar[int] |
| 62 | + TOTAL_FIELD_NUMBER: _ClassVar[int] |
| 63 | + SUCCESS_FIELD_NUMBER: _ClassVar[int] |
| 64 | + ERRORS_FIELD_NUMBER: _ClassVar[int] |
| 65 | + PROVIDER_ERRORS_FIELD_NUMBER: _ClassVar[int] |
| 66 | + PLATFORM_ERRORS_FIELD_NUMBER: _ClassVar[int] |
| 67 | + provider: str |
| 68 | + total: int |
| 69 | + success: int |
| 70 | + errors: int |
| 71 | + provider_errors: int |
| 72 | + platform_errors: int |
| 73 | + def __init__(self, provider: _Optional[str] = ..., total: _Optional[int] = ..., success: _Optional[int] = ..., errors: _Optional[int] = ..., provider_errors: _Optional[int] = ..., platform_errors: _Optional[int] = ...) -> None: ... |
| 74 | + |
| 75 | +class TimeSeriesBucket(_message.Message): |
| 76 | + __slots__ = ("bucket", "total", "success", "errors", "bucket_duration_seconds", "provider_errors", "platform_errors") |
| 77 | + BUCKET_FIELD_NUMBER: _ClassVar[int] |
| 78 | + TOTAL_FIELD_NUMBER: _ClassVar[int] |
| 79 | + SUCCESS_FIELD_NUMBER: _ClassVar[int] |
| 80 | + ERRORS_FIELD_NUMBER: _ClassVar[int] |
| 81 | + BUCKET_DURATION_SECONDS_FIELD_NUMBER: _ClassVar[int] |
| 82 | + PROVIDER_ERRORS_FIELD_NUMBER: _ClassVar[int] |
| 83 | + PLATFORM_ERRORS_FIELD_NUMBER: _ClassVar[int] |
| 84 | + bucket: _timestamp_pb2.Timestamp |
| 85 | + total: int |
| 86 | + success: int |
| 87 | + errors: int |
| 88 | + bucket_duration_seconds: int |
| 89 | + provider_errors: int |
| 90 | + platform_errors: int |
| 91 | + def __init__(self, bucket: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., total: _Optional[int] = ..., success: _Optional[int] = ..., errors: _Optional[int] = ..., bucket_duration_seconds: _Optional[int] = ..., provider_errors: _Optional[int] = ..., platform_errors: _Optional[int] = ...) -> None: ... |
0 commit comments