Skip to content

Commit 19fe45a

Browse files
committed
add sample messages
1 parent d4953af commit 19fe45a

File tree

6 files changed

+87
-0
lines changed

6 files changed

+87
-0
lines changed

data/sample_messages/downtime.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"topic": "_",
3+
"title": "Downtime detected for service https://example.com",
4+
"message": "More than 1 minute of downtime detected",
5+
"actions": [
6+
{
7+
"action": "view",
8+
"label": "Open Dashboard",
9+
"url": "https://example.com"
10+
}
11+
],
12+
"priority": 5,
13+
"tags": ["arrow_down_small"]
14+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"topic": "_",
3+
"title": "Your friend has arrived!",
4+
"message": "A familiar person has been recognized waiting on your front door",
5+
"actions": [
6+
{
7+
"action": "view",
8+
"label": "Video Stream",
9+
"url": "https://example.com"
10+
},
11+
{
12+
"action": "http",
13+
"label": "Play \"I'm coming!\" sound",
14+
"url": "https://example.com"
15+
},
16+
{
17+
"action": "view",
18+
"label": "Door Controls",
19+
"url": "https://example.com"
20+
}
21+
],
22+
"tags": ["smiley", "door"]
23+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"topic": "_",
3+
"title": "Unknown person detected on your front door",
4+
"message": "An unknown person has been detected in front of your door",
5+
"actions": [
6+
{
7+
"action": "view",
8+
"label": "Video Stream",
9+
"url": "https://example.com"
10+
},
11+
{
12+
"action": "http",
13+
"label": "Play \"Barking Dog\" sound",
14+
"url": "https://example.com"
15+
},
16+
{
17+
"action": "view",
18+
"label": "Door Controls",
19+
"url": "https://example.com"
20+
}
21+
],
22+
"priority": 4,
23+
"tags": ["service_dog", "door"]
24+
}

data/sample_messages/notify.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"topic": "_",
3+
"title": "Notify, the native ntfy.sh client",
4+
"message": "Open Notify, subscribe to a topic, start receiving notifications! Send a notification to ntfy.sh whenever a long script finishes running, or when you detect a person in front of your door, or when the humidity sensor attached to your tomatoes is asking for help",
5+
"priority": 5,
6+
"tags": ["star_struck", "fireworks"]
7+
}

data/sample_messages/tomatoes.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"topic": "_",
3+
"title": "Your tomatoes are asking for water!",
4+
"message": "Water Level: 0%\nTemperature: 34°C\nAir Humidity Level: 20%",
5+
"tags": ["tomato", "water"]
6+
}

data/sample_messages/uptime.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"topic": "_",
3+
"title": "Service https://example.com returned operational",
4+
"message": "Service is up for more than 1m, after being in downtime for 30m",
5+
"actions": [
6+
{
7+
"action": "view",
8+
"label": "Open Dashboard",
9+
"url": "https://example.com"
10+
}
11+
],
12+
"tags": ["top"]
13+
}

0 commit comments

Comments
 (0)