Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support enterprise_project_id in ces alarm rule #1137

Merged
merged 1 commit into from
May 19, 2021

Conversation

Jason-Zhang9309
Copy link
Collaborator

What this PR does / why we need it:

support enterprise_project_id in ces alarm rule

Which issue this PR fixes:
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)
related #1099

Special notes for your reviewer:

Release note:


PR Checklist

  • Tests added/passed.
  • Documentation updated.
  • Schema updated.

Acceptance Steps Performed

make testacc TEST='./huaweicloud' TESTARGS='-run TestAccCESAlarmRule_withEpsId'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./huaweicloud -v -run TestAccCESAlarmRule_withEpsId -timeout 360m -parallel 4
=== RUN   TestAccCESAlarmRule_withEpsId
=== PAUSE TestAccCESAlarmRule_withEpsId
=== CONT  TestAccCESAlarmRule_withEpsId
--- PASS: TestAccCESAlarmRule_withEpsId (181.97s)
PASS
ok      github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud       182.016s

huaweicloud/resource_huaweicloud_ces_alarmrule.go Outdated Show resolved Hide resolved
Comment on lines 251 to 258
metric_name = "network_outgoing_bytes_rate_inband"
dimensions {
Copy link
Contributor

Choose a reason for hiding this comment

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

blocks of different types are separated by blank lines.

unit = "B/s"
count = 1
}

Copy link
Contributor

Choose a reason for hiding this comment

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

It is unnecessary to use blank lines between blocks of the same type.


alarm_actions {
type = "notification"
notification_list = [
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@ShiChangkuo ShiChangkuo merged commit 2ec57bf into huaweicloud:master May 19, 2021
@Jason-Zhang9309 Jason-Zhang9309 deleted the dev-ces branch May 19, 2021 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants