File tree 1 file changed +5
-5
lines changed
hertzbeat-manager/src/main/resources/templates
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 26
26
</#if>
27
27
"triggerTimes": ${alert.triggerTimes!0},
28
28
"startAt": "${((alert.startAt!0)?number_to_datetime)?string('yyyy-MM-dd HH:mm:ss')}",
29
- <#if alert.activeAt?? && alert.activeAt gt 0>,
30
- "activeAt": "${((alert.activeAt!0)?number_to_datetime)?string('yyyy-MM-dd HH:mm:ss')}"
29
+ <#if alert.activeAt?? && alert.activeAt gt 0>
30
+ "activeAt": "${((alert.activeAt!0)?number_to_datetime)?string('yyyy-MM-dd HH:mm:ss')}",
31
31
</#if>
32
- <#if alert.endAt?? && alert.endAt gt 0>,
33
- "endAt": "${(alert.endAt?number_to_datetime)?string('yyyy-MM-dd HH:mm:ss')}"
32
+ <#if alert.endAt?? && alert.endAt gt 0>
33
+ "endAt": "${(alert.endAt?number_to_datetime)?string('yyyy-MM-dd HH:mm:ss')}"<#if alert.annotations?? && alert.annotations?size gt 0>,</#if>
34
34
</#if>
35
- <#if alert.annotations?? && alert.annotations?size gt 0>,
35
+ <#if alert.annotations?? && alert.annotations?size gt 0>
36
36
"annotations": {
37
37
<#list alert.annotations?keys as key>
38
38
"${key}": "${alert.annotations[key]?json_string}"<#if key?has_next>,</#if>
You can’t perform that action at this time.
0 commit comments