Created
May 20, 2016 16:35
-
-
Save willrax/53027e10ce3b10de418eacd4f5be0750 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defp set_status(:ok, site) do | |
ConCache.update(:sites, site.name, fn(old) -> | |
case old do | |
%{incident_key: incident_key} -> | |
Pagexduty.Server.resolve("#{site.name} health check has passed", incident_key) | |
_ -> | |
nil | |
end | |
{:ok, %{status: :ok}} | |
end) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment