librato / librato-services

Services for Librato Metrics
MIT License
14 stars 24 forks source link

Format decimal places of violations #128

Closed collinvandyck closed 9 years ago

collinvandyck commented 9 years ago

Currently, in the event where a notifications gets rendered for:

threshold: 100.50 violation: 200.1234567890

It will output the full number of the violation: 200.1234567890

This changeset alters this behavior by formatting the violation two decimal places past the resolution of the threshold. So for the same scenario, it will format the number of the violation as 200.1234.

This should help with making our formatted notifications easier to read.

obfuscurity commented 9 years ago

@collinvandyck No worries, you just need to gem update bundler or the next time you run bundle it'll happen again.

obfuscurity commented 9 years ago

Looks fine.