frogml-core 0.0.82__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.82.dist-info → frogml_core-0.0.83.dist-info}/METADATA +1 -1
- {frogml_core-0.0.82.dist-info → frogml_core-0.0.83.dist-info}/RECORD +5 -5
- {frogml_core-0.0.82.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
|
@@ -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,,
|
File without changes
|