Share via


MetricThresholdValueComparison enumeration

Specifies how AXE compares metric values.

Syntax

typedef enum _MetricThresholdValueComparison { 
  MetricThresholdValueComparison_NotSet                       = 0,
  MetricThresholdValueComparisonAbsolute,
  MetricThresholdValueComparisonOffset,
  MetricThresholdValueComparisonPercent,
  MetricThresholdValueComparisonTrueIsPass,
  MetricThresholdValueComparisonFalseIsPass,
  MetricThresholdValueComparisonContainsStringIsPass,
  MetricThresholdValueComparisonContainsStringIsFail,
  MetricThresholdValueComparisonIsStringIsPass,
  MetricThresholdValueComparisonIsStringIsFail,
  MetricThresholdValueComparisonRegularExpressionMatchIsPass,
  MetricThresholdValueComparisonRegularExpressionMatchIsFail,
  MetricThresholdValueComparison_Max
} MetricThresholdValueComparison;

Constants

MetricThresholdValueComparison_NotSet

No comparison method specified.

MetricThresholdValueComparisonAbsolute

Indicates that the MetricThreshold target is not used and the MetricValue is compared directly with the MetricThresholdValue. This is only valid for floating point and integral numeric types.

MetricThresholdValueComparisonOffset

Indicates that the MetricThresholdValue is treated as an offset from the MetricThreshold target value. This is only valid for floating point and integral numeric types.

MetricThresholdValueComparisonPercent

Indicates that the MetricThresholdValue is treated as a percent offset from the MetricThreshold. Target value. This is only valid for floating point and integral numeric types.

MetricThresholdValueComparisonTrueIsPass

Indicates that the MetricValue is considered to pass if its boolean value is true. This is valid for boolean, numeric and string types. For integral numeric types, zero is considered false, and non-zero is true. For floating point types, zero and NaN are considered false, and all other values true. For string types, false is assumed if the string is null, empty (zero length) or consists of all white space characters.

MetricThresholdValueComparisonFalseIsPass

Indicates that the MetricValue is considered to pass if its boolean value is false. This is valid for boolean, numeric and string types. For integral numeric types, zero is considered false, and non-zero is true. For floating point types, zero and NaN are considered false, and all other values true. For string types, false is assumed if the string is null, empty (zero length) or consists of all white space characters.

MetricThresholdValueComparisonContainsStringIsPass

Indicates that the MetricValue is considered to pass if the string contains the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings.

MetricThresholdValueComparisonContainsStringIsFail

Indicates that the MetricValue is considered to fail if the string contains the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings.

MetricThresholdValueComparisonIsStringIsPass

Indicates that the MetricValue is considered to pass if the MetricValue is a string and is equivalent to the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings. This is only valid for string types.

MetricThresholdValueComparisonIsStringIsFail

Indicates that the MetricValue is considered to fail if the MetricValue is a string or is not equivalent to the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings. This is only valid for string types.

MetricThresholdValueComparisonRegularExpressionMatchIsPass

Indicates that the MetricValue is considered to pass if the MetricValue is a string matched by the regular expression in the MetricThresholdValue. This is only valid for string types.

MetricThresholdValueComparisonRegularExpressionMatchIsFail

Indicates that the MetricValue is considered to fail if the MetricValue is a string matched by the regular expression in the MetricThresholdValue. This is only valid for string types.

MetricThresholdValueComparison_Max

Invalid comparison specification (the value of this member is one larger than the largest valid member).

Remarks

This enumeration maps to the Comparison element.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
AxeRuntime.h