Amazon Elastic Beanstalk Environment Status Check State Monitor Type

Amazon.AmazonWebServices.MonitorType.ElasticBeanStalkHealthStatusCheckUnitMonitorType (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityInternal
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Amazon.AmazonWebServices.TimerManagedModuleDataSource Default
BeanstalkHealth ProbeAction Amazon.AmazonWebServices.ElasticBeanStalkHealthManagedProbeAction Default
FilterError ConditionDetection System.ExpressionFilter Default
FilterHealthy ConditionDetection System.ExpressionFilter Default
FilterWarning ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
IntervalTimeInSecondsint$Config/IntervalTimeInSeconds$Interval (sec)

Source Code:

<UnitMonitorType ID="Amazon.AmazonWebServices.MonitorType.ElasticBeanStalkHealthStatusCheckUnitMonitorType" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="Error"/>
<MonitorTypeState ID="Warning"/>
<MonitorTypeState ID="Healthy"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="WorkFlowName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="StartTimeInSeconds" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalTimeInSeconds" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="EnvironmentId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="RegionName" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalTimeInSeconds" ParameterType="int" Selector="$Config/IntervalTimeInSeconds$"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Amazon.AmazonWebServices.TimerManagedModuleDataSource">
<WorkFlowName>$Config/WorkFlowName$</WorkFlowName>
<StartTimeInSeconds>$Config/StartTimeInSeconds$</StartTimeInSeconds>
<IntervalTimeInSeconds>$Config/IntervalTimeInSeconds$</IntervalTimeInSeconds>
</DataSource>
<ProbeAction ID="BeanstalkHealth" TypeID="Amazon.AmazonWebServices.ElasticBeanStalkHealthManagedProbeAction">
<EnvironmentId>$Config/EnvironmentId$</EnvironmentId>
<RegionName>$Config/RegionName$</RegionName>
<AwsAccessKey>$RunAs[Name="Amazon.AmazonWebServices.RunAsProfile.AwsKeys"]/UserName$</AwsAccessKey>
<AwsSecretKey>$RunAs[Name="Amazon.AmazonWebServices.RunAsProfile.AwsKeys"]/Password$</AwsSecretKey>
</ProbeAction>
<ConditionDetection ID="FilterHealthy" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='$Config/EnvironmentId$']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Green</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterWarning" TypeID="System!System.ExpressionFilter">
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='$Config/EnvironmentId$']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Yellow</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='$Config/EnvironmentId$']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Grey</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterError" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='$Config/EnvironmentId$']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Red</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Healthy">
<Node ID="FilterHealthy">
<Node ID="BeanstalkHealth">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Warning">
<Node ID="FilterWarning">
<Node ID="BeanstalkHealth">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Error">
<Node ID="FilterError">
<Node ID="BeanstalkHealth">
<Node ID="DS"/>
</Node>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>