Get Scheduled Alert
(v2)GET
Retrieves a scheduled alert by id, with its aggregation, filters, threshold, severity and schedule state including how many times it has run.
curl -X GET "https://api.confident-ai.com/v2/scheduled-alerts/{scheduledAlertId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<SCHEDULED-ALERT-ID>",
"name": "Trace error rate spike",
"description": "Errors above 5% over the last hour.",
"type": "THRESHOLD",
"dataModel": "TRACE",
"aggregation": "ERROR_RATE",
"filters": {
"operator": "AND",
"groups": [
{
"operator": "AND",
"filters": [
{
"category": "User Id",
"condition": "Is less than",
"value": "string",
"key": "string"
}
]
}
]
},
"thresholdSettings": {
"value": 0.05,
"direction": "above"
},
"detectionSettings": {
"traceName": "string",
"metrics": [
"avg_score"
],
"direction": "WORSENED",
"minAffectedCount": 0,
"significantOnly": true
},
"severity": "CRITICAL",
"scheduleSettings": {
"recurrence": "ONCE",
"repeatEvery": 1,
"repeatUnit": "MINUTE",
"startAt": null,
"endAt": null,
"maxRuns": null,
"runCount": 12,
"lastRunAt": "2025-02-01T10:00:00.000Z",
"enabled": true
}
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/monitors",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
scheduledAlertIdstringRequiredThe id of the scheduled alert.
Response
Get Scheduled Alert succeeded.
successbooleanIndicates if the request was successful.
dataobjectAn alert that runs on a schedule and notifies when an aggregate crosses its threshold, or while a regression, anomaly or signal spike is detected.
Show 11 propertiesHide 11 properties
idstringThe id of the scheduled alert, generated by Confident AI.
namestringThe name of the alert, shown in the notification.
descriptionstring | nullWhat the alert means and what to do about it, or
nullwhen it has no description.typeenumWhat the alert watches.
THRESHOLDalerts compare an aggregation againstthresholdSettings.REGRESSION,ANOMALYandSIGNAL_SPIKEalerts notify on every run while Confident AI detects one inside the alert'sfilters, as configured bydetectionSettings. Defaults toTHRESHOLD.Show 4 enum valuesHide 4 enum values
THRESHOLDREGRESSIONANOMALYSIGNAL_SPIKE
dataModelenumWhat kind of production item an alert measures over.
TRACEandSPANalerts aggregate single requests;THREADalerts aggregate conversations.Show 8 enum valuesHide 8 enum values
TRACESPANLLM_SPANAGENT_SPANRETRIEVER_SPANTOOL_SPANCUSTOM_SPANTHREAD
aggregationstring | nullWhat the alert measures, as an aggregation token, or
nullfor alerts that are notTHRESHOLDalerts.filtersobjectA set of filter groups combined by a top-level operator. Each group combines its filter rows by its own operator, and each row matches one property, such as
NameorUser Id, against a value with a condition such asIsorContains.Show 2 propertiesHide 2 properties
operatorenumShow 2 enum valuesHide 2 enum values
ANDOR
groupslist of objectsShow 2 propertiesHide 2 properties
operatorenumShow 2 enum valuesHide 2 enum values
ANDOR
filterslist of objectsShow 4 propertiesHide 4 properties
categoryenumShow 98 enum valuesHide 98 enum values
User IdCustomer IdCustomer NameThread IdTrace UUIDTrace NameTrace VersionTrace StatusTrace TagsTraceSpan UUIDNameSpan NameSpan TypeSpan StatusMetrics StatusError StatusCalled toolHanded off toHanded off byNearest parent of typeAnywhere underTop levelNameModelProviderIntegrationInput argumentEmbedderChunk SizeTop-KHyperparameterDatasetDataset NameTest Run IDIdentifierTest FileStatusOfficialEvals ModeTests PassedTests FailedPass RateFail RateStar RatingThumbs RatingExplanationExpected OutputExpected OutcomeAnnotatorEnd UserAnnotation TypeAnnotation NameAnnotation DateAnnotation RatingAnnotation ThumbsAnnotation ChoiceAnnotation Yes / NoAnnotation TextMetric ScoreMetric StatusNameMetadataClassifierMetricMetric NameTrace CountTest Case IDRequested review fromAssigned toTagsLabelsTools CalledFinalizedGolden IDIngestion TaskLatencyEnvironmentReview flagVulnerabilityVulnerability TypeAttack MethodRisk CategoryFrameworkAssessment IDPrompt AliasPrompt VersionPrompt LabelPrompt Commit HashPromptAnnotationsFailure ModeRecommendedSub-mode NameSub-mode RecommendedSub-mode CertaintyStatus CodeActor Type
conditionenum | enum | enum | enum | enum | enum | enum | enum | enum | enumShow 10 variantsHide 10 variants
enum
Show 6 enum valuesHide 6 enum values
Is less thanIs equal or less thanIs greater thanIs equal or greater thanIs equal toDoes not equal
- OR
enum
Show 2 enum valuesHide 2 enum values
HasHas not
- OR
enum
Show 2 enum valuesHide 2 enum values
IsIs not
- OR
enum
Show 2 enum valuesHide 2 enum values
Is one ofIs not one of
- OR
enum
Show 4 enum valuesHide 4 enum values
IsIs notIs emptyIs not empty
- OR
enum
Show 2 enum valuesHide 2 enum values
ContainsDoes not contain
- OR
enum
Show 3 enum valuesHide 3 enum values
ContainsContains onlyDoes not contain
- OR
enum
Show 4 enum valuesHide 4 enum values
Has decreased by more thanHas decreased by less thanHas increased by more thanHas increased by less than
- OR
enum
Show 1 enum valueHide 1 enum value
Has changed from
- OR
enum
Show 1 enum valueHide 1 enum value
Is between
valuestring | number | list of stringsShow 3 variantsHide 3 variants
string
- OR
number
- OR
list of strings
keystring
thresholdSettingsobject | nullWhen the alert fires. Latency is compared in seconds, cost in
USD, and rates such asERROR_RATEas fractions between 0 and 1.Show 2 propertiesHide 2 properties
valuenumberThe number the measured value is compared against.
directionenumWhether the alert fires when the measured value rises above the threshold or falls below it.
Show 2 enum valuesHide 2 enum values
abovebelow
detectionSettingsobject | object | object | nullShow 4 variantsHide 4 variants
object
Show 5 propertiesHide 5 properties
traceNamestringmetricslist of enumsShow 5 enum valuesHide 5 enum values
avg_scoreerror_rateavg_latencyavg_costnegative_label_rate
directionenumShow 2 enum valuesHide 2 enum values
WORSENEDANY
minAffectedCountintegersignificantOnlyboolean
- OR
object
Show 4 propertiesHide 4 properties
traceNamestringmetricslist of enumsShow 5 enum valuesHide 5 enum values
avg_scoreerror_rateavg_latencyavg_costnegative_label_rate
directionenumShow 2 enum valuesHide 2 enum values
WORSENEDANY
minAffectedCountinteger
- OR
object
Show 3 propertiesHide 3 properties
classifierIdslist of stringsdirectionenumShow 2 enum valuesHide 2 enum values
WORSENEDANY
minAffectedCountinteger
- OR
null
severityenumHow urgent the alert is. It also decides who hears about it: an integration receives an alert only when it subscribes to that severity.
Show 4 enum valuesHide 4 enum values
CRITICALERRORWARNINGINFO
scheduleSettingsobject | nullThe alert's cadence together with its run history.
Show 9 propertiesHide 9 properties
recurrenceenumHow often a schedule fires:
ONCEruns a single time atstartAt,INTERVALrepeats everyrepeatEveryrepeatUnits.Show 2 enum valuesHide 2 enum values
ONCEINTERVAL
repeatEveryinteger | nullHow many
repeatUnits apart the runs are, ornullwhen the alert runs once.repeatUnitenum | nullThe unit
repeatEverycounts for anINTERVALschedule.Show 5 enum valuesHide 5 enum values
MINUTEHOURDAYWEEKMONTH
startAtstring | nullWhen the schedule first runs, or
nullwhen it started immediately.endAtstring | nullWhen the schedule stops running, or
nullwhen it is open-ended.maxRunsinteger | nullHow many times the alert runs before it stops, or
nullwhen it runs indefinitely.runCountintegerHow many times the alert has run so far.
lastRunAtstring | nullWhen the alert last ran, or
nulluntil its first run.enabledbooleanWhether the schedule is currently running.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.