Class Health


  • public final class Health
    extends Object
    Health metric for a series of provisioning attempts.

    The actual statistics approach is left to the implementation and can be changed freely to fit provisioning reporting and decision making. Use cases:

    - Report that particular cloud/template has its success rate low so it might require attention. (getOverall()) - Provide data so plugins can pick the more successful cloud/template to fulfil the request. (getCurrent())

    Author:
    ogondza.
    • Method Detail

      • getOverall

        public Health.Report getOverall()
        Get Overall success rate of the series.
      • getCurrent

        public Health.Report getCurrent()
        Get projected probability the next provisioning attempt will succeed.

        Caution: There is a black magic involved.

        This implementation computes exponential average adjusting exponent based on the age of the data. This is to give more wight to data that ware observed recently compared to older ones.

      • getNumSamples

        public long getNumSamples()