files.com 1.2.309 → 1.2.310
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/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.310
|
|
@@ -8,6 +8,18 @@
|
|
|
8
8
|
"enabled": true,
|
|
9
9
|
"fall": 1,
|
|
10
10
|
"health_check_enabled": true,
|
|
11
|
+
"health_check_results": [
|
|
12
|
+
{
|
|
13
|
+
"timestamp": "2025-09-19T12:32:52+00:00",
|
|
14
|
+
"status": "healthy",
|
|
15
|
+
"canary_timestamp": "2025-09-19T12:32:52+00:00"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"status": "failed",
|
|
19
|
+
"reason": "Unable to connect",
|
|
20
|
+
"timestamp": "2025-09-19T12:32:52+00:00"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
11
23
|
"health_check_type": "active",
|
|
12
24
|
"id": 1,
|
|
13
25
|
"interval": 60,
|
|
@@ -27,6 +39,7 @@
|
|
|
27
39
|
* `enabled` (boolean): True if this backend is enabled.
|
|
28
40
|
* `fall` (int64): Number of consecutive failures before considering the backend unhealthy.
|
|
29
41
|
* `health_check_enabled` (boolean): True if health checks are enabled for this backend.
|
|
42
|
+
* `health_check_results` (array(object)): Array of recent health check results.
|
|
30
43
|
* `health_check_type` (string): Type of health check to perform.
|
|
31
44
|
* `id` (int64): Unique identifier for this backend.
|
|
32
45
|
* `interval` (int64): Interval in seconds between health checks.
|
|
@@ -169,6 +182,18 @@ await remote_mount_backend.update({
|
|
|
169
182
|
"enabled": true,
|
|
170
183
|
"fall": 1,
|
|
171
184
|
"health_check_enabled": true,
|
|
185
|
+
"health_check_results": [
|
|
186
|
+
{
|
|
187
|
+
"timestamp": "2025-09-19T12:32:52+00:00",
|
|
188
|
+
"status": "healthy",
|
|
189
|
+
"canary_timestamp": "2025-09-19T12:32:52+00:00"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"status": "failed",
|
|
193
|
+
"reason": "Unable to connect",
|
|
194
|
+
"timestamp": "2025-09-19T12:32:52+00:00"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
172
197
|
"health_check_type": "active",
|
|
173
198
|
"id": 1,
|
|
174
199
|
"interval": 60,
|
package/lib/Files.js
CHANGED
|
@@ -12,7 +12,7 @@ var apiKey;
|
|
|
12
12
|
var baseUrl = 'https://app.files.com';
|
|
13
13
|
var sessionId = null;
|
|
14
14
|
var language = null;
|
|
15
|
-
var version = '1.2.
|
|
15
|
+
var version = '1.2.310';
|
|
16
16
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
17
17
|
var logLevel = _Logger.LogLevel.INFO;
|
|
18
18
|
var debugRequest = false;
|
|
@@ -60,6 +60,13 @@ var RemoteMountBackend = /*#__PURE__*/(0, _createClass2.default)(function Remote
|
|
|
60
60
|
(0, _defineProperty2.default)(this, "setHealthCheckEnabled", function (value) {
|
|
61
61
|
_this.attributes.health_check_enabled = value;
|
|
62
62
|
});
|
|
63
|
+
// array(object) # Array of recent health check results.
|
|
64
|
+
(0, _defineProperty2.default)(this, "getHealthCheckResults", function () {
|
|
65
|
+
return _this.attributes.health_check_results;
|
|
66
|
+
});
|
|
67
|
+
(0, _defineProperty2.default)(this, "setHealthCheckResults", function (value) {
|
|
68
|
+
_this.attributes.health_check_results = value;
|
|
69
|
+
});
|
|
63
70
|
// string # Type of health check to perform.
|
|
64
71
|
(0, _defineProperty2.default)(this, "getHealthCheckType", function () {
|
|
65
72
|
return _this.attributes.health_check_type;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
|
@@ -56,6 +56,13 @@ class RemoteMountBackend {
|
|
|
56
56
|
this.attributes.health_check_enabled = value
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
// array(object) # Array of recent health check results.
|
|
60
|
+
getHealthCheckResults = () => this.attributes.health_check_results
|
|
61
|
+
|
|
62
|
+
setHealthCheckResults = value => {
|
|
63
|
+
this.attributes.health_check_results = value
|
|
64
|
+
}
|
|
65
|
+
|
|
59
66
|
// string # Type of health check to perform.
|
|
60
67
|
getHealthCheckType = () => this.attributes.health_check_type
|
|
61
68
|
|