Skip to content

Commit

Permalink
Merge pull request #425 from sentrysoftware/feature/issue-421-alert-n…
Browse files Browse the repository at this point in the history
…oise-reduction-on-hwstatusstate=present

Issue #421: Alert noise reduction on `hw.status{state="present"}`
  • Loading branch information
NassimBtk committed Sep 26, 2024
2 parents 9ef5209 + 4021db3 commit 43c6b7c
Show file tree
Hide file tree
Showing 14 changed files with 366 additions and 1,322 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
*/

import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down Expand Up @@ -124,6 +126,14 @@ public enum KnownMonitorType {

private String key;

/**
* Set of all known monitor type keys.
*/
public static final Set<String> KEYS = Stream
.of(KnownMonitorType.values())
.map(KnownMonitorType::getKey)
.collect(Collectors.toSet());

/**
* Retrieves the {@code KnownMonitorType} enum constant that matches the given string representation,
* ignoring case.
Expand Down
Loading

0 comments on commit 43c6b7c

Please sign in to comment.