-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added methods to query and post strongly typed points using attributes (
#99) * Added methods to query and post strongly typed points using attributes * Extend readme with further property types Co-authored-by: Titusz Ban <[email protected]>
- Loading branch information
Showing
16 changed files
with
645 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
|
||
namespace AdysTech.InfluxDB.Client.Net | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, Inherited = true)] | ||
public class InfluxDBField : Attribute | ||
{ | ||
public readonly string Name; | ||
public InfluxDBField(string name) | ||
{ | ||
Name = name; | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using System; | ||
|
||
namespace AdysTech.InfluxDB.Client.Net | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, Inherited = true)] | ||
public class InfluxDBMeasurementName : Attribute { } | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using System; | ||
|
||
namespace AdysTech.InfluxDB.Client.Net | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, Inherited = true)] | ||
public class InfluxDBPrecision : Attribute { } | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using System; | ||
|
||
namespace AdysTech.InfluxDB.Client.Net | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, Inherited = true)] | ||
public class InfluxDBRetentionPolicy : Attribute { } | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
|
||
namespace AdysTech.InfluxDB.Client.Net | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, Inherited = true)] | ||
public class InfluxDBTag : Attribute | ||
{ | ||
public readonly string Name; | ||
public InfluxDBTag(string name) | ||
{ | ||
Name = name; | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using System; | ||
|
||
namespace AdysTech.InfluxDB.Client.Net | ||
{ | ||
[AttributeUsage(AttributeTargets.Property, Inherited = true)] | ||
public class InfluxDBTime : Attribute { } | ||
} |
Oops, something went wrong.