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

Develop #10

Merged
merged 5 commits into from
May 7, 2019
Merged

Develop #10

merged 5 commits into from
May 7, 2019

Conversation

JeremyTangCD
Copy link
Contributor

improve the go sdk for argus project

// Whether to create a collector device when instance collector
NeedAutoCreateCollectorDevice bool `json:"needAutoCreateCollectorDevice,omitempty"`
// Whether to create a collector device when instance collector, the default value is true
NeedAutoCreateCollectorDevice interface{} `json:"needAutoCreateCollectorDevice,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

@JeremyTangCD Why are these properties interfaces now instead of bool?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@woz5999
You can get the details in DEV-43101.
Same reason as #6, the default value in santaba is true, if we set the value as false, go sdk will treat this value as the default value and does not send it to santaba, then we get in santaba will be true
In #6, we just delete the "omitempty" tag from the sdk manually.
But since the sdk should only be auto-generated, we need to improve this case by improve the annotation in santaba. We could not change this field to be required, so we only have to change the type of this value and add some description for it.

@woz5999 woz5999 merged commit 0a73f45 into logicmonitor:develop May 7, 2019
woz5999 pushed a commit that referenced this pull request May 8, 2019
* Automated release commit release-7

* Build from latest swagger revision (#3)

* Fix AddCollector by using pointers

* don't omit empty for failback (#2)

* rebuild from upstream swagger updates

* update docs

* rebuild from auth updates

* simplify request signing

* Automated release commit release-11

* Automated release commit release-11

* Automated release commit release-11

* Automated release commit release-11

* Automated release commit release-11

* boilerplate

* Develop (#9)

* Create main.go

* Update main.go

* Develop (#10)

* Create main.go

* Update main.go

* add sub groups field for device group

* improve the NeedAutoCreateCollectorDevice field

* disable the html escape during json encode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants