@quenty/influxdbclient 1.1.0 → 1.2.0-canary.348.7dc6147.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.2.0-canary.348.7dc6147.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/influxdbclient@1.1.0...@quenty/influxdbclient@1.2.0-canary.348.7dc6147.0) (2023-04-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* InfluxDB sends stuff faster, timestamp is captured ([2d5c037](https://github.com/Quenty/NevermoreEngine/commit/2d5c037498e149af3587cbfb73dae2aca2d95d71))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# 1.1.0 (2023-03-31)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/influxdbclient",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-canary.348.7dc6147.0",
|
|
4
4
|
"description": "Provides a Roblox Lua InfluxDB client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,22 +25,22 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "
|
|
29
|
-
"@quenty/httppromise": "
|
|
30
|
-
"@quenty/jsonutils": "
|
|
31
|
-
"@quenty/loader": "
|
|
32
|
-
"@quenty/maid": "
|
|
33
|
-
"@quenty/math": "
|
|
34
|
-
"@quenty/promise": "
|
|
35
|
-
"@quenty/rx": "
|
|
36
|
-
"@quenty/servicebag": "
|
|
37
|
-
"@quenty/signal": "
|
|
38
|
-
"@quenty/string": "
|
|
39
|
-
"@quenty/table": "
|
|
40
|
-
"@quenty/valueobject": "
|
|
28
|
+
"@quenty/baseobject": "6.2.0",
|
|
29
|
+
"@quenty/httppromise": "6.5.0",
|
|
30
|
+
"@quenty/jsonutils": "6.4.0",
|
|
31
|
+
"@quenty/loader": "6.2.0",
|
|
32
|
+
"@quenty/maid": "2.5.0",
|
|
33
|
+
"@quenty/math": "2.3.0",
|
|
34
|
+
"@quenty/promise": "6.4.0",
|
|
35
|
+
"@quenty/rx": "7.9.0-canary.348.7dc6147.0",
|
|
36
|
+
"@quenty/servicebag": "6.6.0",
|
|
37
|
+
"@quenty/signal": "2.3.0",
|
|
38
|
+
"@quenty/string": "3.1.0",
|
|
39
|
+
"@quenty/table": "3.2.0",
|
|
40
|
+
"@quenty/valueobject": "7.10.0-canary.348.7dc6147.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "7dc6147924e8746ae6529e7e33e16da01d59d4a6"
|
|
46
46
|
}
|
|
@@ -12,7 +12,7 @@ function InfluxDBWriteOptionUtils.getDefaultOptions()
|
|
|
12
12
|
return InfluxDBWriteOptionUtils.createWriteOptions({
|
|
13
13
|
batchSize = 1000;
|
|
14
14
|
maxBatchBytes = 50_000_000; -- default max batch size in the cloud
|
|
15
|
-
flushIntervalSeconds =
|
|
15
|
+
flushIntervalSeconds = 5;
|
|
16
16
|
-- maxRetries = 5;
|
|
17
17
|
-- maxRetryTimeSeconds = 180;
|
|
18
18
|
-- maxBufferLines = 32_000;
|
|
@@ -19,7 +19,7 @@ function InfluxDBPoint.new(measurementName)
|
|
|
19
19
|
assert(type(measurementName) == "string" or measurementName == nil, "Bad measurementName")
|
|
20
20
|
|
|
21
21
|
self._measurementName = measurementName
|
|
22
|
-
self._timestamp = nil
|
|
22
|
+
self._timestamp = self:_convertTimeToMillis(nil)
|
|
23
23
|
self._tags = {}
|
|
24
24
|
self._fields = {}
|
|
25
25
|
|
|
@@ -47,12 +47,16 @@ function InfluxDBPoint.isInfluxDBPoint(point)
|
|
|
47
47
|
and getmetatable(point) == InfluxDBPoint
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
function InfluxDBPoint:
|
|
50
|
+
function InfluxDBPoint:SetMeasurementName(name)
|
|
51
51
|
assert(type(name) == "string" or name == nil, "Bad name")
|
|
52
52
|
|
|
53
53
|
self._measurementName = name
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
+
function InfluxDBPoint:GetMeasurementName()
|
|
57
|
+
return self._measurementName
|
|
58
|
+
end
|
|
59
|
+
|
|
56
60
|
function InfluxDBPoint:ToTableData()
|
|
57
61
|
return {
|
|
58
62
|
measurementName = self._measurementName;
|