Share via


LoadTest.ThresholdExceeded Event

Occurs when a threshold rule is exceeded.

Namespace:  Microsoft.VisualStudio.TestTools.LoadTesting
Assembly:  Microsoft.VisualStudio.QualityTools.LoadTestFramework (in Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

Syntax

'Declaration
Public Event ThresholdExceeded As EventHandler(Of ThresholdExceededEventArgs)
public event EventHandler<ThresholdExceededEventArgs> ThresholdExceeded
public:
 event EventHandler<ThresholdExceededEventArgs^>^ ThresholdExceeded {
    void add (EventHandler<ThresholdExceededEventArgs^>^ value);
    void remove (EventHandler<ThresholdExceededEventArgs^>^ value);
}
member ThresholdExceeded : IEvent<EventHandler<ThresholdExceededEventArgs>,
    ThresholdExceededEventArgs>
JScript does not support events.

Remarks

ThresholdExceededEventArgs identifies the performance counter that exceeded the threshold, the value of the performance counter sample, and whether the value exceeded the critical threshold level or just the warning threshold level.

Note

If there is more than one agent computer running the load test, the ThresholdExceeded event will be fired on all the agents.

For more information about how to handle events, see Consuming Events.

.NET Framework Security

See Also

Reference

LoadTest Class

Microsoft.VisualStudio.TestTools.LoadTesting Namespace

Other Resources

About Counter Sets