Create alarm
create_alarm_settingCreate Alarm Setting
When to use: 사용자가 정기 리포트 알람이나 임계값 알람을 새로 만들어 슬랙·이메일·카카오로 받고 싶을 때. 발송 주기·시각·수신처·조건을 모두 담아 저장한다.
When NOT to use: 기존 알람의 수신처나 주기를 바꾸는 경우에는 쓰지 않는다(수정 tool). 일회성 조회는 알람이 아니라 대시보드 조회 tool 을 쓴다.
Limitations: 발송 시각의 분은 10분 단위여야 하고, 여러 대시보드를 묶는 알람은 일일 리포팅 유형에서만 가능하다. 저장 전 설정 컴파일을 통과하지 못하면 422 로 거부된다 — 먼저 알람 설정 컴파일로 확인하는 것을 권장. 조회 응답의 가린 수신처(****)는 새 알람에 쓸 수 없어 422 로 거부된다 — 사용자에게 전체 주소를 받아 넣는다.
Examples:
Q: 매일 아침 9시에 지난 7일 매출 요약을 슬랙으로 보내줘 params: {'body': {'name': '일간 매출 요약', 'alarm_type': 'SCHEDULE', 'schedule_interval': 86400, 'send_time': '09:00:00', 'query_config': {'data_source': 'commerce_order', 'measures': ['net_sales'], 'dimensions': ['channel_name'], 'date_filters': {'type': 'last', 'delta': 7, 'delta_freq': 'day'}, 'freq': 'day'}, 'destinations': [{'platform': 'slack', 'destination': '#sales-report'}], 'rules': []}}
Output shape: object: saved alarm setting with its rules
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": {
"name": "<name>",
"alarm_type": "<alarm_type>",
"schedule_interval": "<schedule_interval>",
"send_time": "<send_time>",
"query_config": "<query_config>",
"destinations": "<destinations>",
"rules": "<rules>"
},
"name": "create_alarm_setting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| rules | Yes | ||
| send_time | Yes | ||
| alarm_type | Yes | ||
| project-id | No | ||
| description | No | ||
| destinations | Yes | ||
| query_config | Yes | ||
| schedule_days | No | ||
| send_time_end | No | ||
| message_config | No | ||
| rule_logical_op | No | AND | |
| schedule_interval | Yes | 알람의 **점검 주기**. 한 주기에 한 번 판정하고, 판정이 한 번이니 발송도 한 번이다 — 상한이 주기에 이미 들어 있어 별도의 알림 빈도 축이 없다. 리포트(SCHEDULE)에는 같은 값이 발송 주기다. 조건도 버킷도 없이 "이 시각에 보내라" 가 계약이라 점검과 발송이 같은 사건이다. 주 단위는 여기 두지 않는다 — ``schedule_days`` 요일 필터와 ``DAILY`` 를 함께 쓰면 "매주 월요일" 이 되고, 그쪽이 "몇 요일에" 를 사용자에게 그대로 보여준다. 주기 상수로 표현하면 위상(어느 요일부터 세는가)이 보이지 않는다. 전용 DAG 는 없다. ``alarm_trigger`` 단일 tick(``*/10``)이 interval 필터 없이 due 를 잡으므로, 값을 늘려도 배포 단위가 늘지 않는다. | |
| custom_interval_minutes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||