Get Metric
Retrieve a specific metric by ID or slug.
Authorizations
API Key Authentication. It should be included in the header of each request.
Path Parameters
ID or Slug - Metric identifier. Can be either:
- Numeric ID (e.g.,
123) - Slug (e.g.,
latency_metric,customer_satisfaction)
Response
Name of the metric.
Example: "Customer Satisfaction" or "Appointment Booking"
255binary- Binarycontinuous_qualitative- Continuous Qualitativenumeric- Numericenum- Enum
binary, continuous_qualitative, numeric, enum URL-friendly unique identifier in snake_case format. Example: "customer_satisfaction_1562"
255Description of what the metric measures.
Example: "Measures how satisfied customers are with the service provided"
Type of metric
basic- Basic (Deprecated in favor of LLM Judge)custom_prompt- Custom Prompt ( Deprecated in favor of LLM Judge)custom_code- Custom Codellm_judge- LLM Judge
basic, custom_prompt, custom_code, llm_judge List of possible enum values for enum type metrics.
Example: ["satisfied", "unsatisfied"]
Whether this metric requires audio analysis.
Example: true or false
Evaluation prompt for the metric.
Example: "Evaluate customer satisfaction based on conversation"
always- Alwaysautomatic- Automaticcustom- Custom
always, automatic, custom Type of trigger evaluation: LLM judge or custom code.
Only used when evaluation_trigger is CUSTOM.
Example: "llm_judge" or "custom_code"
llm_judge- LLM Judgecustom_code- Custom Code
llm_judge, custom_code Evaluation trigger prompt for the metric.
Example: "Evaluate metric only if call ended reason is main-agent-ended-call"
Python custom code to determine metric relevance. Code should set _result (bool) and _explanation (str). Example:
Priority assignment prompt for the metric.
Custom configuration parameters for specific metrics if metric supports it. Example:
- For Infrastructure issues
The overall score for this metric across all test sets
The total score for this metric
Knowledge base files associated with this metric
Enable this metric for observability.
Example: true or false
Enable this metric for simulations.
Example: true or false
Enable sampling for this metric using project-level sample rate
Enable alerts for this metric when it fails (value=false).
Only applicable to binary metrics (eval_type=binary).
For other metric types, use significant_change_alert_status instead.
Example: true or false
disabled- Alerts Disablednormal- Normal Alertssignificant_change- Significant Change Alerts
disabled, normal, significant_change Filters to apply before computing alerts (CallLogQueryFilter format)
Slack workspace to send alerts to
Override channel ID for this metric's alerts
255Alert status: enabled or disabled.
enabled- Enableddisabled- Disabled
enabled, disabled Alert direction: increase only, decrease only, or both (empty = both).
Example: "increase", "decrease", or "both"
- `` - Both (Increase and Decrease)
increase- Increase Onlydecrease- Decrease Only
, increase, decrease Predefined function name
Example: "get_latency" or "check_critical_deviations"
255Python custom code for the metric. Example:
Vocera defined metric code for the metric.
Example: "7fd534f5"
255Reviews associated with the metric
Window size for rolling statistics calculation.
Example: 50
Standard deviation multiplier for threshold calculation.
Example: 2.0
Alpha value for exponentially weighted moving average (EWMA) calculation.
Example: 0.1
When enabled, this metric is automatically assigned to new agents created in the project.
Unsaved proposal from a metric-optimiser cron run. Shape: {description, evaluation_trigger, type, custom_code, score, baseline_score, cron_job_id, cron_job_name, proposed_at}.