Static helper functions for Influx querying and serialization
More...
|
| static string | EncodeQuery (string host, string port, bool isPretty, string db, string query) |
| | Builds https query for use with InfluxDB https query language More...
|
| |
| static IList< Values > | ParseValues (string jsonToParse) |
| |
| static IDictionary< DateTime, Vector2 > | ParseValuesNoType (string jsonToParse) |
| | Parses the values from a given json string - for use in populating widgets More...
|
| |
| static IDictionary< DateTime, Vector2 > | ParseValuesNoType (string jsonToParse, IDictionary< DateTime, Vector2 > dict) |
| | Parses the values from a given json string - for use in populating widgets More...
|
| |
| static string [] | ParseLabels (string jsonToParse) |
| | Queries database for type labels (ie CO2, temperature, etc) More...
|
| |
Static helper functions for Influx querying and serialization
Definition at line 14 of file Utility.cs.
§ EncodeQuery()
| static string ARDesign.Influx.Utility.EncodeQuery |
( |
string |
host, |
|
|
string |
port, |
|
|
bool |
isPretty, |
|
|
string |
db, |
|
|
string |
query |
|
) |
| |
|
static |
Builds https query for use with InfluxDB https query language
- Parameters
-
| host | Influx host |
| port | Influx post |
| isPretty | If true, query result will be in structured json. For use with testing. |
| db | Influx database |
| query | Query in Influx query language - supports most SQL queries |
- Returns
- Returns formatted URL
Definition at line 26 of file Utility.cs.
§ ParseLabels()
| static string [] ARDesign.Influx.Utility.ParseLabels |
( |
string |
jsonToParse | ) |
|
|
static |
Queries database for type labels (ie CO2, temperature, etc)
- Parameters
-
| jsonToParse | JSON string to parse - should be returned from query for type labels |
- Returns
- String array containing all labels
Definition at line 110 of file Utility.cs.
§ ParseValues()
| static IList<Values> ARDesign.Influx.Utility.ParseValues |
( |
string |
jsonToParse | ) |
|
|
static |
- Deprecated:
- Parses the values from a given json string - for use in populating widgets
- Parameters
-
| jsonToParse | JSON string to parse for values |
- Returns
- Returns list of Values - deprecated in favor of simpler data structures
Definition at line 36 of file Utility.cs.
§ ParseValuesNoType() [1/2]
| static IDictionary<DateTime, Vector2> ARDesign.Influx.Utility.ParseValuesNoType |
( |
string |
jsonToParse | ) |
|
|
static |
Parses the values from a given json string - for use in populating widgets
- Parameters
-
| jsonToParse | JSON string to parse for values |
- Returns
- Returns dictionary of time-value pairs. Vector2 structure stores time as float in x, and value in y
Definition at line 63 of file Utility.cs.
§ ParseValuesNoType() [2/2]
| static IDictionary<DateTime, Vector2> ARDesign.Influx.Utility.ParseValuesNoType |
( |
string |
jsonToParse, |
|
|
IDictionary< DateTime, Vector2 > |
dict |
|
) |
| |
|
static |
Parses the values from a given json string - for use in populating widgets
- Parameters
-
| jsonToParse | JSON string to parse for values |
| dict | Existing dictionary to add new values to |
- Returns
- Returns dictionary of time-value pairs. Vector2 structure stores time as float in x, and value in y
Definition at line 88 of file Utility.cs.
The documentation for this class was generated from the following file: