@Test public void predicate_string() { Alert alert = new Alert(t0, alert_name, () -> "bar", Optional.of(false), Duration.standardDays(2), "test", EMPTY_MAP); assertEquals("bar", alert.getRule()); }
public String getRule() { return rule_.get().toString(); }
Alert implements Serializable { public String getRule() { return rule_.get().toString(); } }
Alert implements Serializable { public String getRule() { return rule_.get().toString(); } Alert(DateTime start, GroupName name, Supplier<CharSequence> rule, Optional<Boolean> triggered, Duration fire_duration, String message, Map<String, Any2<MetricValue, List<MetricValue>>> attributes);  Alert(DateTime start, DateTime cur, GroupName name, Supplier<CharSequence> rule, Optional<Boolean> triggered, Duration fire_duration, String message, Map<String, Any2<MetricValue, List<MetricValue>>> attributes); }
Alert implements Serializable { public String getRule() { return rule_.get().toString(); } Alert(DateTime start, GroupName name, Supplier<CharSequence> rule, Optional<Boolean> triggered, Duration fire_duration, String message, Map<String, Any2<MetricValue, List<MetricValue>>> attributes);  Alert(DateTime start, DateTime cur, GroupName name, Supplier<CharSequence> rule, Optional<Boolean> triggered, Duration fire_duration, String message, Map<String, Any2<MetricValue, List<MetricValue>>> attributes); GroupName getName(); String getRule(); DateTime getStart(); DateTime getCur(); Duration getDuration(); Duration getFireDuration(); Optional<Boolean> isTriggered(); boolean isFiring(); String getMessage(); Map<String, Any2<MetricValue, List<MetricValue>>> getAttributes(); AlertState getAlertState(); Alert extend(Alert new_alert); @Override int hashCode(); @Override boolean equals(Object obj); }
Alert implements Serializable { public String getRule() { return rule_.get().toString(); } Alert(DateTime start, GroupName name, Supplier<CharSequence> rule, Optional<Boolean> triggered, Duration fire_duration, String message, Map<String, Any2<MetricValue, List<MetricValue>>> attributes);  Alert(DateTime start, DateTime cur, GroupName name, Supplier<CharSequence> rule, Optional<Boolean> triggered, Duration fire_duration, String message, Map<String, Any2<MetricValue, List<MetricValue>>> attributes); GroupName getName(); String getRule(); DateTime getStart(); DateTime getCur(); Duration getDuration(); Duration getFireDuration(); Optional<Boolean> isTriggered(); boolean isFiring(); String getMessage(); Map<String, Any2<MetricValue, List<MetricValue>>> getAttributes(); AlertState getAlertState(); Alert extend(Alert new_alert); @Override int hashCode(); @Override boolean equals(Object obj);  }