-
Notifications
You must be signed in to change notification settings - Fork 5
feat: organization session policy SDK methods #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5024f80
feat: add organization session policy SDK methods and generate local …
srinivaskarre-sk 21bcaf1
chore: bump proto ref to v0.1.120.2
srinivaskarre-sk 24a80a1
feat: regenerate protos for v0.1.120.2 and add session policy tests
srinivaskarre-sk 2d8760c
fix: add --include-imports to generate-local and restore buf/validate…
srinivaskarre-sk 81a89fc
chore: revert unrelated proto changes, remove generate-local, bump PR…
srinivaskarre-sk dbf259b
chore: ignore proto/ directory (local generate-local output)
srinivaskarre-sk 57c8e16
chore: regenerate all proto stubs for v0.1.120.2
srinivaskarre-sk 62a10b9
chore: regenerate proto stubs from local scalekit proto and add gener…
srinivaskarre-sk bdcae9c
chore: merge main and regenerate proto stubs from local scalekit proto
srinivaskarre-sk b4290a9
build
srinivaskarre-sk 8c84f5b
fix: remove blocking input() call from test_actions setUp
srinivaskarre-sk cd194f0
Revert "fix: remove blocking input() call from test_actions setUp"
srinivaskarre-sk 9b77c05
build
srinivaskarre-sk 6452edf
chore: merge main into b_org_session_policy_v1
srinivaskarre-sk 2db5d33
chore: regenerate proto stubs from local scalekit proto
srinivaskarre-sk ae03820
chore: regenerate proto stubs from published v0.1.121.2
srinivaskarre-sk 0d33670
fix: address coderabbitai review comments
srinivaskarre-sk 0ef8307
build
srinivaskarre-sk eda1a26
Merge branch 'main' into b_org_session_policy_v1
srinivaskarre-sk 400ccc8
fix: return raw grpc response from session policy methods and bump ve…
srinivaskarre-sk e080b3f
fix: update session policy tests to unpack raw grpc response tuple
srinivaskarre-sk 0cd7ce3
fix: correct return types for session policy methods to use response …
srinivaskarre-sk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -170,3 +170,4 @@ proto | |
|
|
||
| # Claude Code documentation | ||
| CLAUDE.md | ||
| proto/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| from buf.validate import validate_pb2 as _validate_pb2 | ||
| from google.api import annotations_pb2 as _annotations_pb2 | ||
| from google.api import field_behavior_pb2 as _field_behavior_pb2 | ||
| from google.api import visibility_pb2 as _visibility_pb2 | ||
| from google.protobuf import timestamp_pb2 as _timestamp_pb2 | ||
| from protoc_gen_openapiv2.options import annotations_pb2 as _annotations_pb2_1 | ||
| from scalekit.v1.options import options_pb2 as _options_pb2 | ||
| from google.protobuf.internal import containers as _containers | ||
| from google.protobuf import descriptor as _descriptor | ||
| from google.protobuf import message as _message | ||
| from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union | ||
|
|
||
| DESCRIPTOR: _descriptor.FileDescriptor | ||
|
|
||
| class GetOverviewStatsRequest(_message.Message): | ||
| __slots__ = ("start_time", "end_time", "provider", "status", "error_code", "connection_name") | ||
| START_TIME_FIELD_NUMBER: _ClassVar[int] | ||
| END_TIME_FIELD_NUMBER: _ClassVar[int] | ||
| PROVIDER_FIELD_NUMBER: _ClassVar[int] | ||
| STATUS_FIELD_NUMBER: _ClassVar[int] | ||
| ERROR_CODE_FIELD_NUMBER: _ClassVar[int] | ||
| CONNECTION_NAME_FIELD_NUMBER: _ClassVar[int] | ||
| start_time: _timestamp_pb2.Timestamp | ||
| end_time: _timestamp_pb2.Timestamp | ||
| provider: _containers.RepeatedScalarFieldContainer[str] | ||
| status: _containers.RepeatedScalarFieldContainer[str] | ||
| error_code: _containers.RepeatedScalarFieldContainer[str] | ||
| connection_name: str | ||
| 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: ... | ||
|
|
||
| class OverviewStats(_message.Message): | ||
| __slots__ = ("total", "success", "errors", "provider_errors", "platform_errors", "top_error_codes", "connector_breakdown", "time_series") | ||
| TOTAL_FIELD_NUMBER: _ClassVar[int] | ||
| SUCCESS_FIELD_NUMBER: _ClassVar[int] | ||
| ERRORS_FIELD_NUMBER: _ClassVar[int] | ||
| PROVIDER_ERRORS_FIELD_NUMBER: _ClassVar[int] | ||
| PLATFORM_ERRORS_FIELD_NUMBER: _ClassVar[int] | ||
| TOP_ERROR_CODES_FIELD_NUMBER: _ClassVar[int] | ||
| CONNECTOR_BREAKDOWN_FIELD_NUMBER: _ClassVar[int] | ||
| TIME_SERIES_FIELD_NUMBER: _ClassVar[int] | ||
| total: int | ||
| success: int | ||
| errors: int | ||
| provider_errors: int | ||
| platform_errors: int | ||
| top_error_codes: _containers.RepeatedCompositeFieldContainer[ErrorCodeCount] | ||
| connector_breakdown: _containers.RepeatedCompositeFieldContainer[ConnectorStat] | ||
| time_series: _containers.RepeatedCompositeFieldContainer[TimeSeriesBucket] | ||
| 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: ... | ||
|
|
||
| class ErrorCodeCount(_message.Message): | ||
| __slots__ = ("error_code", "count") | ||
| ERROR_CODE_FIELD_NUMBER: _ClassVar[int] | ||
| COUNT_FIELD_NUMBER: _ClassVar[int] | ||
| error_code: str | ||
| count: int | ||
| def __init__(self, error_code: _Optional[str] = ..., count: _Optional[int] = ...) -> None: ... | ||
|
|
||
| class ConnectorStat(_message.Message): | ||
| __slots__ = ("provider", "total", "success", "errors", "provider_errors", "platform_errors") | ||
| PROVIDER_FIELD_NUMBER: _ClassVar[int] | ||
| TOTAL_FIELD_NUMBER: _ClassVar[int] | ||
| SUCCESS_FIELD_NUMBER: _ClassVar[int] | ||
| ERRORS_FIELD_NUMBER: _ClassVar[int] | ||
| PROVIDER_ERRORS_FIELD_NUMBER: _ClassVar[int] | ||
| PLATFORM_ERRORS_FIELD_NUMBER: _ClassVar[int] | ||
| provider: str | ||
| total: int | ||
| success: int | ||
| errors: int | ||
| provider_errors: int | ||
| platform_errors: int | ||
| def __init__(self, provider: _Optional[str] = ..., total: _Optional[int] = ..., success: _Optional[int] = ..., errors: _Optional[int] = ..., provider_errors: _Optional[int] = ..., platform_errors: _Optional[int] = ...) -> None: ... | ||
|
|
||
| class TimeSeriesBucket(_message.Message): | ||
| __slots__ = ("bucket", "total", "success", "errors", "bucket_duration_seconds", "provider_errors", "platform_errors") | ||
| BUCKET_FIELD_NUMBER: _ClassVar[int] | ||
| TOTAL_FIELD_NUMBER: _ClassVar[int] | ||
| SUCCESS_FIELD_NUMBER: _ClassVar[int] | ||
| ERRORS_FIELD_NUMBER: _ClassVar[int] | ||
| BUCKET_DURATION_SECONDS_FIELD_NUMBER: _ClassVar[int] | ||
| PROVIDER_ERRORS_FIELD_NUMBER: _ClassVar[int] | ||
| PLATFORM_ERRORS_FIELD_NUMBER: _ClassVar[int] | ||
| bucket: _timestamp_pb2.Timestamp | ||
| total: int | ||
| success: int | ||
| errors: int | ||
| bucket_duration_seconds: int | ||
| provider_errors: int | ||
| platform_errors: int | ||
| 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: ... |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.