Skip to content

Commit

Permalink
Add heartbeat check-ins sinatra-puma endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
unflxw committed Sep 13, 2024
1 parent b701a47 commit 083fbe9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ruby/sinatra-puma/app/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,11 @@ class AnotherCustomError < StandardError

"Cron check-in sent!"
end

get "/heartbeat" do
Appsignal::CheckIn.heartbeat("custom-heartbeat-checkin")

"Heartbeat check-in sent!"
end

Appsignal::CheckIn.heartbeat("continuous-heartbeat-checkin", continuous: true)

0 comments on commit 083fbe9

Please sign in to comment.