Skip to content

Commit c2f476a

Browse files
Update protos with v0.1.121.2 (#157)
* updating generated files to latest tag * remove settings.json and put it in git ignore * updating protos with latest tag v0.1.121.2 * add time limit for github actions run * fix test and push --------- Co-authored-by: avinash <avinash.kamath@scalekit.com>
1 parent 67e7171 commit c2f476a

36 files changed

Lines changed: 1460 additions & 620 deletions

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,7 @@ proto
170170

171171
# Claude Code documentation
172172
CLAUDE.md
173+
.claude/settings.json
174+
175+
# macOS
176+
.DS_Store

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ VENV_PYTHON := $(VENV_DIR)/bin/python
1212
VENV_PIP := $(VENV_PYTHON) -m pip
1313

1414
PROTO_REPO_URL := https://github.com/scalekit-inc/scalekit.git
15-
PROTO_REF ?= v0.1.116.0
15+
PROTO_REF ?= v0.1.121.2
1616
PROTO_SUBDIR := proto
1717

1818
TEMP_DIR := temp_scalekit

scalekit/v1/agentkit_logs/__init__.py

Whitespace-only changes.

scalekit/v1/agentkit_logs/agentkit_analytics_pb2.py

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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: ...
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2+
"""Client and server classes corresponding to protobuf-defined services."""
3+
import grpc
4+
5+
from scalekit.v1.agentkit_logs import agentkit_analytics_pb2 as scalekit_dot_v1_dot_agentkit__logs_dot_agentkit__analytics__pb2
6+
7+
8+
class AgentkitAnalyticsServiceStub(object):
9+
"""Missing associated documentation comment in .proto file."""
10+
11+
def __init__(self, channel):
12+
"""Constructor.
13+
14+
Args:
15+
channel: A grpc.Channel.
16+
"""
17+
self.GetOverviewStats = channel.unary_unary(
18+
'/scalekit.v1.agentkit_logs.AgentkitAnalyticsService/GetOverviewStats',
19+
request_serializer=scalekit_dot_v1_dot_agentkit__logs_dot_agentkit__analytics__pb2.GetOverviewStatsRequest.SerializeToString,
20+
response_deserializer=scalekit_dot_v1_dot_agentkit__logs_dot_agentkit__analytics__pb2.OverviewStats.FromString,
21+
)
22+
23+
24+
class AgentkitAnalyticsServiceServicer(object):
25+
"""Missing associated documentation comment in .proto file."""
26+
27+
def GetOverviewStats(self, request, context):
28+
"""Missing associated documentation comment in .proto file."""
29+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
30+
context.set_details('Method not implemented!')
31+
raise NotImplementedError('Method not implemented!')
32+
33+
34+
def add_AgentkitAnalyticsServiceServicer_to_server(servicer, server):
35+
rpc_method_handlers = {
36+
'GetOverviewStats': grpc.unary_unary_rpc_method_handler(
37+
servicer.GetOverviewStats,
38+
request_deserializer=scalekit_dot_v1_dot_agentkit__logs_dot_agentkit__analytics__pb2.GetOverviewStatsRequest.FromString,
39+
response_serializer=scalekit_dot_v1_dot_agentkit__logs_dot_agentkit__analytics__pb2.OverviewStats.SerializeToString,
40+
),
41+
}
42+
generic_handler = grpc.method_handlers_generic_handler(
43+
'scalekit.v1.agentkit_logs.AgentkitAnalyticsService', rpc_method_handlers)
44+
server.add_generic_rpc_handlers((generic_handler,))
45+
46+
47+
# This class is part of an EXPERIMENTAL API.
48+
class AgentkitAnalyticsService(object):
49+
"""Missing associated documentation comment in .proto file."""
50+
51+
@staticmethod
52+
def GetOverviewStats(request,
53+
target,
54+
options=(),
55+
channel_credentials=None,
56+
call_credentials=None,
57+
insecure=False,
58+
compression=None,
59+
wait_for_ready=None,
60+
timeout=None,
61+
metadata=None):
62+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.agentkit_logs.AgentkitAnalyticsService/GetOverviewStats',
63+
scalekit_dot_v1_dot_agentkit__logs_dot_agentkit__analytics__pb2.GetOverviewStatsRequest.SerializeToString,
64+
scalekit_dot_v1_dot_agentkit__logs_dot_agentkit__analytics__pb2.OverviewStats.FromString,
65+
options, channel_credentials,
66+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

0 commit comments

Comments
 (0)