Validate alarm settings
compile_alarm_settingCompile Alarm
When to use: 알람을 저장하기 전에 그 설정이 실제로 실행 가능한지 확인할 때. 저장 경로와 동일한 파싱을 수행해 정규화된 설정과 주의사항을 돌려주므로, 알람 생성/수정 직전 dry-run 으로 쓴다.
Limitations: 데이터를 읽지 않는다 — 실제 값·행 수가 필요하면 알람 미리보기를 쓴다. 커스텀 대시보드를 참조하는 섹션은 쿼리가 발송 시점에 해석되므로 여기서 검증되지 않고 warnings 로만 알린다. 조건 검증은 조건을 실제로 평가하는 임계값 알람에만 적용된다. 실패는 422 problem+json.
Examples:
Q: 이 알람 설정이 저장 가능한지 미리 확인해줘 params: {'body': {'alarm_type': 'SCHEDULE', 'query_config': {'data_source': 'commerce_order', 'measures': ['net_sales'], 'dimensions': ['channel_name'], 'date_filters': {'type': 'last', 'delta': 7, 'delta_freq': 'day'}, 'freq': 'day'}}}
Output shape: object: {normalized_query_config, warnings[]}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"alarm_type": "<alarm_type>",
"query_config": "<query_config>"
},
"name": "compile_alarm_setting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | ||
| alarm_type | Yes | ||
| project-id | No | ||
| destinations | No | ||
| query_config | Yes | ||
| message_config | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||