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

metrics: add support for multidimensional composite metrics #50

Merged
merged 5 commits into from
Oct 30, 2017

Conversation

suyash
Copy link
Collaborator

@suyash suyash commented Oct 29, 2017

  • adds support for multidimensional metrics based on @saurvs's work in
    hornet without introducing any breaking behavior. Existing enums work,
    a megabyte/second unit can be initialized as

    u := speed.MegabyteUnit.Time(speed.SecondUnit, -1)
  • adds a Reset nethod on Timer, which allows reseting the timer's
    stored elapsed time back to zero

  • a new example to demonstrate construction of composite units as well
    as the Reset function

  • corresponding changes in MMVDump with an updated dunp syntax for units
    based on hornet. Additional test case added and existing modified to
    accomodate the change.

- adds support for multidimensional metrics based on @saurvs's work in
hornet without introducing any breaking behavior. Existing enums work,
a megabyte/second unit can be initialized as

  ```go
  u := speed.MegabyteUnit.Time(speed.SecondUnit, -1)
  ```

- adds a `Reset` nethod on Timer, which allows reseting the timer's
stored elapsed time back to zero

- a new example to demonstrate construction of composite units as well
as the `Reset` function

- corresponding changes in MMVDump with an updated dunp syntax for units
based on hornet. Additional test case added and existing modified to
accomodate the change.
@suyash
Copy link
Collaborator Author

suyash commented Oct 29, 2017

@natoscott please review

Copy link
Member

@natoscott natoscott left a comment

Choose a reason for hiding this comment

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

Nice! - looks good to me Suyash.

@suyash suyash merged commit fd43103 into master Oct 30, 2017
@suyash suyash deleted the composite-units branch October 30, 2017 05:22
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

2 participants