kinesis_scaling_cf.yaml [279:304]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      AlarmDescription: 'Stream throughput has gone below the scale down threshold'
      ComparisonOperator: LessThanThreshold
      Threshold: -1 # Set to -1 for 1 shard stream, as we can't scale down from here. Gets updated by the auto scaling lambda later
      EvaluationPeriods: 60 # 300 Minutes / kinesis_period_mins. Evaluate scale down for 300 minutes.
      DatapointsToAlarm: 57 # 285 Minutes / kinesis_period_mins. 57 out of 60 datapoints required. Takes 285 minutes below threshold to scale down.
      AlarmActions: [ !Ref AutoScalingSNSTopic ]
      Metrics:
      - Id: s1
        ReturnData: False
        Label: ShardCount
        Expression: 1
      - Id: s2
        ReturnData: False
        Label: IteratorAgeMinutesToBlockScaledowns
        Expression: !Ref KinesisScaleDownMinIterAgeMins
      - Id: m1
        ReturnData: False
        Label: IncomingBytes
        MetricStat:
          Stat: Sum
          Period: 300 # Must match kinesis_period_mins: 5 minutes. Convert to seconds. 300 seconds.
          Metric:
            MetricName: IncomingBytes
            Namespace: AWS/Kinesis
            Dimensions:
              - Name: StreamName
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



kinesis_scaling_cf.yaml [441:466]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      AlarmDescription: 'Stream throughput has gone below the scale down threshold'
      ComparisonOperator: LessThanThreshold
      Threshold: -1 # Set to -1 for 1 shard stream, as we can't scale down from here. Gets updated by the auto scaling lambda later
      EvaluationPeriods: 60 # 300 Minutes / kinesis_period_mins. Evaluate scale down for 300 minutes.
      DatapointsToAlarm: 57 # 285 Minutes / kinesis_period_mins. 57 out of 60 datapoints required. Takes 285 minutes below threshold to scale down.
      AlarmActions: [ !Ref AutoScalingSNSTopic ]
      Metrics:
      - Id: s1
        ReturnData: False
        Label: ShardCount
        Expression: 1
      - Id: s2
        ReturnData: False
        Label: IteratorAgeMinutesToBlockScaledowns
        Expression: !Ref KinesisScaleDownMinIterAgeMins
      - Id: m1
        ReturnData: False
        Label: IncomingBytes
        MetricStat:
          Stat: Sum
          Period: 300 # Must match kinesis_period_mins: 5 minutes. Convert to seconds. 300 seconds.
          Metric:
            MetricName: IncomingBytes
            Namespace: AWS/Kinesis
            Dimensions:
              - Name: StreamName
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



