Skip to content

Commit

Permalink
HWKALERTS-74 fix master rebase issues
Browse files Browse the repository at this point in the history
- get File action to work on windows
  - don't assume unix filename
  - change Alert Ids to be usable in windows filenames, replace '|' delimiter
    with '-', which is what we use elsewhere in Condition and Dampening.
  • Loading branch information
jshaughn committed Aug 3, 2015
1 parent f138332 commit b5b1253
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public class FilePlugin implements ActionPluginListener {
private ObjectMapper objectMapper;

public FilePlugin() {
defaultProperties.put("path", "/tmp/hawkular/actions/file");
defaultProperties.put("path",
new File(System.getProperty("java.io.tmpdir"), "hawkular/actions/file").getAbsolutePath());
objectMapper = new ObjectMapper();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public Alert(String tenantId, String triggerId, Severity severity, List<Set<Cond
this.ctime = System.currentTimeMillis();
this.status = Status.OPEN;

this.alertId = triggerId + "|" + ctime;
this.alertId = triggerId + "-" + ctime;
}

public String getTenantId() {
Expand Down

0 comments on commit b5b1253

Please sign in to comment.