-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
add salesforce input plugin #3075
Conversation
snake := matchFirstCap.ReplaceAllString(str, "${1}_${2}") | ||
snake = matchAllCap.ReplaceAllString(snake, "${1}_${2}") | ||
return strings.ToLower(snake) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use this function https://github.com/influxdata/telegraf/blob/master/internal/internal.go#L160 for converting to snake case.
} | ||
|
||
if resp.StatusCode != http.StatusOK { | ||
return l, fmt.Errorf("Salesforce responded with unexpected status code %d", resp.StatusCode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space char in the message
Gather metrics about limits and usage for a Salesforce organization.
- remove salesforce.toSnakeCase() and use internal.SnakeCase() instead - remove extra space character in message
@danielnelson Thanks for the review! |
Either way is fine, I always merge pull requests with "squash and merge". |
Gather metrics about limits and usage for a Salesforce organisation.
Required for all PRs: