ai_instance_history
Retrieve stored time-series metrics for an AI component instance to analyze trends in hit rate, cost, evictions, and item count. Use to detect degradation, growth, or threshold drift over a specified period.
Instructions
Get the stored metrics time-series for one AI component instance (hits, misses, hit rate, cost saved, evictions, item count, index size, threshold). Use ai_list_instances first to find the instance field identifier. Use this to see trends: hit-rate degradation, growth, threshold drift.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Instance field identifier from ai_list_instances | |
| hours | No | Look-back window in whole hours, 1-168 (default 24) | |
| instanceId | No | Optional instance ID override |