hydrosdk.monitoring module

show-inheritance

class hydrosdk.monitoring.MetricModel(modelversion, threshold, comparator)

Model having extra metric fields

Parameters
Return type

MetricModel

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 (Union[int, float]) – a threshold for the metric

  • threshold_op (hydrosdk.monitoring.ThresholdCmpOp) – operator to be used to compare metric values against threshold

Return type

MetricSpecConfig

class hydrosdk.monitoring.ThresholdCmpOp

Threshold comparison operator is used to check if ModelVersion is healthy Model is healthy if {metric_value}{TresholdCmpOp}{threshold}