frogml-core 0.0.81__py3-none-any.whl → 0.0.83__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.
- frogml_core/__init__.py +1 -1
- frogml_core/automations/build_and_deploy_action.py +11 -1
- {frogml_core-0.0.81.dist-info → frogml_core-0.0.83.dist-info}/METADATA +1 -1
- {frogml_core-0.0.81.dist-info → frogml_core-0.0.83.dist-info}/RECORD +7 -7
- frogml_proto/qwak/automation/v1/auto_scaling_pb2.py +8 -5
- frogml_proto/qwak/automation/v1/auto_scaling_pb2.pyi +6 -0
- {frogml_core-0.0.81.dist-info → frogml_core-0.0.83.dist-info}/WHEEL +0 -0
frogml_core/__init__.py
CHANGED
@@ -44,6 +44,9 @@ from frogml_proto.qwak.automation.v1.auto_scaling_pb2 import (
|
|
44
44
|
METRIC_TYPE_CPU,
|
45
45
|
METRIC_TYPE_LATENCY,
|
46
46
|
METRIC_TYPE_MEMORY,
|
47
|
+
METRIC_TYPE_ERROR_RATE,
|
48
|
+
METRIC_TYPE_THROUGHPUT,
|
49
|
+
METRIC_TYPE_GPU,
|
47
50
|
)
|
48
51
|
from frogml_proto.qwak.automation.v1.auto_scaling_pb2 import (
|
49
52
|
AutoScalingConfig as AutoScalingConfigProto,
|
@@ -452,6 +455,9 @@ class MetricType(Enum):
|
|
452
455
|
cpu = METRIC_TYPE_CPU
|
453
456
|
latency = METRIC_TYPE_LATENCY
|
454
457
|
memory = METRIC_TYPE_MEMORY
|
458
|
+
error_rate = METRIC_TYPE_ERROR_RATE
|
459
|
+
throughput = METRIC_TYPE_THROUGHPUT
|
460
|
+
gpu = METRIC_TYPE_GPU
|
455
461
|
|
456
462
|
|
457
463
|
class AggregationType(Enum):
|
@@ -750,10 +756,11 @@ class AutoScaleQuerySpec:
|
|
750
756
|
time_period: int = field(default=None)
|
751
757
|
|
752
758
|
def to_proto(self):
|
759
|
+
aggregation_type_lower: str = self.aggregation_type.lower()
|
753
760
|
return QuerySpec(
|
754
761
|
time_period=self.time_period,
|
755
762
|
metric_type=MetricType[self.metric_type.lower()].value,
|
756
|
-
aggregation_type=AggregationType[
|
763
|
+
aggregation_type=AggregationType[aggregation_type_lower].value,
|
757
764
|
)
|
758
765
|
|
759
766
|
@staticmethod
|
@@ -817,6 +824,9 @@ def map_auto_scaling_metric_type_proto_to_name(metric_type):
|
|
817
824
|
METRIC_TYPE_CPU: "cpu",
|
818
825
|
METRIC_TYPE_LATENCY: "latency",
|
819
826
|
METRIC_TYPE_MEMORY: "memory",
|
827
|
+
METRIC_TYPE_ERROR_RATE: "error_rate",
|
828
|
+
METRIC_TYPE_THROUGHPUT: "throughput",
|
829
|
+
METRIC_TYPE_GPU: "gpu",
|
820
830
|
}
|
821
831
|
return mapping.get(metric_type)
|
822
832
|
|
@@ -1,9 +1,9 @@
|
|
1
|
-
frogml_core/__init__.py,sha256=
|
1
|
+
frogml_core/__init__.py,sha256=ShwSgnQJ1x6qFk84ebLRSYnSHhhI32vKF_O467Z-rxg,777
|
2
2
|
frogml_core/automations/__init__.py,sha256=j2gD15MN-xVWhI5rAFsDwhL0CIyICLNT0scXsKvNBkU,1547
|
3
3
|
frogml_core/automations/automation_executions.py,sha256=xpOb9Dq8gPPGNQDJTvBBZbNz4woZDRZY0HqnLSu7pwU,3230
|
4
4
|
frogml_core/automations/automations.py,sha256=GKEQyQMi8sxX5oZn62PaxPi0zD8IaJRjBkhczRJxHNs,13070
|
5
5
|
frogml_core/automations/batch_execution_action.py,sha256=tFGQWI16CGNfo-DZJ0n86SBkKWbNt1Q8712wF0_OgUI,13327
|
6
|
-
frogml_core/automations/build_and_deploy_action.py,sha256=
|
6
|
+
frogml_core/automations/build_and_deploy_action.py,sha256=WK9CJ0oYr6u6Sy794OMjTvLohA_aHaofx0ectWN-K3o,31962
|
7
7
|
frogml_core/automations/common.py,sha256=98YNX-jCrmQ97k1IxRqzdsnet-rohcXp4yIdVNwpyh8,2752
|
8
8
|
frogml_core/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
9
|
frogml_core/clients/_inner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -588,8 +588,8 @@ frogml_proto/qwak/auto_scaling/v1/auto_scaling_service_pb2_grpc.py,sha256=5N0NW3
|
|
588
588
|
frogml_proto/qwak/automation/v1/action_pb2.py,sha256=TH5pBe8J_pfeK5qb17xKqEUmhYUgeBPbj6Er9bOT8uo,15568
|
589
589
|
frogml_proto/qwak/automation/v1/action_pb2.pyi,sha256=rcearUp27mKV1dcbKb20JXzEIPtFIbvpT4DKzCIgSZY,24229
|
590
590
|
frogml_proto/qwak/automation/v1/action_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
591
|
-
frogml_proto/qwak/automation/v1/auto_scaling_pb2.py,sha256=
|
592
|
-
frogml_proto/qwak/automation/v1/auto_scaling_pb2.pyi,sha256=
|
591
|
+
frogml_proto/qwak/automation/v1/auto_scaling_pb2.py,sha256=VgKV3kl2hdswYNPqFJd2MPjpI4q8VpBYpWZKpkNIiLM,5994
|
592
|
+
frogml_proto/qwak/automation/v1/auto_scaling_pb2.pyi,sha256=yNbnp_7V1qOCCgRuquFPEczo_MMfpISag_aHvU5gIiQ,8675
|
593
593
|
frogml_proto/qwak/automation/v1/auto_scaling_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
594
594
|
frogml_proto/qwak/automation/v1/automation_execution_pb2.py,sha256=wfmOwWp1sYaVKlxuLfJUi1jHh0C1waAGEWxXWZc6FOM,3967
|
595
595
|
frogml_proto/qwak/automation/v1/automation_execution_pb2.pyi,sha256=Ed-N6PChJkWypLSpFCwxdhn-lGkM0KHSSQY0-eEZWyU,5309
|
@@ -1096,6 +1096,6 @@ frogml_services_mock/mocks/workspace_manager_service_mock.py,sha256=WbOiWgOyr-xT
|
|
1096
1096
|
frogml_services_mock/services_mock.py,sha256=xfbYvl05gFUq2oT82cT-6K2CEJ6d9kFX_tk77QZHTFI,20787
|
1097
1097
|
frogml_services_mock/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
1098
1098
|
frogml_services_mock/utils/service_utils.py,sha256=ZlB0CnB1J6oBn6_m7fQO2U8tKoboHdUa6ljjkRMYNXU,265
|
1099
|
-
frogml_core-0.0.
|
1100
|
-
frogml_core-0.0.
|
1101
|
-
frogml_core-0.0.
|
1099
|
+
frogml_core-0.0.83.dist-info/METADATA,sha256=XAedlKw1nOv3sVLnocLu0rDD52x43v0stneFuyScY3Q,2004
|
1100
|
+
frogml_core-0.0.83.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
1101
|
+
frogml_core-0.0.83.dist-info/RECORD,,
|
@@ -15,7 +15,7 @@ _sym_db = _symbol_database.Default()
|
|
15
15
|
|
16
16
|
|
17
17
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%qwak/automation/v1/auto_scaling.proto\x12\x12qwak.automation.v1\"\xad\x01\n\x11\x41utoScalingConfig\x12\x19\n\x11min_replica_count\x18\x01 \x01(\x05\x12\x19\n\x11max_replica_count\x18\x02 \x01(\x05\x12\x18\n\x10polling_interval\x18\x03 \x01(\x05\x12\x18\n\x10\x63ool_down_period\x18\x04 \x01(\x05\x12.\n\x08triggers\x18\x05 \x01(\x0b\x32\x1c.qwak.automation.v1.Triggers\">\n\x08Triggers\x12\x32\n\x08triggers\x18\x01 \x03(\x0b\x32 .qwak.automation.v1.ScaleTrigger\"n\n\x0cScaleTrigger\x12N\n\x12prometheus_trigger\x18\x01 \x01(\x0b\x32\x30.qwak.automation.v1.AutoScalingPrometheusTriggerH\x00\x42\x0e\n\x0ctrigger_type\"d\n\x1c\x41utoScalingPrometheusTrigger\x12\x31\n\nquery_spec\x18\x01 \x01(\x0b\x32\x1d.qwak.automation.v1.QuerySpec\x12\x11\n\tthreshold\x18\x02 \x01(\x05\"\xaa\x01\n\tQuerySpec\x12>\n\x0bmetric_type\x18\x01 \x01(\x0e\x32).qwak.automation.v1.AutoScalingMetricType\x12H\n\x10\x61ggregation_type\x18\x02 \x01(\x0e\x32..qwak.automation.v1.AutoScalingAggregationType\x12\x13\n\x0btime_period\x18\x03 \x01(\x05
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%qwak/automation/v1/auto_scaling.proto\x12\x12qwak.automation.v1\"\xad\x01\n\x11\x41utoScalingConfig\x12\x19\n\x11min_replica_count\x18\x01 \x01(\x05\x12\x19\n\x11max_replica_count\x18\x02 \x01(\x05\x12\x18\n\x10polling_interval\x18\x03 \x01(\x05\x12\x18\n\x10\x63ool_down_period\x18\x04 \x01(\x05\x12.\n\x08triggers\x18\x05 \x01(\x0b\x32\x1c.qwak.automation.v1.Triggers\">\n\x08Triggers\x12\x32\n\x08triggers\x18\x01 \x03(\x0b\x32 .qwak.automation.v1.ScaleTrigger\"n\n\x0cScaleTrigger\x12N\n\x12prometheus_trigger\x18\x01 \x01(\x0b\x32\x30.qwak.automation.v1.AutoScalingPrometheusTriggerH\x00\x42\x0e\n\x0ctrigger_type\"d\n\x1c\x41utoScalingPrometheusTrigger\x12\x31\n\nquery_spec\x18\x01 \x01(\x0b\x32\x1d.qwak.automation.v1.QuerySpec\x12\x11\n\tthreshold\x18\x02 \x01(\x05\"\xaa\x01\n\tQuerySpec\x12>\n\x0bmetric_type\x18\x01 \x01(\x0e\x32).qwak.automation.v1.AutoScalingMetricType\x12H\n\x10\x61ggregation_type\x18\x02 \x01(\x0e\x32..qwak.automation.v1.AutoScalingAggregationType\x12\x13\n\x0btime_period\x18\x03 \x01(\x05*\xc5\x01\n\x15\x41utoScalingMetricType\x12\x19\n\x15METRIC_TYPE_NOT_VALID\x10\x00\x12\x13\n\x0fMETRIC_TYPE_CPU\x10\x01\x12\x16\n\x12METRIC_TYPE_MEMORY\x10\x02\x12\x17\n\x13METRIC_TYPE_LATENCY\x10\x03\x12\x13\n\x0fMETRIC_TYPE_GPU\x10\x04\x12\x1a\n\x16METRIC_TYPE_ERROR_RATE\x10\x05\x12\x1a\n\x16METRIC_TYPE_THROUGHPUT\x10\x06*\x90\x02\n\x1a\x41utoScalingAggregationType\x12\x1e\n\x1a\x41GGREGATION_TYPE_NOT_VALID\x10\x00\x12\x18\n\x14\x41GGREGATION_TYPE_MIN\x10\x01\x12\x18\n\x14\x41GGREGATION_TYPE_MAX\x10\x02\x12\x1c\n\x18\x41GGREGATION_TYPE_AVERAGE\x10\x03\x12\x18\n\x14\x41GGREGATION_TYPE_SUM\x10\x04\x12\x18\n\x14\x41GGREGATION_TYPE_P50\x10\x05\x12\x18\n\x14\x41GGREGATION_TYPE_P90\x10\x06\x12\x18\n\x14\x41GGREGATION_TYPE_P95\x10\x07\x12\x18\n\x14\x41GGREGATION_TYPE_P99\x10\x08\x42!\n\x1d\x63om.qwak.ai.automation.api.v1P\x01\x62\x06proto3')
|
19
19
|
|
20
20
|
_AUTOSCALINGMETRICTYPE = DESCRIPTOR.enum_types_by_name['AutoScalingMetricType']
|
21
21
|
AutoScalingMetricType = enum_type_wrapper.EnumTypeWrapper(_AUTOSCALINGMETRICTYPE)
|
@@ -25,6 +25,9 @@ METRIC_TYPE_NOT_VALID = 0
|
|
25
25
|
METRIC_TYPE_CPU = 1
|
26
26
|
METRIC_TYPE_MEMORY = 2
|
27
27
|
METRIC_TYPE_LATENCY = 3
|
28
|
+
METRIC_TYPE_GPU = 4
|
29
|
+
METRIC_TYPE_ERROR_RATE = 5
|
30
|
+
METRIC_TYPE_THROUGHPUT = 6
|
28
31
|
AGGREGATION_TYPE_NOT_VALID = 0
|
29
32
|
AGGREGATION_TYPE_MIN = 1
|
30
33
|
AGGREGATION_TYPE_MAX = 2
|
@@ -80,10 +83,10 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
80
83
|
|
81
84
|
DESCRIPTOR._options = None
|
82
85
|
DESCRIPTOR._serialized_options = b'\n\035com.qwak.ai.automation.api.v1P\001'
|
83
|
-
_AUTOSCALINGMETRICTYPE._serialized_start=
|
84
|
-
_AUTOSCALINGMETRICTYPE._serialized_end=
|
85
|
-
_AUTOSCALINGAGGREGATIONTYPE._serialized_start=
|
86
|
-
_AUTOSCALINGAGGREGATIONTYPE._serialized_end=
|
86
|
+
_AUTOSCALINGMETRICTYPE._serialized_start=689
|
87
|
+
_AUTOSCALINGMETRICTYPE._serialized_end=886
|
88
|
+
_AUTOSCALINGAGGREGATIONTYPE._serialized_start=889
|
89
|
+
_AUTOSCALINGAGGREGATIONTYPE._serialized_end=1161
|
87
90
|
_AUTOSCALINGCONFIG._serialized_start=62
|
88
91
|
_AUTOSCALINGCONFIG._serialized_end=235
|
89
92
|
_TRIGGERS._serialized_start=237
|
@@ -28,6 +28,9 @@ class _AutoScalingMetricTypeEnumTypeWrapper(google.protobuf.internal.enum_type_w
|
|
28
28
|
METRIC_TYPE_CPU: _AutoScalingMetricType.ValueType # 1
|
29
29
|
METRIC_TYPE_MEMORY: _AutoScalingMetricType.ValueType # 2
|
30
30
|
METRIC_TYPE_LATENCY: _AutoScalingMetricType.ValueType # 3
|
31
|
+
METRIC_TYPE_GPU: _AutoScalingMetricType.ValueType # 4
|
32
|
+
METRIC_TYPE_ERROR_RATE: _AutoScalingMetricType.ValueType # 5
|
33
|
+
METRIC_TYPE_THROUGHPUT: _AutoScalingMetricType.ValueType # 6
|
31
34
|
|
32
35
|
class AutoScalingMetricType(_AutoScalingMetricType, metaclass=_AutoScalingMetricTypeEnumTypeWrapper): ...
|
33
36
|
|
@@ -35,6 +38,9 @@ METRIC_TYPE_NOT_VALID: AutoScalingMetricType.ValueType # 0
|
|
35
38
|
METRIC_TYPE_CPU: AutoScalingMetricType.ValueType # 1
|
36
39
|
METRIC_TYPE_MEMORY: AutoScalingMetricType.ValueType # 2
|
37
40
|
METRIC_TYPE_LATENCY: AutoScalingMetricType.ValueType # 3
|
41
|
+
METRIC_TYPE_GPU: AutoScalingMetricType.ValueType # 4
|
42
|
+
METRIC_TYPE_ERROR_RATE: AutoScalingMetricType.ValueType # 5
|
43
|
+
METRIC_TYPE_THROUGHPUT: AutoScalingMetricType.ValueType # 6
|
38
44
|
global___AutoScalingMetricType = AutoScalingMetricType
|
39
45
|
|
40
46
|
class _AutoScalingAggregationType:
|
File without changes
|