hydrosdk.monitoring module¶
- show-inheritance
- class hydrosdk.monitoring.MetricModel(modelversion, threshold, comparator)¶
Model having extra metric fields
- Parameters
modelversion (ModelVersion) –
threshold (float) –
comparator (hydrosdk.monitoring.ThresholdCmpOp) –
- Return type
- class hydrosdk.monitoring.MetricSpecConfig(modelversion_id, threshold, threshold_op, servable=None)¶
Metric specification config
Create a MetricSpecConfig for the specified ModelVersion.
- Parameters
modelversion_id (int) – an id of the ModelVersion, which will be used as a monitoring metric
threshold_op (hydrosdk.monitoring.ThresholdCmpOp) – operator to be used to compare metric values against threshold
- Return type
- class hydrosdk.monitoring.ThresholdCmpOp¶
Threshold comparison operator is used to check if ModelVersion is healthy Model is healthy if {metric_value}{TresholdCmpOp}{threshold}