opsgenie / opsgenie-heartbeat

OpsGenie Heartbeat Monitoring clients, and other related utilities
Apache License 2.0
14 stars 13 forks source link

Do not send any data when HTTP body is nil #6

Closed RulerOf closed 7 years ago

RulerOf commented 7 years ago

This resolves the problems identified in Issue #5, at least for the -start directive.

RulerOf commented 7 years ago

I've implemented this updated code in our environment, and I can confirm that all of our heartbeats are working correctly.

We use the -start and -stop switches, but not the -send switch, so I didn't test that one.