You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by cgoudie <gi...@git.apache.org> on 2017/05/13 00:09:19 UTC

[GitHub] sling pull request #228: SLING-6855 Add ResultRegistry

GitHub user cgoudie opened a pull request:

    https://github.com/apache/sling/pull/228

    SLING-6855 Add ResultRegistry

    I want to provide a Registry service that can be leveraged to provide health check results.
    These results can be for a period of time through an expiration, until the JVM is restarted, or added and later removed.
    This can be useful when code observes a specific (possibly bad) state, and wants to alert through the health check API that this state has taken place.
    Some examples: 
    An event pool has filled, and some events will be thrown away.
    This is a failure case that requires a restart of the instance.
    It would be appropriate to trigger a permanent failure.
    A quota has been tripped. This quota may immediately recover, but it is sensible to alert for 30 minutes that the quota has been tripped.
    If you expect the failure will clear itself within a certain window, setting the expiration to that window can be ideal.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cgoudie/sling SLING-6855/ResultRegistry

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/228.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #228
    
----
commit 7dcb555e3613dd38093ef47a18461799944d2b3c
Author: goudieni <go...@adobe.com>
Date:   2017-05-13T00:07:33Z

    SLING-6855 Add ResultRegistry

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---