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

Events #436

Closed
wants to merge 6 commits into from
Closed

Events #436

wants to merge 6 commits into from

Conversation

rampage644
Copy link
Contributor

This PR adds events (annotations). Events interface mimics graphite-web API.

{
  "what": "",
  "when": 0,
  "tags": "",
  "data": ""
}
  • Ingestion is POST request at /events/ with serialized event as request body.
  • Query is GET request at /events/get_data. Returns array of events. Accepts from, until, tags query parameters.

Store events in ElasticSearch with tenant-id as routing parameter.

@rampage644
Copy link
Contributor Author

Most of work is done already, i can think only about some refactoring. Let's treat it as RFC :)
Notes and comments are really welcome as i still think I'm not really good at blueflood architecture.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.11%) to 51.71% when pulling d056539 on rampage644:events_squash into de2d65d on rackerlabs:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.13%) to 51.68% when pulling 1b72fef on rampage644:events_squash into de2d65d on rackerlabs:master.


@Override
public void handle(ChannelHandlerContext ctx, HttpRequest request) {
final String tenantId = request.getHeader("tenantId");
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: Can we extract these constants in Utils instead of hard coding them 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.

Sure, you've just helped me understand where they would go :)

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 51.62% when pulling 4538ba2 on rampage644:events_squash into de2d65d on rackerlabs:master.

Just not to decrease total coverage
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 51.62% when pulling 03eb938 on rampage644:events_squash into de2d65d on rackerlabs:master.

@tilogaat tilogaat mentioned this pull request Jun 8, 2015
@tilogaat
Copy link
Contributor

tilogaat commented Jun 8, 2015

This work is being continued in PR #477

@tilogaat tilogaat closed this Jun 8, 2015
@tilogaat tilogaat mentioned this pull request Jun 11, 2015
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