Closed ssnorrizaurous closed 2 years ago
Another option is to have data sources for users/groups/roles take a query parameter like the api and return a list of matches or all if no query is provided.
Be sure to rebase to master. I submitted a small PR to fix the linter.
It looks like there are still lint failures. Generally with go imports, list the go standard packages (the ones that don't start with github.com) alphabetically followed by a blank line followed by all the 3rd party packages (github ones) sorted alphabetically.
Implements https://github.com/vmware/terraform-provider-wavefront/issues/82. PR includes full Metrics Policy Resource implantation/tests/docs and various data source implementations. Please let me know if you'd like to change any approach or naming. Waiting for https://github.com/wavefrontHQ/go-wavefront-management-api/pull/46 to go through before finalizing this PR but early feedback is welcome!