Skip to content

optionally take start and end time query params for s3 log search#729

Merged
tpetr merged 2 commits into
masterfrom
s3_logs
Oct 16, 2015
Merged

optionally take start and end time query params for s3 log search#729
tpetr merged 2 commits into
masterfrom
s3_logs

Conversation

@ssalinas

@ssalinas ssalinas commented Oct 9, 2015

Copy link
Copy Markdown
Contributor

this is just an initial thought, not sure if it is the best way to do this but wanted to open for feedback. This is related to our logfetch issue and the fact that /logs/request/{requestId} and even /logs/request/{requestId}/deploy/{deployId} will consistently time out for a service with too many logs. (Think scheduled job that runs every ~10 mins). Also combating this on logfetch side, but this could definitely help

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can they not be optional in here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not sure you can use Optional in @QueryParam, I think if the query param is not specified it will always come back as a null no matter what the class. I'll double check though

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the query params will be zero if not specified (since they're primitive types), so fromNullable() wont work

@ssalinas ssalinas added the hs_qa label Oct 14, 2015
@tpetr tpetr added this to the 0.4.6 milestone Oct 16, 2015
tpetr pushed a commit that referenced this pull request Oct 16, 2015
optionally take start and end time query params for s3 log search
@tpetr tpetr merged commit b4c1025 into master Oct 16, 2015
@tpetr tpetr removed hs_qa labels Oct 16, 2015
@ssalinas ssalinas deleted the s3_logs branch December 21, 2015 16:58
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.

3 participants