Creating a custom metric
Creating a custom metric directly:SELECT COUNT(income) FROM model, I would get this error message in both the UI and the API:
Updating a custom metric
In order to update a custom metric, use theupdateCustomMetricMutation. Follow an example here.
Querying a custom metric
You can query for custom metrics associated with a model like this:Creating a monitor for a custom metric
Users can monitor a custom metric using the performance monitor type. Follow an example here. To create a custom metric monitor - first get the custom metric id. This can come from the result of thecreateCustomMetricMutation above, or it can come from the URL of the custom metric:
app.arize.com/organizations/:org_id/spaces/:space_id/models/:model_id/custom_metrics/:custom_metric_id/
Then, use the createPerformanceMonitorMutation to create the monitor:
Examples
To learn more about performance monitors - refer to our monitors API documentation here.