GDATASoftwareAG / Graylog-Plugin-AlertManager-Callback

A plugin for Graylog which provides the possibility to send alerts to the Prometheus AlertManager API.
MIT License
24 stars 5 forks source link

Adds JMTE-Template parsing of custom values for annotations and labels #7 #8

Closed StefanHufschmidt closed 5 years ago

StefanHufschmidt commented 5 years ago

This changes makes the users able to use JMTE-Templates as in the default Graylog E-Mail Notification Callback as requested in issue #7 .

codecov-io commented 5 years ago

Codecov Report

Merging #8 into master will increase coverage by 2.56%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master       #8      +/-   ##
============================================
+ Coverage     87.73%   90.29%   +2.56%     
- Complexity       69       73       +4     
============================================
  Files             9       10       +1     
  Lines           163      206      +43     
  Branches         12       14       +2     
============================================
+ Hits            143      186      +43     
  Misses           17       17              
  Partials          3        3
Impacted Files Coverage Δ Complexity Δ
...lertmanagercallback/AlertManagerAlarmCallback.java 90.47% <ø> (ø) 8 <0> (ø) :arrow_down:
...ertmanagercallback/AlertManagerPluginMetaData.java 100% <100%> (ø) 9 <1> (ø) :arrow_down:
...tmanagercallback/CustomPropertiesJMTEResolver.java 100% <100%> (ø) 4 <4> (?)
...ertmanagercallback/AlertManagerPayloadBuilder.java 94.73% <100%> (+0.98%) 27 <0> (ø) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 43bd1df...ad5bce4. Read the comment docs.