caikit.runtime.metrics.rpc_meter
Attributes
Classes
This class contains metering logic for RPC calls affiliated with the Caikit Runtime that are |
Module Contents
- class caikit.runtime.metrics.rpc_meter.RPCMeter[source]
This class contains metering logic for RPC calls affiliated with the Caikit Runtime that are not a part of the Model Runtime proto definition.
- predict_rpc_counter = []
- logs_writer_thread
- metering_event
- rpc_counter_lock
- write_file_lock
- metrics_dir
- unique_id = ''
- file_path
- update_metrics(model_type)[source]
Updates metrics, writes to file if max count has reached and resets counters Args:
model_type (string): Type of model the request was made for