-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
47 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{ .PreviousAlert}} issue has been resolved ✅ | ||
✅ {{ .PreviousAlert}} issue has been resolved |
6 changes: 3 additions & 3 deletions
6
cmd/bots/internal/common/templates/alerts/base_target_alert.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<b>Alert type:</b> Base Target | ||
<b>Details:</b> Base target is greater than the threshold value. The threshold value is {{ .Threshold}} | ||
<b>Base Target Alert</b> | ||
Base target is greater than the threshold value. The threshold value is {{ .Threshold}} | ||
{{ with .BaseTargetValues }} | ||
{{range .}} | ||
Node: <code>{{ .Node }}</code> | ||
<code>{{ .Node }}</code> | ||
Base Target: <code>{{ .BaseTarget }}</code> | ||
{{end}} | ||
{{end}} |
3 changes: 0 additions & 3 deletions
3
cmd/bots/internal/common/templates/alerts/base_target_alert.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
cmd/bots/internal/common/templates/alerts/incomplete_alert.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<b>Alert type:</b> Incomplete ❔ | ||
<b>Details:</b> Incomplete statement for node {{ .Node}} {{ .Version}} at height {{ .Height}} | ||
❗️<b>Incomplete Alert:</b> | ||
Incomplete statement for node {{ .Node}} {{ .Version}} at height {{ .Height}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
```yaml | ||
Alert type: Incomplete ❔ | ||
|
||
Level: Warning ❗ | ||
|
||
Alert type: Incomplete❗️ | ||
Details: Incomplete statement for node {{ .Node}} {{ .Version}} at height {{ .Height}} | ||
``` |
2 changes: 1 addition & 1 deletion
2
cmd/bots/internal/common/templates/alerts/internal_error_alert.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<b>Alert type:</b> Internal Error ❗️ | ||
❗️<b>Internal Error Alert</b> | ||
<b>Details:</b> An internal error has occurred: {{ .Error}} |
3 changes: 0 additions & 3 deletions
3
cmd/bots/internal/common/templates/alerts/internal_error_alert.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
```yaml | ||
Alert type: Internal Error ❗️ | ||
|
||
Level: Warning ❗ | ||
|
||
Details: An internal error has occurred, {{ .Error}} | ||
``` |
4 changes: 2 additions & 2 deletions
4
cmd/bots/internal/common/templates/alerts/invalid_height_alert.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<b>Alert type:</b> Invalid Height ❌ | ||
<b>Details:</b> Node {{ .Node}} {{ .Version}} has an invalid height {{ .Height}} | ||
❌<b>Invalid Height Alert</b> | ||
Node {{ .Node}} {{ .Version}} has an invalid height {{ .Height}} |
3 changes: 0 additions & 3 deletions
3
cmd/bots/internal/common/templates/alerts/invalid_height_alert.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
```yaml | ||
Alert type: Invalid Height ❌ | ||
|
||
Level: Warning ❗ | ||
|
||
Details: Node {{ .Node}} {{ .Version}} has an invalid height {{ .Height}} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<b>Alert type:</b> Simple Alert ❌ | ||
<b>Details:</b> {{ .Description}} | ||
<b>Simple Alert </b> | ||
{{ .Description}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
```yaml | ||
Alert type: Simple Alert ❌ | ||
|
||
Level: Error ❌ | ||
|
||
Details: {{ .Description}} | ||
``` |
4 changes: 2 additions & 2 deletions
4
cmd/bots/internal/common/templates/alerts/state_hash_alert.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
cmd/bots/internal/common/templates/alerts/state_hash_alert.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cmd/bots/internal/common/templates/alerts/state_hash_several_chains_alert.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```yaml | ||
Alert type: Several Chains Detected ❌ | ||
Details: Nodes have different state hashes at the same height {{ .SameHeight}} | ||
{{ with .FirstGroup }} | ||
BlockID (First group): {{ .BlockID}} | ||
{{range .Nodes}} | ||
{{.}} | ||
{{end}} | ||
{{end}} | ||
{{ with .SecondGroup }} | ||
BlockID (Second group): {{ .BlockID}} | ||
{{range .Nodes}} | ||
{{.}} | ||
{{end}} | ||
{{end}} | ||
{{ if .LastCommonStateHashExist }} | ||
Last common Block: {{ .ForkBlockID}} at {{ .ForkHeight}} | ||
{{ end }} | ||
``` |
4 changes: 2 additions & 2 deletions
4
cmd/bots/internal/common/templates/alerts/unreachable_alert.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<b>Alert type:</b> Unreachable ❌ | ||
<b>Details:</b> Node {{ .Node}} is unreachable | ||
❌<b>Unreachable Alert</b> | ||
Node {{ .Node}} is unreachable |
2 changes: 1 addition & 1 deletion
2
cmd/bots/internal/common/testdata/templates/alerts/alert_fixed.html.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
UnreachableAlert issue has been resolved ✅ | ||
✅ UnreachableAlert issue has been resolved |
7 changes: 2 additions & 5 deletions
7
cmd/bots/internal/common/testdata/templates/alerts/base_target_alert.html.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters