Skip to content

Commit

Permalink
feat: resource monitor sdk v2 (#1892)
Browse files Browse the repository at this point in the history
* implement sdkv2 for resource monitor
* refactor resource monitor resource to use new sdk implementation
* add unit and integration tests for resource monitor

---------

Co-authored-by: Scott Winkler <scott.winkler@snowflake.com>
  • Loading branch information
sfc-gh-pbosak and sfc-gh-swinkler committed Jul 19, 2023
1 parent 605ad92 commit 707d723
Show file tree
Hide file tree
Showing 11 changed files with 966 additions and 337 deletions.
4 changes: 2 additions & 2 deletions pkg/resources/helper_expansion.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func expandObjectIdentifier(objectIdentifier interface{}) (string, string, strin
return objectDatabase, objectSchema, objectName
}

// intersectionAAndNotB takes the intersection of set A and the intersection of not set B. A∩B′ in set notation.
func intersectionAAndNotB(setA []interface{}, setB []interface{}) []string {
// ADiffB takes all the elements of A that are not also present in B, A-B in set notation
func ADiffB(setA []interface{}, setB []interface{}) []string {
res := make([]string, 0)
sliceA := expandStringList(setA)
sliceB := expandStringList(setB)
Expand Down

0 comments on commit 707d723

Please sign in to comment.