rockaut / dynatrace-config

Currently it's just an idea and a place to chat it out
Apache License 2.0
2 stars 0 forks source link

implement get and diff method #4

Closed jkleinlercher closed 4 years ago

jkleinlercher commented 4 years ago

in addition to an apply-method, we should implement a get method which pulls the current configuration for this configuration object. then we can also implement a diff method (diff between current configuration and desired configuration)

jkleinlercher commented 4 years ago

5

jkleinlercher commented 4 years ago

now there are different commands you can call:

get current config of the specified configuration object:

go run experiments/dynatrace-config.go get experiments/config/anomaly-detection-service.json

show diff between current config and desired config

go run experiments/dynatrace-config.go diff experiments/config/anomaly-detection-service.json

validate desired config:

go run experiments/dynatrace-config.go validate experiments/config/anomaly-detection-service.json

apply desired config:

go run experiments/dynatrace-config.go apply experiments/config/anomaly-detection-service.json
jkleinlercher commented 4 years ago

so far I think there is a good first approach for get, diff, validate, apply commands