-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
37 lines (35 loc) · 1.21 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
log:
path: './log/alertService.log'
maxAge: '720h'
rotationAge: '24h'
level: 'info'
jobs:
- type: "WeatherWarning"
# 使用了 github.com/robfig/cron/v3 的 cron 定时器
# schedule规则详情,可查看:https://godoc.org/github.com/robfig/cron/v3#h3-Schedule_Expressions
schedule: "@every 10m"
title: "气象预警"
# 此处不填写的话,默认为上海市
# 此处必须填写完整的省市县名称,不能使用简称,如果使用简称,那么会导致查询不到数据
# 例如:上海市,不能使用“上海”,必须填写“上海市”
# 西城区,不能使用“西城”,必须填写“西城区”
# 正定县,不能使用“正定”,必须填写“正定县”
location:
- province: '上海市'
- province: '山西省'
city: '太原市'
county: '尖草坪区'
- province: '江苏省'
city: '连云港市'
county: '灌云县'
store:
# 若使用内存缓存,重启会重新拉取数据
type: "memory"
alert:
# - type: "email"
# to: " - "
# from: " subject: "
# body: ""
- type: "pushDeer"
keys:
- "PDU1430T9LLQmSCITOG5kQQLUTDhfK25ac0rwzzq"