• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ExpediaDotCom / adaptive-alerting / 1725
95%

Build:
DEFAULT BRANCH: master
Ran 13 Apr 2021 03:37AM UTC
Jobs 1
Files 3
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1725

push

travis-ci

djsutho
Cleanup/detector manager (#382)

* Stop pushing non-anomalous metrics to the anomalies topic.

The point of the anomalies topic is to notify downstreams of anomalous
metrics, so it doesn't make sense to send non-anomalous metrics.

I've left logging non-anomalous metrics in place for now. It is unclear
whether we want to keep that (due to the volume), but that's a follow-up
discussion with the team.

In the KafkaAnomalyDetectorMapper, I replaced the JsonPojoSerde (output
value serde) with a MappedMetricDataJsonSerde, as the former is
deprecated. Behaviorally, the MMDJsonSerde returns null when
deserialization fails, instead of throwing an exception. This is in line
with the guidance here:

https://stackoverflow.com/questions/51136942/how-to-handle-serializationexception-after-deserialization

Finally, I added a few unit test cases and refactored the manager and
mapper a bit, mostly to clarify the stream processing logic in those two
components.

* Reestablished event publication.

Realized after previous commit that suppressing normal events will make it
difficult for downstream consumers to detect recovery. So I reinstated
that.

Still submitting the overall PR since there are additional tests,
refactorings and polishings.

* Updated to address PR comments

296 of 310 relevant lines covered (95.48%)

639067.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1725.1 13 Apr 2021 03:37AM UTC 0
95.48
Travis Job 1725.1
Source Files on build 1725
  • Tree
  • List 3
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1725
  • cf03e273 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc