diff --git a/.gitignore b/.gitignore index 8ff2b63..30b3aec 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ *.suo *.user *.sln.docstates +.vscode # Build results [Dd]ebug/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 500864b..656e4a0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -32,5 +32,8 @@ "typescriptreact", "yaml", "yml" + ], + "cSpell.enableFiletypes": [ + "xml" ] } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index ae3aa67..1097aaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,18 @@ +## v0.15.0 [04/01/2020] + +### Release Notes +Migrate to .net core 3.1. I have also moved the base .Net framework to 4.6 (long overdue). If there are anyone still using 4.5.1 I am sorry, its high time you upgrade. Bug & Performance fixes. + +### Bugfixes + +- [#90](https://github.com/AdysTech/InfluxDB.Client.Net/issues/90): PostPointsAsync method is so slow in linux os +- [#91](https://github.com/AdysTech/InfluxDB.Client.Net/issues/91): StatusCode Forbidden not considered in GetAsync() +- [#84](https://github.com/AdysTech/InfluxDB.Client.Net/issues/84): Execute Continuous Query every seconds + ## v0.11.0 [02/01/2020] ### Release Notes -Option to add a rentention policy with infinite duration - Thanks to @jasase +Option to add a retention policy with infinite duration - Thanks to @jasase Handle truncated responses due to "max-row-limit", (flag "partial=true"). Thanks to @tbraun-hk ### Bugfixes @@ -85,7 +96,7 @@ Fix escape sequence to match InfluxDB documentation ### Bugfixes -- [#42](https://github.com/AdysTech/InfluxDB.Client.Net/issues/42): Stop chnaging column header case to Camel case +- [#42](https://github.com/AdysTech/InfluxDB.Client.Net/issues/42): Stop changing column header case to Camel case - [#48](https://github.com/AdysTech/InfluxDB.Client.Net/issues/48): Incorrect escape sequence for string values with space - [#50](https://github.com/AdysTech/InfluxDB.Client.Net/issues/50): Missing quotes for retention policy name @@ -107,7 +118,7 @@ Allow non ASCII passwords, escape double quotes (Thanks to [@siavelis](https://g ## v0.6.1 [6/03/2017] ### Release Notes -Allow points to be passed without explictly setting time or precision. It also fixes an issue with previopus implementation of the chunking support. +Allow points to be passed without explicitly setting time or precision. It also fixes an issue with previous implementation of the chunking support. ### Bugfixes @@ -120,7 +131,7 @@ Allow points to be passed without explictly setting time or precision. It also f ### Breaking Change -- Library will silently drop points older than retention period. This is similar to InfluDB behavios where it will reject those points with an `{"error":"partial write: points beyond retention policy dropped=225"}` +- Library will silently drop points older than retention period. This is similar to InfluDB behavior where it will reject those points with an `{"error":"partial write: points beyond retention policy dropped=225"}` ## v0.6.1 [3/28/2017] @@ -156,7 +167,7 @@ This version adds support for .Net Core. Minor release to fix a blocking bug with data series with microsecond precision. ### Breaking Change -- `InfluxDBClient` now implements `IDispobale`, so plan to expect few warnings in your code. Similarly custom exceptions from this library are marked as `Serializable` +- `InfluxDBClient` now implements `IDisposable`, so plan to expect few warnings in your code. Similarly custom exceptions from this library are marked as `Serializable` ### Bugfixes @@ -168,12 +179,12 @@ Minor release to fix a blocking bug with data series with microsecond precision. ### Release Notes This version is a precursor to enable support for .Net Core. This restructures the solution folders, makes the unit tests truly independent of each other. It also supports deleting Continuous Queries. As of now it still does not support the .NBet Core as there are few open issues (e.g. [#3199](https://github.com/dotnet/cli/issues/3199), [#147](https://github.com/aspnet/Tooling/issues/147)) which are rooted in .Net Core's dependency on `xproj` model. Once they move to `csproj` these issues will be resolved, and this library will support .Net Core as well via .Net Standard (1.6+) PCL. Final goal is to have same set of source files, which gets complied as normal .Net 4.5 class library, and a PCL for the Core. -This version moves away from `JavaScriptSerializer` to [Json.NET](https://github.com/JamesNK/Newtonsoft.Json). Functionally this is a transparent chnage. But this is required as former is not supported in .Net Core. +This version moves away from `JavaScriptSerializer` to [Json.NET](https://github.com/JamesNK/Newtonsoft.Json). Functionally this is a transparent change. But this is required as former is not supported in .Net Core. ### Features - [#16](https://github.com/AdysTech/InfluxDB.Client.Net/issues/16): Create / Delete Continuous Query -- QueryMultiSeriesAsync returns the time in a `DateTime` object if the series has one. The method also supports different epoch precisoins in query results now. +- QueryMultiSeriesAsync returns the time in a `DateTime` object if the series has one. The method also supports different epoch precisions in query results now. ### Breaking Change diff --git a/appveyor.yml b/appveyor.yml index bd99090..54a30ea 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,30 +1,36 @@ version: 0.{build} -image: Visual Studio 2017 +image: Visual Studio 2019 + pull_requests: do_not_increment_build_number: true + branches: only: - master + before_build: - nuget restore - dotnet restore + build: verbosity: minimal publish_nuget: true publish_nuget_symbols: true use_snupkg_format: true + before_test: - ps: tests\InfluxDB.Client.Net.TestSetup.ps1 -after_test: -- ps: Get-ChildItem -include "AdysTech.InfluxDB.Client.Net.Core*nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name } + deploy: - provider: NuGet api_key: - secure: nlBDuJJE7GoAtSvHKJDjdutExvlEQErL8Q9gFqmhURY4xUgFT946cs2mLeQ2Qezi + secure: x3I/stoKSfZBfSgc91uX34lkSU+Qs7XfgVJVSSKZsgeqKpz3WLIye9Ys6Gv7jpoo on: branch: master + + artifacts: - - path: 'src\**\*.nupkg' + - path: '*.nupkg' name: NuGet Packages - - path: 'src\**\*.snupkg' + - path: '*.snupkg' name: NuGet Symbol Packages \ No newline at end of file diff --git a/src/AdysTech.InfluxDB.Client.Net.Core/AdysTech.InfluxDB.Client.Net.Core.csproj b/src/AdysTech.InfluxDB.Client.Net.Core/AdysTech.InfluxDB.Client.Net.Core.csproj index 8bf6de1..82ac4f6 100644 --- a/src/AdysTech.InfluxDB.Client.Net.Core/AdysTech.InfluxDB.Client.Net.Core.csproj +++ b/src/AdysTech.InfluxDB.Client.Net.Core/AdysTech.InfluxDB.Client.Net.Core.csproj @@ -1,14 +1,14 @@  - netstandard2.0 + netstandard2.1 .Net client for InfluxDB. Supports all InfluxDB version from 0.9 onwards. Supports both .Net 4.6.1+ and .Net Core 2.0+. AdysTech.InfluxDB.Client.Net AdysTech AdysTech;mvadu - 0.11.1.0 + 0.15.0.0 AdysTech.InfluxDB.Client.Net.Core - © AdysTech 2016-2019 + © AdysTech 2016-2020 https://github.com/AdysTech/InfluxDB.Client.Net https://github.com/AdysTech/InfluxDB.Client.Net True @@ -17,11 +17,11 @@ This is a feature rich .Net client for InfluxDB. All methods are exposed as Async methods, so that the calling thread will not be blocked. It currently supports -1. Connecting using credentials -2. Querying all existing databases -3. Creating new database -4. Querying for the whole DB structure (hierarchical structure of all measurements, and fields) -5. Writing single, multiple values to db +1. Connecting using credentials +2. Querying all existing databases +3. Creating new database +4. Querying for the whole DB structure (hierarchical structure of all measurements, and fields) +5. Writing single, multiple values to db 6.  Retention policy management 7.  Post data to specific retention policies 8.  Query for all Continuous Queries @@ -29,8 +29,8 @@ It currently supports 10. Chunking Support in queries 11. Drop databases, measurements or points 12. Get series count or points count for a measurement - 0.11.1.0 - 0.11.1.0 + 0.15.0.0 + 0.15.0.0 InfluxDB Influx TSDB TimeSeries InfluxData Chunking retention RetentionPolicy MIT diff --git a/src/AdysTech.InfluxDB.Client.Net/AdysTech.InfluxDB.Client.Net.csproj b/src/AdysTech.InfluxDB.Client.Net/AdysTech.InfluxDB.Client.Net.csproj index 6e28cbe..075b9da 100644 --- a/src/AdysTech.InfluxDB.Client.Net/AdysTech.InfluxDB.Client.Net.csproj +++ b/src/AdysTech.InfluxDB.Client.Net/AdysTech.InfluxDB.Client.Net.csproj @@ -9,7 +9,7 @@ Properties AdysTech.InfluxDB.Client.Net AdysTech.InfluxDB.Client.Net - v4.5.1 + v4.6 512 @@ -31,9 +31,6 @@ 4 - - ..\..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll - @@ -117,7 +114,11 @@ - + + + + 12.0.3 +