UNPKG

@spotinst/spinnaker-deck

Version:

Spinnaker-Deck service, forked with support to Spotinst

108 lines (105 loc) 4.63 kB
<div> <dl class="dl-horizontal dl-narrow"> <dt>Whenever</dt> <dd> {{ $ctrl.alarm.statistic }} of {{ $ctrl.alarm.metricName }} is <span ng-bind-html="$ctrl.alarm.comparator"></span> {{ $ctrl.alarm.threshold }} </dd> <dt>for at least</dt> <dd>{{ $ctrl.alarm.evaluationPeriods }} consecutive periods of {{ $ctrl.alarm.period }} seconds</dd> <dt>then</dt> <dd ng-if="$ctrl.policy.stepAdjustments.length"> <div ng-repeat="stepAdjustment in $ctrl.policy.stepAdjustments"> <span ng-if="$ctrl.policy.stepAdjustments.length > 1"> if {{ $ctrl.alarm.metricName }} <span ng-if="$ctrl.alarm.comparisonOperator.indexOf('Greater') === 0"> <span ng-if=" stepAdjustment.metricIntervalUpperBound !== undefined && stepAdjustment.metricIntervalLowerBound !== undefined " > is between {{ $ctrl.alarm.threshold + stepAdjustment.metricIntervalLowerBound }} and {{ $ctrl.alarm.threshold + stepAdjustment.metricIntervalUpperBound }} </span> <span ng-if="stepAdjustment.metricIntervalUpperBound === undefined"> is greater than {{ $ctrl.alarm.threshold + stepAdjustment.metricIntervalLowerBound }} </span> </span> <span ng-if="$ctrl.alarm.comparisonOperator.indexOf('Less') === 0"> <span ng-if=" stepAdjustment.metricIntervalUpperBound !== undefined && stepAdjustment.metricIntervalLowerBound !== undefined " > is between {{ $ctrl.alarm.threshold + stepAdjustment.metricIntervalLowerBound }} and {{ $ctrl.alarm.threshold + stepAdjustment.metricIntervalUpperBound }} </span> <span ng-if="stepAdjustment.metricIntervalLowerBound === undefined"> is less than {{ $ctrl.alarm.threshold + stepAdjustment.metricIntervalUpperBound }} </span> </span >, </span> <span ng-if="$ctrl.policy.adjustmentType === 'ExactCapacity'"> set capacity to {{ stepAdjustment.scalingAdjustment }} instance<span ng-if="stepAdjustment.scalingAdjustment > 1" >s</span > </span> <span ng-if=" $ctrl.policy.adjustmentType === 'ChangeInCapacity' || $ctrl.policy.adjustmentType === 'PercentChangeInCapacity' " > {{ stepAdjustment.operator }} capacity <span ng-if="$ctrl.policy.adjustmentType === 'PercentChangeInCapacity'"> by {{ stepAdjustment.absAdjustment }}% </span> <span ng-if="$ctrl.policy.adjustmentType === 'ChangeInCapacity'"> by {{ stepAdjustment.absAdjustment }} instance<span ng-if="stepAdjustment.absAdjustment > 1">s</span> </span> </span> </div> </dd> <dd ng-if="!$ctrl.policy.stepAdjustments.length"> <span ng-if="$ctrl.policy.adjustmentType === 'ExactCapacity'"> set capacity to {{ $ctrl.policy.scalingAdjustment }} instance<span ng-if="$ctrl.policy.scalingAdjustment > 1" >s</span > </span> <span ng-if=" $ctrl.policy.adjustmentType === 'ChangeInCapacity' || $ctrl.policy.adjustmentType === 'PercentChangeInCapacity' " > {{ $ctrl.policy.operator }} capacity <span ng-if="$ctrl.policy.adjustmentType === 'PercentChangeInCapacity'"> by {{ $ctrl.policy.absAdjustment }}% </span> <span ng-if="$ctrl.policy.adjustmentType === 'ChangeInCapacity'"> by {{ $ctrl.policy.absAdjustment }} instance<span ng-if="$ctrl.policy.absAdjustment > 1">s</span> </span> </span> </dd> <dt ng-if="$ctrl.policy.minAdjustmentMagnitude">in</dt> <dd ng-if="$ctrl.policy.minAdjustmentMagnitude"> increments of at least {{ $ctrl.policy.minAdjustmentMagnitude }} instance<span ng-if="$ctrl.policy.minAdjustmentMagnitude > 1" >s</span > </dd> <dt ng-if="$ctrl.showWait">wait</dt> <dd ng-if="$ctrl.policy.cooldown">{{ $ctrl.policy.cooldown }} seconds before allowing another scaling activity.</dd> <dd ng-if="$ctrl.showWait && $ctrl.policy.estimatedInstanceWarmup"> {{ $ctrl.policy.estimatedInstanceWarmup }} seconds to warm up after each step. </dd> </dl> <metric-alarm-chart alarm="$ctrl.policy.alarms[0]" server-group="$ctrl.serverGroup"></metric-alarm-chart> </div>