Package org.jenkinsci.plugins.cloudstats
Class Health
java.lang.Object
org.jenkinsci.plugins.cloudstats.Health
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet projected probability the next provisioning attempt will succeed.long
Get Overall success rate of the series.
-
Constructor Details
-
Health
-
-
Method Details
-
getOverall
Get Overall success rate of the series. -
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()
-