Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Cloudwatch alarm support #273

Merged
merged 2 commits into from
Sep 25, 2016
Merged

Conversation

eredi93
Copy link
Contributor

@eredi93 eredi93 commented Sep 20, 2016

i refactored #182 as i saw no activity on it.
Hope you can merge it in 😄

end

def add_checksummed_attributes(attributes, alarm)
["insufficient_data_actions", "alarm_actions", "ok_actions", "dimensions"].each do |action|
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop]

  • Use %w or %W for an array of words. :ref

attribute.each do |attr|
if attr.is_a? String
checksum = Zlib.crc32(attr)
value = attr
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop]

  • Trailing whitespace detected. :ref

alarm_actions: ["arn:aws:sns:region:account:lambda-alerts"],
alarm_name: "Alarm With Dimensions",
comparison_operator: "GreaterThanOrEqualToThreshold",
dimensions: [ {name: "FunctionName", value: "beep-beep"} ],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[rubocop]

  • Space inside square brackets detected. :ref
  • Space inside { missing. :ref
  • Space inside } missing. :ref

@coveralls
Copy link

coveralls commented Sep 20, 2016

Coverage Status

Coverage decreased (-0.05%) to 99.951% when pulling eb9acf1 on eredi93:js/Cloudwatch_alarm_support into eb516b3 on dtan4:master.

@eredi93 eredi93 force-pushed the js/Cloudwatch_alarm_support branch from eb9acf1 to 07959af Compare September 20, 2016 09:37
@eredi93 eredi93 force-pushed the js/Cloudwatch_alarm_support branch from 07959af to 13a2ec4 Compare September 20, 2016 09:37
@coveralls
Copy link

coveralls commented Sep 20, 2016

Coverage Status

Coverage decreased (-0.05%) to 99.951% when pulling 13a2ec4 on eredi93:js/Cloudwatch_alarm_support into eb516b3 on dtan4:master.

@coveralls
Copy link

coveralls commented Sep 20, 2016

Coverage Status

Coverage decreased (-0.05%) to 99.951% when pulling 13a2ec4 on eredi93:js/Cloudwatch_alarm_support into eb516b3 on dtan4:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling b16e85b on eredi93:js/Cloudwatch_alarm_support into eb516b3 on dtan4:master.

1 similar comment
@coveralls
Copy link

coveralls commented Sep 20, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling b16e85b on eredi93:js/Cloudwatch_alarm_support into eb516b3 on dtan4:master.

@dtan4
Copy link
Owner

dtan4 commented Sep 25, 2016

LGTM 👍 Thanks ❗

@dtan4 dtan4 merged commit a6c5fb9 into dtan4:master Sep 25, 2016
@eredi93
Copy link
Contributor Author

eredi93 commented Sep 25, 2016

thanks ✋

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants