Skip to content

Commit

Permalink
fix tests and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjauld committed Jul 2, 2019
1 parent 2ba17cf commit 34f991d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,21 @@ You can see a number of examples [here](examples).
| type | string | Specifies the type of managed account. | true | false | false | "READER" |
| url | string | URL for accessing the managed account, particularly through the web interface. | false | false | true | <nil> |

### snowflake_resource_monitor

#### properties

| NAME | TYPE | DESCRIPTION | OPTIONAL | REQUIRED | COMPUTED | DEFAULT |
|----------------------------|--------|-------------------------------------------------------------------------------------------------------------------------------------------------|----------|-----------|----------|---------|
| credit_quota | int | The number of credits allocated monthly to the resource monitor. | true | false | true | <nil> |
| end_timestamp | string | The date and time when the resource monitor suspends the assigned warehouses. | true | false | false | <nil> |
| frequency | string | The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP. | true | false | true | <nil> |
| name | string | Identifier for the resource monitor; must be unique for your account. | false | true | false | <nil> |
| notify_triggers | set | A list of percentage thresholds at which to send an alert to subscribed users. | true | false | false | <nil> |
| start_timestamp | string | The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. | true | false | true | <nil> |
| suspend_immediate_triggers | set | A list of percentage thresholds at which to immediately suspend all warehouses. | true | false | false | <nil> |
| suspend_triggers | set | A list of percentage thresholds at which to suspend all warehouses. | true | false | false | <nil> |

### snowflake_role

#### properties
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/resource_monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func expectReadResourceMonitor(mock sqlmock.Sqlmock) {
rows := sqlmock.NewRows([]string{
"name", "credit_quota", "used_credits", "remaining_credits", "level",
"frequency", "start_time", "end_time", "notify_at", "suspend_at",
"suspend_immediately", "created_on", "owner", "comment",
"suspend_immediately_at", "created_on", "owner", "comment",
}).AddRow(
"good_name", 100, 0, 100, "", "MONTHLY", "2001-01-01 00:00:00.000 -0700",
"", "75%,88%", "99%", "105%", "2001-01-01 00:00:00.000 -0700", "ACCOUNTADMIN", "")
Expand Down

0 comments on commit 34f991d

Please sign in to comment.