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.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Utilities.SPHealthScoreCalculator
      Microsoft.SharePoint.Utilities.SPBucketHealthScoreCalculator

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public NotInheritable Class SPBucketHealthScoreCalculator _
    Inherits SPHealthScoreCalculator
'Usage
Dim instance As SPBucketHealthScoreCalculator
public sealed class SPBucketHealthScoreCalculator : SPHealthScoreCalculator

Remarks

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

Thread Safety

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

See Also

Reference

SPBucketHealthScoreCalculator Members

Microsoft.SharePoint.Utilities Namespace

Other Resources

Request Throttling

How to: Create, Modify, and Change a Bucket-Style Health-Score Calculator