Skip to content

Instantly share code, notes, and snippets.

@willrax
Created May 20, 2016 16:35
Show Gist options
  • Save willrax/53027e10ce3b10de418eacd4f5be0750 to your computer and use it in GitHub Desktop.
Save willrax/53027e10ce3b10de418eacd4f5be0750 to your computer and use it in GitHub Desktop.
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