Creates a threshold alert.
Threshold units depend on metric:
error_rate — percent (0-100)latency — milliseconds (positive integer)cost — dollars (positive number)evaluation_score — score (0-1); also requires evaluation_name, evaluation_aggregation (avg or individual), and evaluation_threshold_direction (above or below).Returns 400 with field on the error envelope when the metric/evaluation field coupling is wrong, so a calling agent can self-correct.
Returns 409 duplicate_alert_name if an alert with the same name already exists for this app.
Documentation Index
Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt
Use this file to discover all available pages before exploring further.
Application ID for tenant scoping
API key (sk_agentmark_*)
error_rate, latency, cost, evaluation_score 1 - 1005 <= x <= 100avg, individual 1 - 255above, below Alert created.