Skip to content

Provide heartbeat support for healthchecking periodic services#12

Merged
mvantellingen merged 2 commits into
labd:masterfrom
vdboor:feature/heartbeats
May 8, 2018
Merged

Provide heartbeat support for healthchecking periodic services#12
mvantellingen merged 2 commits into
labd:masterfrom
vdboor:feature/heartbeats

Conversation

@vdboor
Copy link
Copy Markdown
Contributor

@vdboor vdboor commented May 3, 2018

This adds heartbeat support.

Feel free to comment on the object naming, suggest API changes, etc..

There is little need for it, and the new heartbeat admin would require
lots of compatbility code for these unsupported releases.

* django.templatetags.static.static() just prefixes STATIC_IRL in 1.8/1.9
* Admin icons would require GIFs in 1.8.
* Tests would need MIDDLEWARE_CLASSES
@codecov
Copy link
Copy Markdown

codecov Bot commented May 3, 2018

Codecov Report

Merging #12 into master will increase coverage by 6.63%.
The diff coverage is 92.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   85.35%   91.98%   +6.63%     
==========================================
  Files           5        9       +4     
  Lines         157      262     +105     
  Branches       23       30       +7     
==========================================
+ Hits          134      241     +107     
+ Misses         19       16       -3     
- Partials        4        5       +1
Impacted Files Coverage Δ
src/django_healthchecks/migrations/0001_initial.py 0% <0%> (ø)
src/django_healthchecks/checker.py 93.58% <100%> (+5.35%) ⬆️
src/django_healthchecks/heartbeats.py 100% <100%> (ø)
src/django_healthchecks/contrib.py 100% <100%> (ø) ⬆️
src/django_healthchecks/admin.py 96.66% <96.66%> (ø)
src/django_healthchecks/models.py 98.03% <98.03%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 933af64...bf3c11c. Read the comment docs.

The public API is found in django_healthchecks.heartbeats,
checks are added in `django_healthchecks.contrib`.
This makes sure the underlying model implementation doesn't
need to be touched by external callers.
@vdboor vdboor force-pushed the feature/heartbeats branch from ad9ae45 to bf3c11c Compare May 3, 2018 15:23
@mvantellingen mvantellingen merged commit ed13146 into labd:master May 8, 2018
@mvantellingen
Copy link
Copy Markdown
Member

Cool :-)

@vdboor vdboor deleted the feature/heartbeats branch May 9, 2018 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants