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

Initial impl #2

Merged
merged 33 commits into from
Oct 23, 2017
Merged

Initial impl #2

merged 33 commits into from
Oct 23, 2017

Conversation

peterschubert
Copy link
Contributor

No description provided.

handler.go Outdated
switch err {
case nil:
writer.WriteHeader(http.StatusOK)
msg, _ := json.Marshal(transactions)

Choose a reason for hiding this comment

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

I think the marshall error should not be ignored.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

handler.go Outdated
switch err {
case nil:
writer.WriteHeader(http.StatusOK)
msg, _ := json.Marshal(*publishEvent)

Choose a reason for hiding this comment

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

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done


func (service *splunkService) GetTransactions(query monitoringQuery) ([]transactionEvent, error) {

envRegex := regexp.MustCompile("-u[ks]]$")

Choose a reason for hiding this comment

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

Can this be a global variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done


func (service *splunkService) GetLastEvent(query monitoringQuery) (*publishEvent, error) {

envRegex := regexp.MustCompile("-u[ks]]$")

Choose a reason for hiding this comment

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

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 8d54f35 on initial-impl into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a6b5117 on initial-impl into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 26972c5 on initial-impl into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 8e01558 on initial-impl into ** on master**.

Copy link

@tamas-molnar tamas-molnar left a comment

Choose a reason for hiding this comment

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

  • please run goimports on the source files goimports -w *.go

main.go Outdated
})
splunkURL := app.String(cli.StringOpt{
Name: "splunk-url",
Desc: "Splunk URL",
Copy link

@tamas-molnar tamas-molnar Oct 18, 2017

Choose a reason for hiding this comment

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

Maybe describe this a bit more in detail - like: Splunk Rest API url?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 4a92247 on initial-impl into ** on master**.


Response example:
```
[{
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please update the example? (eventcount, publish_start)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

README.md Outdated
### Logging

* The application uses [logrus](https://github.com/Sirupsen/logrus); the log file is initialised in [main.go](main.go).
* Logging requires an `env` app parameter, for all environments other than `local` logs are written to file.
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this still apply?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 95f946d on initial-impl into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 443ca0e on initial-impl into ** on master**.

@peterschubert peterschubert merged commit 0b14375 into master Oct 23, 2017
@rnov rnov deleted the initial-impl branch December 11, 2019 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants