-
Notifications
You must be signed in to change notification settings - Fork 52
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
Convert attribute decorated POCO's to Points #64
base: develop
Are you sure you want to change the base?
Conversation
Lol! Dude.. this is a sick feature. Just awesome. :) I'll try to publish it over the weekend. Thanks! |
@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! |
Have you had the chance to look more into this 😄 ? |
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 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
name
argumentThis will produce the following point object:
The following validations are implemented and will return detailed exceptions:
string
primitive
orstring
[Measurement]
present[Measurement]
is of typestring
[Timestamp]
present[Timestamp]
is of typeDateTime