Preview alarm message
render_alarm_previewRender Preview Alarm
When to use: 알람이 실제로 보낼 메시지 원문을 채널(slack·email·kakao)별로 미리 볼 때. 저장하기 전에 문구와 구성을 사용자에게 보여 주고 확인받는 용도.
Limitations: 저장도 발송도 하지 않지만 발송과 같은 경로로 쿼리를 실행하고 조건을 평가한다. channels 를 비우면 slack 만 그린다. 조건 알람(METRIC/ANOMALY)이 지금 조건을 충족하지 않으면 triggered=false 이고 조건 카드 없이 그려진다. 평가 결과가 ERROR 면 channels 가 비고 error 에 사유가 오고, 평가 자체가 예외로 실패하거나 지원하지 않는 분석 유형이면 422 다. 수신처는 받지 않으므로 누구에게 갈지는 알 수 없다. 참조 대시보드나 데이터를 읽을 권한이 없으면 403. 저장과 같은 정책(모호한 query_config, 섹션 수 한도, kakao 와 다중 대시보드 조합 등)을 어기면 평가 전에 422, 참조 대시보드가 이 프로젝트에 없으면 404 다.
Examples:
Q: 이 알람이 슬랙으로 어떻게 보일지 미리 보여줘 params: {'body': {'name': '일간 매출 요약', 'alarm_type': 'SCHEDULE', 'schedule_interval': 86400, 'query_config': {'data_source': 'commerce_order', 'measures': ['net_sales'], 'dimensions': ['channel_name'], 'date_filters': {'type': 'last', 'delta': 7, 'delta_freq': 'day'}, 'freq': 'day'}, 'channels': ['slack']}}
Output shape: object: {channels[{channel, subject, slack_blocks | body_html | kakao_content, error_code}], triggered, status, error}
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": "render_alarm_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| rules | No | ||
| channels | No | ||
| alarm_type | Yes | ||
| project-id | No | ||
| description | No | ||
| query_config | Yes | ||
| message_config | No | ||
| rule_logical_op | No | AND | |
| schedule_interval | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||