Windows Azure Performance Counter Simple Monitor Type

Microsoft.SystemCenter.Azure.PerformanceCounter.MonitorType (UnitMonitorType)

Element properties:

RunAsMicrosoft.SystemCenter.Azure.RunAsProfile.Proxy
AccessibilityPublic
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SystemCenter.Azure.RoleInstance.PerformanceCounter.CollectData.DS Default
CDConsecutiveSamples ConditionDetection System.Performance.ConsecutiveSamplesCondition Default
CDInsufficientSamples ConditionDetection System.LogicalSet.ExpressionFilter Default
CDSufficientSamples ConditionDetection System.LogicalSet.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
IntervalSecondsint$Config/IntervalSeconds$Interval SecondsInterval Seconds
TimeoutSecondsint$Config/TimeoutSeconds$Timeout SecondsTimeout Seconds
Thresholddouble$Config/Threshold$ThresholdThreshold
NumSamplesint$Config/NumSamples$Number of SamplesNumber of Samples

Source Code:

<UnitMonitorType ID="Microsoft.SystemCenter.Azure.PerformanceCounter.MonitorType" Accessibility="Public" RunAs="Microsoft.SystemCenter.Azure.RunAsProfile.Proxy">
<MonitorTypeStates>
<MonitorTypeState ID="ConditionTrue" NoDetection="false"/>
<MonitorTypeState ID="ConditionFalse" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element minOccurs="1" maxOccurs="1" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element minOccurs="1" maxOccurs="1" name="TimeoutSeconds" type="xsd:integer"/>
<xsd:element minOccurs="1" maxOccurs="1" name="CounterName" type="xsd:string"/>
<xsd:element minOccurs="1" maxOccurs="1" name="ObjectName" type="xsd:string"/>
<xsd:element minOccurs="0" maxOccurs="1" name="InstanceName" type="xsd:string"/>
<xsd:element minOccurs="0" maxOccurs="1" name="AllInstances" type="xsd:boolean"/>
<xsd:element minOccurs="1" maxOccurs="1" name="Threshold" type="xsd:double"/>
<xsd:element minOccurs="1" maxOccurs="1" name="Direction" type="xsd:string"/>
<xsd:element minOccurs="1" maxOccurs="1" name="NumSamples" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
<OverrideableParameter ID="Threshold" Selector="$Config/Threshold$" ParameterType="double"/>
<OverrideableParameter ID="NumSamples" Selector="$Config/NumSamples$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.SystemCenter.Azure.RoleInstance.PerformanceCounter.CollectData.DS">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<CounterName>$Config/CounterName$</CounterName>
<ObjectName>$Config/ObjectName$</ObjectName>
<InstanceName>$Config/InstanceName$</InstanceName>
<AllInstances>$Config/AllInstances$</AllInstances>
</DataSource>
<ConditionDetection ID="CDConsecutiveSamples" TypeID="Performance!System.Performance.ConsecutiveSamplesCondition">
<Threshold>$Config/Threshold$</Threshold>
<Direction>$Config/Direction$</Direction>
</ConditionDetection>
<ConditionDetection ID="CDSufficientSamples" TypeID="System!System.LogicalSet.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<EmptySet>Block</EmptySet>
<SetEvaluation>Any</SetEvaluation>
</ConditionDetection>
<ConditionDetection ID="CDInsufficientSamples" TypeID="System!System.LogicalSet.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">Value</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/NumSamples$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<EmptySet>Block</EmptySet>
<SetEvaluation>All</SetEvaluation>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="ConditionTrue">
<Node ID="CDSufficientSamples">
<Node ID="CDConsecutiveSamples">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="ConditionFalse">
<Node ID="CDInsufficientSamples">
<Node ID="CDConsecutiveSamples">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>