raystack-proton 2025.11.5.35259__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- google/__init__.py +0 -0
- google/api/__init__.py +0 -0
- google/api/annotations_pb2.py +37 -0
- google/api/annotations_pb2.pyi +8 -0
- google/api/field_behavior_pb2.py +38 -0
- google/api/field_behavior_pb2.pyi +27 -0
- google/api/http_pb2.py +41 -0
- google/api/http_pb2.pyi +47 -0
- google/api/httpbody_pb2.py +38 -0
- google/api/httpbody_pb2.pyi +18 -0
- protoc_gen_openapiv2/__init__.py +0 -0
- protoc_gen_openapiv2/options/__init__.py +0 -0
- protoc_gen_openapiv2/options/annotations_pb2.py +37 -0
- protoc_gen_openapiv2/options/annotations_pb2.pyi +16 -0
- protoc_gen_openapiv2/options/openapiv2_pb2.py +142 -0
- protoc_gen_openapiv2/options/openapiv2_pb2.pyi +463 -0
- raystack/__init__.py +0 -0
- raystack/assets/__init__.py +0 -0
- raystack/assets/v1beta1/__init__.py +0 -0
- raystack/assets/v1beta1/bucket_pb2.py +45 -0
- raystack/assets/v1beta1/bucket_pb2.pyi +59 -0
- raystack/assets/v1beta1/dashboard_pb2.py +45 -0
- raystack/assets/v1beta1/dashboard_pb2.pyi +65 -0
- raystack/assets/v1beta1/event_pb2.py +38 -0
- raystack/assets/v1beta1/event_pb2.pyi +19 -0
- raystack/assets/v1beta1/group_pb2.py +43 -0
- raystack/assets/v1beta1/group_pb2.pyi +35 -0
- raystack/assets/v1beta1/job_pb2.py +43 -0
- raystack/assets/v1beta1/job_pb2.pyi +28 -0
- raystack/assets/v1beta1/lineage_pb2.py +38 -0
- raystack/assets/v1beta1/lineage_pb2.pyi +16 -0
- raystack/assets/v1beta1/ownership_pb2.py +39 -0
- raystack/assets/v1beta1/ownership_pb2.pyi +25 -0
- raystack/assets/v1beta1/preview_pb2.py +38 -0
- raystack/assets/v1beta1/preview_pb2.pyi +16 -0
- raystack/assets/v1beta1/properties_pb2.py +42 -0
- raystack/assets/v1beta1/properties_pb2.pyi +25 -0
- raystack/assets/v1beta1/resource_pb2.py +37 -0
- raystack/assets/v1beta1/resource_pb2.pyi +21 -0
- raystack/assets/v1beta1/schema_pb2.py +44 -0
- raystack/assets/v1beta1/schema_pb2.pyi +58 -0
- raystack/assets/v1beta1/table_pb2.py +49 -0
- raystack/assets/v1beta1/table_pb2.pyi +63 -0
- raystack/assets/v1beta1/timestamp_pb2.py +40 -0
- raystack/assets/v1beta1/timestamp_pb2.pyi +25 -0
- raystack/assets/v1beta1/topic_pb2.py +46 -0
- raystack/assets/v1beta1/topic_pb2.pyi +41 -0
- raystack/assets/v1beta1/user_pb2.py +45 -0
- raystack/assets/v1beta1/user_pb2.pyi +63 -0
- raystack/assets/v1beta2/__init__.py +0 -0
- raystack/assets/v1beta2/application_pb2.py +39 -0
- raystack/assets/v1beta2/application_pb2.pyi +24 -0
- raystack/assets/v1beta2/asset_pb2.py +44 -0
- raystack/assets/v1beta2/asset_pb2.pyi +49 -0
- raystack/assets/v1beta2/bucket_pb2.py +42 -0
- raystack/assets/v1beta2/bucket_pb2.pyi +54 -0
- raystack/assets/v1beta2/common_pb2.py +44 -0
- raystack/assets/v1beta2/common_pb2.pyi +52 -0
- raystack/assets/v1beta2/dashboard_pb2.py +42 -0
- raystack/assets/v1beta2/dashboard_pb2.pyi +60 -0
- raystack/assets/v1beta2/experiment_pb2.py +41 -0
- raystack/assets/v1beta2/experiment_pb2.pyi +40 -0
- raystack/assets/v1beta2/feature_table_pb2.py +47 -0
- raystack/assets/v1beta2/feature_table_pb2.pyi +59 -0
- raystack/assets/v1beta2/group_pb2.py +40 -0
- raystack/assets/v1beta2/group_pb2.pyi +26 -0
- raystack/assets/v1beta2/job_pb2.py +39 -0
- raystack/assets/v1beta2/job_pb2.pyi +20 -0
- raystack/assets/v1beta2/metric_pb2.py +39 -0
- raystack/assets/v1beta2/metric_pb2.pyi +28 -0
- raystack/assets/v1beta2/model_pb2.py +49 -0
- raystack/assets/v1beta2/model_pb2.pyi +73 -0
- raystack/assets/v1beta2/table_pb2.py +47 -0
- raystack/assets/v1beta2/table_pb2.pyi +93 -0
- raystack/assets/v1beta2/topic_pb2.py +43 -0
- raystack/assets/v1beta2/topic_pb2.pyi +40 -0
- raystack/assets/v1beta2/user_pb2.py +43 -0
- raystack/assets/v1beta2/user_pb2.pyi +61 -0
- raystack/common/__init__.py +0 -0
- raystack/common/v1/__init__.py +0 -0
- raystack/common/v1/service_connect.py +119 -0
- raystack/common/v1/service_pb2.py +48 -0
- raystack/common/v1/service_pb2.pyi +39 -0
- raystack/compass/__init__.py +0 -0
- raystack/compass/v1beta1/__init__.py +0 -0
- raystack/compass/v1beta1/service_connect.py +2784 -0
- raystack/compass/v1beta1/service_pb2.py +581 -0
- raystack/compass/v1beta1/service_pb2.pyi +1055 -0
- raystack/entropy/__init__.py +0 -0
- raystack/entropy/v1beta1/__init__.py +0 -0
- raystack/entropy/v1beta1/module_connect.py +379 -0
- raystack/entropy/v1beta1/module_pb2.py +72 -0
- raystack/entropy/v1beta1/module_pb2.pyi +88 -0
- raystack/entropy/v1beta1/resource_connect.py +574 -0
- raystack/entropy/v1beta1/resource_pb2.py +134 -0
- raystack/entropy/v1beta1/resource_pb2.pyi +268 -0
- raystack/frontier/__init__.py +0 -0
- raystack/frontier/v1beta1/__init__.py +0 -0
- raystack/frontier/v1beta1/admin_connect.py +4021 -0
- raystack/frontier/v1beta1/admin_pb2.py +617 -0
- raystack/frontier/v1beta1/admin_pb2.pyi +1151 -0
- raystack/frontier/v1beta1/frontier_connect.py +10974 -0
- raystack/frontier/v1beta1/frontier_pb2.py +1612 -0
- raystack/frontier/v1beta1/frontier_pb2.pyi +2666 -0
- raystack/frontier/v1beta1/models_pb2.py +400 -0
- raystack/frontier/v1beta1/models_pb2.pyi +1160 -0
- raystack/guardian/__init__.py +0 -0
- raystack/guardian/v1beta1/__init__.py +0 -0
- raystack/guardian/v1beta1/guardian_connect.py +2654 -0
- raystack/guardian/v1beta1/guardian_pb2.py +527 -0
- raystack/guardian/v1beta1/guardian_pb2.pyi +1257 -0
- raystack/optimus/__init__.py +0 -0
- raystack/optimus/core/__init__.py +0 -0
- raystack/optimus/core/v1beta1/__init__.py +0 -0
- raystack/optimus/core/v1beta1/backup_connect.py +249 -0
- raystack/optimus/core/v1beta1/backup_pb2.py +70 -0
- raystack/optimus/core/v1beta1/backup_pb2.pyi +108 -0
- raystack/optimus/core/v1beta1/job_run_connect.py +314 -0
- raystack/optimus/core/v1beta1/job_run_pb2.py +88 -0
- raystack/optimus/core/v1beta1/job_run_pb2.pyi +164 -0
- raystack/optimus/core/v1beta1/job_spec_connect.py +1289 -0
- raystack/optimus/core/v1beta1/job_spec_pb2.py +229 -0
- raystack/optimus/core/v1beta1/job_spec_pb2.pyi +700 -0
- raystack/optimus/core/v1beta1/namespace_connect.py +249 -0
- raystack/optimus/core/v1beta1/namespace_pb2.py +63 -0
- raystack/optimus/core/v1beta1/namespace_pb2.pyi +66 -0
- raystack/optimus/core/v1beta1/project_connect.py +249 -0
- raystack/optimus/core/v1beta1/project_pb2.py +63 -0
- raystack/optimus/core/v1beta1/project_pb2.pyi +60 -0
- raystack/optimus/core/v1beta1/replay_connect.py +314 -0
- raystack/optimus/core/v1beta1/replay_pb2.py +72 -0
- raystack/optimus/core/v1beta1/replay_pb2.pyi +127 -0
- raystack/optimus/core/v1beta1/resource_connect.py +509 -0
- raystack/optimus/core/v1beta1/resource_pb2.py +93 -0
- raystack/optimus/core/v1beta1/resource_pb2.pyi +182 -0
- raystack/optimus/core/v1beta1/runtime_connect.py +119 -0
- raystack/optimus/core/v1beta1/runtime_pb2.py +45 -0
- raystack/optimus/core/v1beta1/runtime_pb2.pyi +19 -0
- raystack/optimus/core/v1beta1/secret_connect.py +314 -0
- raystack/optimus/core/v1beta1/secret_pb2.py +66 -0
- raystack/optimus/core/v1beta1/secret_pb2.pyi +81 -0
- raystack/optimus/core/v1beta1/status_pb2.py +39 -0
- raystack/optimus/core/v1beta1/status_pb2.pyi +31 -0
- raystack/optimus/integration/__init__.py +0 -0
- raystack/optimus/integration/v1beta1/__init__.py +0 -0
- raystack/optimus/integration/v1beta1/event_pb2.py +50 -0
- raystack/optimus/integration/v1beta1/event_pb2.pyi +94 -0
- raystack/optimus/plugins/__init__.py +0 -0
- raystack/optimus/plugins/v1beta1/__init__.py +0 -0
- raystack/optimus/plugins/v1beta1/dependency_resolver_connect.py +314 -0
- raystack/optimus/plugins/v1beta1/dependency_resolver_pb2.py +66 -0
- raystack/optimus/plugins/v1beta1/dependency_resolver_pb2.pyi +118 -0
- raystack/predator/__init__.py +0 -0
- raystack/predator/v1beta1/__init__.py +0 -0
- raystack/predator/v1beta1/metrics_log_pb2.py +46 -0
- raystack/predator/v1beta1/metrics_log_pb2.pyi +68 -0
- raystack/predator/v1beta1/result_log_pb2.py +45 -0
- raystack/predator/v1beta1/result_log_pb2.pyi +61 -0
- raystack/raccoon/__init__.py +0 -0
- raystack/raccoon/v1beta1/__init__.py +0 -0
- raystack/raccoon/v1beta1/raccoon_connect.py +119 -0
- raystack/raccoon/v1beta1/raccoon_pb2.py +52 -0
- raystack/raccoon/v1beta1/raccoon_pb2.pyi +74 -0
- raystack/siren/__init__.py +0 -0
- raystack/siren/v1beta1/__init__.py +0 -0
- raystack/siren/v1beta1/siren_connect.py +2329 -0
- raystack/siren/v1beta1/siren_pb2.py +415 -0
- raystack/siren/v1beta1/siren_pb2.pyi +890 -0
- raystack/stencil/__init__.py +0 -0
- raystack/stencil/v1beta1/__init__.py +0 -0
- raystack/stencil/v1beta1/stencil_connect.py +1094 -0
- raystack/stencil/v1beta1/stencil_pb2.py +158 -0
- raystack/stencil/v1beta1/stencil_pb2.pyi +357 -0
- raystack_proton-2025.11.5.35259.dist-info/METADATA +103 -0
- raystack_proton-2025.11.5.35259.dist-info/RECORD +181 -0
- raystack_proton-2025.11.5.35259.dist-info/WHEEL +5 -0
- raystack_proton-2025.11.5.35259.dist-info/licenses/LICENSE +201 -0
- raystack_proton-2025.11.5.35259.dist-info/top_level.txt +4 -0
- validate/__init__.py +0 -0
- validate/validate_pb2.py +86 -0
- validate/validate_pb2.pyi +497 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import message as _message
|
|
7
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
8
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class MetricsLogKey(_message.Message):
|
|
13
|
+
__slots__ = ()
|
|
14
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
EVENT_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
id: str
|
|
18
|
+
group: Group
|
|
19
|
+
event_timestamp: _timestamp_pb2.Timestamp
|
|
20
|
+
def __init__(self, id: _Optional[str] = ..., group: _Optional[_Union[Group, _Mapping]] = ..., event_timestamp: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
21
|
+
|
|
22
|
+
class MetricsLogMessage(_message.Message):
|
|
23
|
+
__slots__ = ()
|
|
24
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
URN_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
FILTER_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
MODE_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
TABLE_METRICS_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
COLUMN_METRICS_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
EVENT_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
id: str
|
|
33
|
+
urn: str
|
|
34
|
+
filter: str
|
|
35
|
+
group: Group
|
|
36
|
+
mode: str
|
|
37
|
+
table_metrics: _containers.RepeatedCompositeFieldContainer[Metric]
|
|
38
|
+
column_metrics: _containers.RepeatedCompositeFieldContainer[ColumnMetric]
|
|
39
|
+
event_timestamp: _timestamp_pb2.Timestamp
|
|
40
|
+
def __init__(self, id: _Optional[str] = ..., urn: _Optional[str] = ..., filter: _Optional[str] = ..., group: _Optional[_Union[Group, _Mapping]] = ..., mode: _Optional[str] = ..., table_metrics: _Optional[_Iterable[_Union[Metric, _Mapping]]] = ..., column_metrics: _Optional[_Iterable[_Union[ColumnMetric, _Mapping]]] = ..., event_timestamp: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
41
|
+
|
|
42
|
+
class Metric(_message.Message):
|
|
43
|
+
__slots__ = ()
|
|
44
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
CONDITION_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
name: str
|
|
48
|
+
value: float
|
|
49
|
+
condition: str
|
|
50
|
+
def __init__(self, name: _Optional[str] = ..., value: _Optional[float] = ..., condition: _Optional[str] = ...) -> None: ...
|
|
51
|
+
|
|
52
|
+
class Group(_message.Message):
|
|
53
|
+
__slots__ = ()
|
|
54
|
+
COLUMN_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
column: str
|
|
57
|
+
value: str
|
|
58
|
+
def __init__(self, column: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
59
|
+
|
|
60
|
+
class ColumnMetric(_message.Message):
|
|
61
|
+
__slots__ = ()
|
|
62
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
METRICS_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
id: str
|
|
66
|
+
type: str
|
|
67
|
+
metrics: _containers.RepeatedCompositeFieldContainer[Metric]
|
|
68
|
+
def __init__(self, id: _Optional[str] = ..., type: _Optional[str] = ..., metrics: _Optional[_Iterable[_Union[Metric, _Mapping]]] = ...) -> None: ...
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: raystack/predator/v1beta1/result_log.proto
|
|
5
|
+
# Protobuf Python Version: 6.33.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
33,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'raystack/predator/v1beta1/result_log.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from raystack.predator.v1beta1 import metrics_log_pb2 as raystack_dot_predator_dot_v1beta1_dot_metrics__log__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*raystack/predator/v1beta1/result_log.proto\x12\x19raystack.predator.v1beta1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a+raystack/predator/v1beta1/metrics_log.proto\"\x9b\x01\n\x0cResultLogKey\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x36\n\x05group\x18\x02 \x01(\x0b\x32 .raystack.predator.v1beta1.GroupR\x05group\x12\x43\n\x0f\x65vent_timestamp\x18\x63 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0e\x65ventTimestamp\"\x8d\x02\n\x10ResultLogMessage\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n\nprofile_id\x18\x02 \x01(\tR\tprofileId\x12\x10\n\x03urn\x18\x03 \x01(\tR\x03urn\x12\x36\n\x05group\x18\x04 \x01(\x0b\x32 .raystack.predator.v1beta1.GroupR\x05group\x12;\n\x07results\x18\x05 \x03(\x0b\x32!.raystack.predator.v1beta1.ResultR\x07results\x12\x43\n\x0f\x65vent_timestamp\x18\x63 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0e\x65ventTimestamp\"\xc8\x01\n\x06Result\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x19\n\x08\x66ield_id\x18\x02 \x01(\tR\x07\x66ieldId\x12\x14\n\x05value\x18\x03 \x01(\x01R\x05value\x12>\n\x05rules\x18\x04 \x03(\x0b\x32(.raystack.predator.v1beta1.ToleranceRuleR\x05rules\x12\x1b\n\tpass_flag\x18\x05 \x01(\x08R\x08passFlag\x12\x1c\n\tcondition\x18\x06 \x01(\tR\tcondition\"9\n\rToleranceRule\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n\x05value\x18\x02 \x01(\x01R\x05valueBT\n\x1bio.raystack.proton.predatorB\x0eResultLogProtoP\x01Z#github.com/raystack/proton/predatorb\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'raystack.predator.v1beta1.result_log_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\033io.raystack.proton.predatorB\016ResultLogProtoP\001Z#github.com/raystack/proton/predator'
|
|
37
|
+
_globals['_RESULTLOGKEY']._serialized_start=152
|
|
38
|
+
_globals['_RESULTLOGKEY']._serialized_end=307
|
|
39
|
+
_globals['_RESULTLOGMESSAGE']._serialized_start=310
|
|
40
|
+
_globals['_RESULTLOGMESSAGE']._serialized_end=579
|
|
41
|
+
_globals['_RESULT']._serialized_start=582
|
|
42
|
+
_globals['_RESULT']._serialized_end=782
|
|
43
|
+
_globals['_TOLERANCERULE']._serialized_start=784
|
|
44
|
+
_globals['_TOLERANCERULE']._serialized_end=841
|
|
45
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
4
|
+
from raystack.predator.v1beta1 import metrics_log_pb2 as _metrics_log_pb2
|
|
5
|
+
from google.protobuf.internal import containers as _containers
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
9
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
class ResultLogKey(_message.Message):
|
|
14
|
+
__slots__ = ()
|
|
15
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
EVENT_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
id: str
|
|
19
|
+
group: _metrics_log_pb2.Group
|
|
20
|
+
event_timestamp: _timestamp_pb2.Timestamp
|
|
21
|
+
def __init__(self, id: _Optional[str] = ..., group: _Optional[_Union[_metrics_log_pb2.Group, _Mapping]] = ..., event_timestamp: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
22
|
+
|
|
23
|
+
class ResultLogMessage(_message.Message):
|
|
24
|
+
__slots__ = ()
|
|
25
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
PROFILE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
URN_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
GROUP_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
RESULTS_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
EVENT_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
id: str
|
|
32
|
+
profile_id: str
|
|
33
|
+
urn: str
|
|
34
|
+
group: _metrics_log_pb2.Group
|
|
35
|
+
results: _containers.RepeatedCompositeFieldContainer[Result]
|
|
36
|
+
event_timestamp: _timestamp_pb2.Timestamp
|
|
37
|
+
def __init__(self, id: _Optional[str] = ..., profile_id: _Optional[str] = ..., urn: _Optional[str] = ..., group: _Optional[_Union[_metrics_log_pb2.Group, _Mapping]] = ..., results: _Optional[_Iterable[_Union[Result, _Mapping]]] = ..., event_timestamp: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
38
|
+
|
|
39
|
+
class Result(_message.Message):
|
|
40
|
+
__slots__ = ()
|
|
41
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
FIELD_ID_FIELD_NUMBER: _ClassVar[int]
|
|
43
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
RULES_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
PASS_FLAG_FIELD_NUMBER: _ClassVar[int]
|
|
46
|
+
CONDITION_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
name: str
|
|
48
|
+
field_id: str
|
|
49
|
+
value: float
|
|
50
|
+
rules: _containers.RepeatedCompositeFieldContainer[ToleranceRule]
|
|
51
|
+
pass_flag: bool
|
|
52
|
+
condition: str
|
|
53
|
+
def __init__(self, name: _Optional[str] = ..., field_id: _Optional[str] = ..., value: _Optional[float] = ..., rules: _Optional[_Iterable[_Union[ToleranceRule, _Mapping]]] = ..., pass_flag: _Optional[bool] = ..., condition: _Optional[str] = ...) -> None: ...
|
|
54
|
+
|
|
55
|
+
class ToleranceRule(_message.Message):
|
|
56
|
+
__slots__ = ()
|
|
57
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
+
name: str
|
|
60
|
+
value: float
|
|
61
|
+
def __init__(self, name: _Optional[str] = ..., value: _Optional[float] = ...) -> None: ...
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
|
+
# source: raystack/raccoon/v1beta1/raccoon.proto
|
|
4
|
+
|
|
5
|
+
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
6
|
+
from typing import Protocol
|
|
7
|
+
|
|
8
|
+
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
9
|
+
from connectrpc.code import Code
|
|
10
|
+
from connectrpc.errors import ConnectError
|
|
11
|
+
from connectrpc.interceptor import Interceptor, InterceptorSync
|
|
12
|
+
from connectrpc.method import IdempotencyLevel, MethodInfo
|
|
13
|
+
from connectrpc.request import Headers, RequestContext
|
|
14
|
+
from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync
|
|
15
|
+
import raystack.raccoon.v1beta1.raccoon_pb2 as raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class EventService(Protocol):
|
|
19
|
+
async def send_event(self, request: raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventRequest, ctx: RequestContext) -> raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventResponse:
|
|
20
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class EventServiceASGIApplication(ConnectASGIApplication):
|
|
24
|
+
def __init__(self, service: EventService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
25
|
+
super().__init__(
|
|
26
|
+
endpoints={
|
|
27
|
+
"/raystack.raccoon.v1beta1.EventService/SendEvent": Endpoint.unary(
|
|
28
|
+
method=MethodInfo(
|
|
29
|
+
name="SendEvent",
|
|
30
|
+
service_name="raystack.raccoon.v1beta1.EventService",
|
|
31
|
+
input=raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventRequest,
|
|
32
|
+
output=raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventResponse,
|
|
33
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
34
|
+
),
|
|
35
|
+
function=service.send_event,
|
|
36
|
+
),
|
|
37
|
+
},
|
|
38
|
+
interceptors=interceptors,
|
|
39
|
+
read_max_bytes=read_max_bytes,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def path(self) -> str:
|
|
44
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
45
|
+
return "/raystack.raccoon.v1beta1.EventService"
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class EventServiceClient(ConnectClient):
|
|
49
|
+
async def send_event(
|
|
50
|
+
self,
|
|
51
|
+
request: raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventRequest,
|
|
52
|
+
*,
|
|
53
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
54
|
+
timeout_ms: int | None = None,
|
|
55
|
+
) -> raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventResponse:
|
|
56
|
+
return await self.execute_unary(
|
|
57
|
+
request=request,
|
|
58
|
+
method=MethodInfo(
|
|
59
|
+
name="SendEvent",
|
|
60
|
+
service_name="raystack.raccoon.v1beta1.EventService",
|
|
61
|
+
input=raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventRequest,
|
|
62
|
+
output=raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventResponse,
|
|
63
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
64
|
+
),
|
|
65
|
+
headers=headers,
|
|
66
|
+
timeout_ms=timeout_ms,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class EventServiceSync(Protocol):
|
|
71
|
+
def send_event(self, request: raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventRequest, ctx: RequestContext) -> raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventResponse:
|
|
72
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class EventServiceWSGIApplication(ConnectWSGIApplication):
|
|
76
|
+
def __init__(self, service: EventServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
77
|
+
super().__init__(
|
|
78
|
+
endpoints={
|
|
79
|
+
"/raystack.raccoon.v1beta1.EventService/SendEvent": EndpointSync.unary(
|
|
80
|
+
method=MethodInfo(
|
|
81
|
+
name="SendEvent",
|
|
82
|
+
service_name="raystack.raccoon.v1beta1.EventService",
|
|
83
|
+
input=raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventRequest,
|
|
84
|
+
output=raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventResponse,
|
|
85
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
86
|
+
),
|
|
87
|
+
function=service.send_event,
|
|
88
|
+
),
|
|
89
|
+
},
|
|
90
|
+
interceptors=interceptors,
|
|
91
|
+
read_max_bytes=read_max_bytes,
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
def path(self) -> str:
|
|
96
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
97
|
+
return "/raystack.raccoon.v1beta1.EventService"
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class EventServiceClientSync(ConnectClientSync):
|
|
101
|
+
def send_event(
|
|
102
|
+
self,
|
|
103
|
+
request: raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventRequest,
|
|
104
|
+
*,
|
|
105
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
106
|
+
timeout_ms: int | None = None,
|
|
107
|
+
) -> raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventResponse:
|
|
108
|
+
return self.execute_unary(
|
|
109
|
+
request=request,
|
|
110
|
+
method=MethodInfo(
|
|
111
|
+
name="SendEvent",
|
|
112
|
+
service_name="raystack.raccoon.v1beta1.EventService",
|
|
113
|
+
input=raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventRequest,
|
|
114
|
+
output=raystack_dot_raccoon_dot_v1beta1_dot_raccoon__pb2.SendEventResponse,
|
|
115
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
116
|
+
),
|
|
117
|
+
headers=headers,
|
|
118
|
+
timeout_ms=timeout_ms,
|
|
119
|
+
)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: raystack/raccoon/v1beta1/raccoon.proto
|
|
5
|
+
# Protobuf Python Version: 6.33.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
33,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'raystack/raccoon/v1beta1/raccoon.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&raystack/raccoon/v1beta1/raccoon.proto\x12\x18raystack.raccoon.v1beta1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9f\x01\n\x10SendEventRequest\x12\x19\n\x08req_guid\x18\x01 \x01(\tR\x07reqGuid\x12\x37\n\tsent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08sentTime\x12\x37\n\x06\x65vents\x18\x03 \x03(\x0b\x32\x1f.raystack.raccoon.v1beta1.EventR\x06\x65vents\"<\n\x05\x45vent\x12\x1f\n\x0b\x65vent_bytes\x18\x01 \x01(\x0cR\neventBytes\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\"\xba\x02\n\x11SendEventResponse\x12\x38\n\x06status\x18\x01 \x01(\x0e\x32 .raystack.raccoon.v1beta1.StatusR\x06status\x12\x32\n\x04\x63ode\x18\x02 \x01(\x0e\x32\x1e.raystack.raccoon.v1beta1.CodeR\x04\x63ode\x12\x1b\n\tsent_time\x18\x03 \x01(\x03R\x08sentTime\x12\x16\n\x06reason\x18\x04 \x01(\tR\x06reason\x12I\n\x04\x64\x61ta\x18\x05 \x03(\x0b\x32\x35.raystack.raccoon.v1beta1.SendEventResponse.DataEntryR\x04\x64\x61ta\x1a\x37\n\tDataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01*F\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n\x0eSTATUS_SUCCESS\x10\x01\x12\x10\n\x0cSTATUS_ERROR\x10\x02*\xa0\x01\n\x04\x43ode\x12\x14\n\x10\x43ODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43ODE_OK\x10\x01\x12\x14\n\x10\x43ODE_BAD_REQUEST\x10\x02\x12\x17\n\x13\x43ODE_INTERNAL_ERROR\x10\x03\x12%\n!CODE_MAX_CONNECTION_LIMIT_REACHED\x10\x04\x12\x1f\n\x1b\x43ODE_MAX_USER_LIMIT_REACHED\x10\x05\x32t\n\x0c\x45ventService\x12\x64\n\tSendEvent\x12*.raystack.raccoon.v1beta1.SendEventRequest\x1a+.raystack.raccoon.v1beta1.SendEventResponseB[\n\x1aio.raystack.proton.raccoonB\nEventProtoP\x01Z/github.com/raystack/proton/raccoon/v1;raccoonv1b\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'raystack.raccoon.v1beta1.raccoon_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\032io.raystack.proton.raccoonB\nEventProtoP\001Z/github.com/raystack/proton/raccoon/v1;raccoonv1'
|
|
36
|
+
_globals['_SENDEVENTRESPONSE_DATAENTRY']._loaded_options = None
|
|
37
|
+
_globals['_SENDEVENTRESPONSE_DATAENTRY']._serialized_options = b'8\001'
|
|
38
|
+
_globals['_STATUS']._serialized_start=642
|
|
39
|
+
_globals['_STATUS']._serialized_end=712
|
|
40
|
+
_globals['_CODE']._serialized_start=715
|
|
41
|
+
_globals['_CODE']._serialized_end=875
|
|
42
|
+
_globals['_SENDEVENTREQUEST']._serialized_start=102
|
|
43
|
+
_globals['_SENDEVENTREQUEST']._serialized_end=261
|
|
44
|
+
_globals['_EVENT']._serialized_start=263
|
|
45
|
+
_globals['_EVENT']._serialized_end=323
|
|
46
|
+
_globals['_SENDEVENTRESPONSE']._serialized_start=326
|
|
47
|
+
_globals['_SENDEVENTRESPONSE']._serialized_end=640
|
|
48
|
+
_globals['_SENDEVENTRESPONSE_DATAENTRY']._serialized_start=585
|
|
49
|
+
_globals['_SENDEVENTRESPONSE_DATAENTRY']._serialized_end=640
|
|
50
|
+
_globals['_EVENTSERVICE']._serialized_start=877
|
|
51
|
+
_globals['_EVENTSERVICE']._serialized_end=993
|
|
52
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import message as _message
|
|
8
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
9
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
class Status(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
14
|
+
__slots__ = ()
|
|
15
|
+
STATUS_UNSPECIFIED: _ClassVar[Status]
|
|
16
|
+
STATUS_SUCCESS: _ClassVar[Status]
|
|
17
|
+
STATUS_ERROR: _ClassVar[Status]
|
|
18
|
+
|
|
19
|
+
class Code(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
20
|
+
__slots__ = ()
|
|
21
|
+
CODE_UNSPECIFIED: _ClassVar[Code]
|
|
22
|
+
CODE_OK: _ClassVar[Code]
|
|
23
|
+
CODE_BAD_REQUEST: _ClassVar[Code]
|
|
24
|
+
CODE_INTERNAL_ERROR: _ClassVar[Code]
|
|
25
|
+
CODE_MAX_CONNECTION_LIMIT_REACHED: _ClassVar[Code]
|
|
26
|
+
CODE_MAX_USER_LIMIT_REACHED: _ClassVar[Code]
|
|
27
|
+
STATUS_UNSPECIFIED: Status
|
|
28
|
+
STATUS_SUCCESS: Status
|
|
29
|
+
STATUS_ERROR: Status
|
|
30
|
+
CODE_UNSPECIFIED: Code
|
|
31
|
+
CODE_OK: Code
|
|
32
|
+
CODE_BAD_REQUEST: Code
|
|
33
|
+
CODE_INTERNAL_ERROR: Code
|
|
34
|
+
CODE_MAX_CONNECTION_LIMIT_REACHED: Code
|
|
35
|
+
CODE_MAX_USER_LIMIT_REACHED: Code
|
|
36
|
+
|
|
37
|
+
class SendEventRequest(_message.Message):
|
|
38
|
+
__slots__ = ()
|
|
39
|
+
REQ_GUID_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
SENT_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
EVENTS_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
req_guid: str
|
|
43
|
+
sent_time: _timestamp_pb2.Timestamp
|
|
44
|
+
events: _containers.RepeatedCompositeFieldContainer[Event]
|
|
45
|
+
def __init__(self, req_guid: _Optional[str] = ..., sent_time: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., events: _Optional[_Iterable[_Union[Event, _Mapping]]] = ...) -> None: ...
|
|
46
|
+
|
|
47
|
+
class Event(_message.Message):
|
|
48
|
+
__slots__ = ()
|
|
49
|
+
EVENT_BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
event_bytes: bytes
|
|
52
|
+
type: str
|
|
53
|
+
def __init__(self, event_bytes: _Optional[bytes] = ..., type: _Optional[str] = ...) -> None: ...
|
|
54
|
+
|
|
55
|
+
class SendEventResponse(_message.Message):
|
|
56
|
+
__slots__ = ()
|
|
57
|
+
class DataEntry(_message.Message):
|
|
58
|
+
__slots__ = ()
|
|
59
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
key: str
|
|
62
|
+
value: str
|
|
63
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
64
|
+
STATUS_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
CODE_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
SENT_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
REASON_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
status: Status
|
|
70
|
+
code: Code
|
|
71
|
+
sent_time: int
|
|
72
|
+
reason: str
|
|
73
|
+
data: _containers.ScalarMap[str, str]
|
|
74
|
+
def __init__(self, status: _Optional[_Union[Status, str]] = ..., code: _Optional[_Union[Code, str]] = ..., sent_time: _Optional[int] = ..., reason: _Optional[str] = ..., data: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
|
File without changes
|
|
File without changes
|