Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bumped to 1.1.0

  • Loading branch information...
commit 396489546c6a5fdf1330c5c943cca3db7043f2c0 1 parent a31eb04
@maddenpj maddenpj authored
View
3  CHANGELOG.md
@@ -0,0 +1,3 @@
+## 1.1.0
+
+* Feature - Increment(ById|ByKey|BulkData) API call added.
View
8 Client/Properties/AssemblyInfo.cs
@@ -8,9 +8,9 @@
[assembly: AssemblyTitle("Client")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
+[assembly: AssemblyCompany("TempoDB")]
[assembly: AssemblyProduct("Client")]
-[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyCopyright("Copyright © 2013 TempoDB Inc.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.1.0.0")]
+//[assembly: AssemblyFileVersion("1.0.0.0")]
View
23 LICENSE
@@ -1,9 +1,20 @@
-The MIT License
+Copyright (c) 2013 TempoDB Inc.
-Copyright (C) 2012 Dan Liebster
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
81 README.md
@@ -386,6 +386,87 @@ var bulkSet = new BulkDataSet(new DateTime(2012, 1, 1), data);
client.WriteBulkData(bulkSet);
```
+## IncrementById(string seriesId, IList<DataPoint> data)
+Increments the value of the specified series at the given timestamp. The value of the datapoint is the amount to increment. This is similar to a write. However the value is incremented by the datapoint value
+instead of overwritten. Values are incremented atomically, so this is useful for counting events. The series id and a list of DataPoints are required.
+
+### Parameters
+* seriesId - id for the series to increment (string)
+* data - the data to increment (list of DataPoints)
+
+### Returns
+Nothing
+
+### Example
+
+The following example increments three datapoints to the series with id "38268c3b231f1266a392931e15e99231".
+```csharp
+var client = new Client("api-key", "api-secret");
+
+var data = new List<DataPoint>
+{
+ new DataPoint(datetime(2012, 1, 1, 1, 0, 0), 12.34),
+ new DataPoint(datetime(2012, 1, 1, 1, 1, 0), 1.874),
+ new DataPoint(datetime(2012, 1, 1, 1, 2, 0), 21.52),
+};
+client.IncrementById("38268c3b231f1266a392931e15e99231", data);
+```
+
+## IncrementsByKey(string seriesKey, IList<DataPoint> data)
+Increments the value of the specified series at the given timestamp. The value of the datapoint is the amount to increment. This is similar to a write. However, the value is incremented by the datapoint value
+instead of overwritten. Values are incremented atomically, so this is useful for counting events. The series key and an array of DataPoints are required. Note: a series will be created
+if the provided key does not exist.
+
+### Parameters
+* seriesKey - key for the series to increment (string)
+* data - the data to increment (list of DataPoints)
+
+### Returns
+Nothing
+
+### Example
+
+The following example increments three datapoints to the series with key "my-custom-key".
+```csharp
+var client = new Client("api-key", "api-secret");
+
+var data = new List<DataPoint>
+{
+ new DataPoint(datetime(2012, 1, 1, 1, 0, 0), 12.34),
+ new DataPoint(datetime(2012, 1, 1, 1, 1, 0), 1.874),
+ new DataPoint(datetime(2012, 1, 1, 1, 2, 0), 21.52),
+};
+client.IncrementByKey("my-custom-key", data);
+```
+
+## IncrementsBulkData(BulkDataSet dataSet)
+Increments values to multiple series for a particular timestamp. This function takes a BulkDataSet which contains a timestamp and list of BulkPoints.
+
+### Parameters
+* dataSet - a bulk data set representing a timestamp and multiple values (BulkDataSet)
+
+### Returns
+Nothing
+
+### Example
+
+The following example increments datapoints to four separate series (2 by id, 2 by key) at the same timestamp.
+
+```csharp
+var client = new Client("api-key", "api-secret");
+
+var data = new List<BulkPoint>
+{
+ new BulkIdPoint("38268c3b231f1266a392931e15e99231", 20.31),
+ new BulkIdPoint("c3b23826836a391f12629392311e15e9", 13.351),
+ new BulkKeyPoint("my-key-1", 0.631),
+ new BulkKeyPoint("my-key-2", 612.23)
+};
+var bulkSet = new BulkDataSet(new DateTime(2012, 1, 1), data);
+
+client.IncrementBulkData(bulkSet);
+```
+
## DeleteById(string seriesId, DateTime start, DateTime end)
Deletes a range of data specified by series id. The id, start, and end times are required. As with the read api, the start datetime
Please sign in to comment.
Something went wrong with that request. Please try again.