History Warning Alerts (Rule)
PureStorage.FlashArray.PureArray.GetHistoryAlertRuleWarning (Rule)
History of the Pure Storage FlashArray warning alerts
Element properties:
Member Modules:
Source Code:
<Rule ID="PureStorage.FlashArray.PureArray.GetHistoryAlertRuleWarning" Target="PureStorage.FlashArray.PureArray" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="PureStorage.FlashArray.AlertsRuleModules.Powershell.DS">
<ArrayInstanceId>$Target/Id$</ArrayInstanceId>
<TimeoutSeconds>120</TimeoutSeconds>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime>12:00</SyncTime>
<LogToArray>true</LogToArray>
<IgnoreCertificateErrors>true</IgnoreCertificateErrors>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Severity']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">warning</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="PureStorage.FlashArray.PureArray.GetHistoryAlertRule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Property[@Name='ID']$</AlertParameter1>
<AlertParameter2>$Data/Property[@Name='TimeOpened']$</AlertParameter2>
<AlertParameter3>$Data/Property[@Name='Code']$</AlertParameter3>
<AlertParameter4>$Data/Property[@Name='Message']$</AlertParameter4>
</AlertParameters>
</WriteAction>
</WriteActions>
</Rule>