Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael William Coughlin
GraceDB Server
Commits
f4ee271d
Commit
f4ee271d
authored
6 years ago
by
Tanner Prestegard
Committed by
GraceDB
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add heartbeat URL
parent
197ba62e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/urls.py
+4
-0
4 additions, 0 deletions
config/urls.py
gracedb/core/views.py
+6
-0
6 additions, 0 deletions
gracedb/core/views.py
with
10 additions
and
0 deletions
config/urls.py
+
4
−
0
View file @
f4ee271d
...
...
@@ -9,6 +9,7 @@ from django.contrib.auth.views import logout
from
django.views.generic
import
TemplateView
# Import feeds
import
core.views
from
events.feeds
import
EventFeed
,
feedview
# After Django 1.10, have to import views directly, rather
...
...
@@ -62,6 +63,9 @@ urlpatterns = [
url
(
r
'
^apibasic/
'
,
include
(
'
api.urls
'
,
namespace
=
'
legacy_apibasic
'
)),
url
(
r
'
^apiweb/
'
,
include
(
'
api.urls
'
,
namespace
=
'
legacy_apiweb
'
)),
# Heartbeat URL
url
(
r
'
^heartbeat/$
'
,
core
.
views
.
heartbeat
,
name
=
'
heartbeat
'
),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
...
...
This diff is collapsed.
Click to expand it.
gracedb/core/views.py
0 → 100644
+
6
−
0
View file @
f4ee271d
from
django.http
import
HttpResponse
def
heartbeat
(
request
):
# Do something (?) and return 200 response
return
HttpResponse
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment