Skip to content
TriedDocs
Account

List alert metrics

List the metric names an alert rule can watch.

GEThttps://api.tried.com.au/alerts/metrics

Returns the metric names you can use in the metric field of an alert rule. Use it to fill a picker before you call Create alert.

Request#

This endpoint takes no path, query or body parameters.

Example request#

curl https://api.tried.com.au/alerts/metrics \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/alerts/metrics", {
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const metrics = await res.json();
import os, requests

res = requests.get(
    "https://api.tried.com.au/alerts/metrics",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
metrics = res.json()

Response#

200 OK

[
  "call_count",
  "call_success_rate",
  "negative_sentiment_rate",
  "total_call_cost",
  "concurrency_used",
  "custom_function_failure_count",
  "transfer_call_failure_count",
  "api_error_count",
  "e2e_latency_p50",
  "e2e_latency_p90",
  "qa_score_average",
  "qa_failure_count",
  "chat_count",
  "chat_success_rate",
  "chat_negative_sentiment_rate",
  "total_chat_cost"
]

The response is a JSON array of strings.

Metric What it measures over the window
call_count Calls created.
call_success_rate Percent of analysed calls marked successful.
negative_sentiment_rate Percent of calls with a sentiment that are Negative.
total_call_cost Sum of call cost.
concurrency_used Calls running now (ignores the window).
custom_function_failure_count Tool results that look like failures (an error key, "success": false, a status code of 400 or more, or text that starts with "error" or "failed").
transfer_call_failure_count Calls that invoked a transfer tool but did not end with call_transfer.
api_error_count API errors logged for the workspace.
e2e_latency_p50, e2e_latency_p90 Median and p90 end-to-end latency in ms across all turns.
qa_score_average Average QA score (weighted score when set) of QA results created in the window.
qa_failure_count QA results that failed, with human overrides applied.
chat_count, chat_success_rate, chat_negative_sentiment_rate, total_chat_cost The same measures for chats. The agent_ids filter does not apply to chat metrics.

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the analytics scope.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.

Retell compatibility#

Retell's public API reference has no alerting endpoints, so this route has no Retell SDK equivalent.