IThresholdRule 接口

用于在负载测试运行期间监视性能计数器的值,以在性能计数器的值超过阈值时发出警告或严重警报。

命名空间:  Microsoft.VisualStudio.TestTools.LoadTesting
程序集:  Microsoft.VisualStudio.QualityTools.LoadTestFramework(在 Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll 中)

语法

声明
Public Interface IThresholdRule
public interface IThresholdRule
public interface class IThresholdRule
type IThresholdRule =  interface end
public interface IThresholdRule

IThresholdRule 类型公开以下成员。

属性

  名称 说明
公共属性 ViolationMessage 获取描述规则冲突的消息。

页首

方法

  名称 说明
公共方法 CheckCounterValue 根据阈值检查一个或多个计数器样本的值,并返回指示计数器相对于规则参数所指定的阈值参数的状态的结果。

页首

备注

它可以定义阈值规则实现的接口。 除内置实现外,还可能为用户编写的阈值规则实现。

请参阅

参考

Microsoft.VisualStudio.TestTools.LoadTesting 命名空间