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

Add analytics base on Events #16

Closed
QianSwirlds opened this issue Aug 2, 2019 · 2 comments
Closed

Add analytics base on Events #16

QianSwirlds opened this issue Aug 2, 2019 · 2 comments
Assignees
Labels
enhancement Type: New feature P2
Milestone

Comments

@QianSwirlds
Copy link
Contributor

QianSwirlds commented Aug 2, 2019

Basic Network Health Analytics Based on Events

  1. Count Created Events Per time window
  2. Count Reached Consensus Events Per time window
  3. Count Created Events Per time window Per Node
  4. Count Reached Consensus Events Per time window Per Node
  5. Count of System & User Transactions in Reached Consensus Events Per time window Per Node
  6. query for the min, median, and max latency (consensusTimestamp - timeCreated)for all events that reached consensus in a given time window, per node.
  7. get the latency of events that reached consensus in a given time window
@QianSwirlds QianSwirlds self-assigned this Aug 2, 2019
@QianSwirlds QianSwirlds changed the title Add views for analytics base on Events Add analytics base on Events Aug 6, 2019
QianSwirlds added a commit that referenced this issue Aug 6, 2019
QianSwirlds added a commit that referenced this issue Aug 6, 2019
@QianSwirlds
Copy link
Contributor Author

Added EventStreamAnalytics.java

  1. Count Created Events Per time window
    long getCreatedEventsCount(long periodStartInNanos, long periodEndInNanos)

  2. Count Reached Consensus Events Per time window
    getConsensusEventsCount(long periodStartInNanos, long periodEndInNanos)

  3. Count Created Events Per time window Per Node
    long getCreatedEventsCountForNode(long periodStartInNanos, long periodEndInNanos, long nodeId)

  4. Count Reached Consensus Events Per time window Per Node
    getConsensusEventsCountForNode(long periodStartInNanos, long periodEndInNanos, long nodeId)

  5. Count of System & User Transactions in Reached Consensus Events Per time window Per Node
    long[] getSysAppTxsCountInConsensusEventsForNode(long periodStartInNanos, long periodEndInNanos, long nodeId)

  6. query for the min, median, and max latency (consensusTimestamp - timeCreated)for all events that reached consensus in a given time window, per node.
    long[] getLatencyStatsForNode(long periodStartInNanos, long periodEndInNanos, long nodeId)

  7. get the latency of events that reached consensus in a given time window
    long[] getLatencyStats(long periodStartInNanos, long periodEndInNanos)

@QianSwirlds
Copy link
Contributor Author

closed by #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature P2
Projects
None yet
Development

No branches or pull requests

3 participants