Convert attribute decorated POCO's to Points#64
Open
joakimhew wants to merge 10 commits intotihomir-kit:developfrom
Open
Convert attribute decorated POCO's to Points#64joakimhew wants to merge 10 commits intotihomir-kit:developfrom
joakimhew wants to merge 10 commits intotihomir-kit:developfrom
Conversation
added 6 commits
October 17, 2017 18:56
Owner
|
Lol! Dude.. this is a sick feature. Just awesome. :) I'll try to publish it over the weekend. Thanks! |
Contributor
Author
|
@pootzko Glad I can help! I just added the option to explicitly set the names for tags and fields using a name argument in the attributes. Updated my original comment. I found out at work today that this would be nice to have so figured I could make a proper implementation! |
Contributor
Author
|
Have you had the chance to look more into this 😄 ? |
Owner
|
Hey man, sorry for the delay. I haven't yet, I've been very busy the last 2 weeks. I'll try to look at it this weekend. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This feature adds an extension method allowing users to convert attribute decorated POCO's following certain rules into Points.
The following attributes must be present in the POCO:
[Measurement][Timestamp][Tag][Field]Example:
Please notice how one of the tag and field names are explicitly set using the attribute and
nameargumentThis will produce the following point object:
The following validations are implemented and will return detailed exceptions:
stringprimitiveorstring[Measurement]present[Measurement]is of typestring[Timestamp]present[Timestamp]is of typeDateTime