SPBucketHealthScoreCalculator class

Provides computation of health scores for a specific performance value based on the range of possible values ("bucket") into which the value falls.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public sealed class SPBucketHealthScoreCalculator : SPHealthScoreCalculator

The generated scores are always from 0 through 10, with 0 being the healthiest score and 10 the least healthy.

For example, if one way of measuring the performance of a Web application has values from 0 through 50 (with the low values indicating health), the numbers 10, 20, 30, and 40 can be the boundaries of ranges ("buckets"). This division creates five buckets, including the bucket of values below 10 and the bucket of values above 40. If an SPBucketHealthScoreCalculator object is constructed with the array [10, 20, 30, 40], the CalculateScore(Double) method of the object generates scores according to the following rules:

  • 0 for performance values less than 10

  • 3 for values between 10 and 20

  • 5 for values between 20 and 30

  • 8 for values between 30 and 40

  • 10 for values above 40

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.