@blues-inc/notehub-js 1.0.35 → 1.0.36-beta.2
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/README.md +245 -222
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/ApiAccessApi.js +238 -0
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +404 -351
- package/dist/api/EventApi.js +130 -130
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +441 -355
- package/dist/api/RepositoryApi.js +103 -103
- package/dist/api/RouteApi.js +81 -81
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +49 -0
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/ApiKey.js +159 -0
- package/dist/model/ApiKeyCreatedBy.js +116 -0
- package/dist/model/ApiKeyInfo.js +112 -0
- package/dist/model/ApiKeySecret.js +105 -0
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSet.js +30 -29
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +102 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +269 -0
- package/dist/model/EnvVar.js +119 -0
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +36 -27
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +17 -16
- package/dist/model/GetProjectEvents200Response.js +21 -20
- package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
- package/dist/model/GetProjectFleets200Response.js +12 -11
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjectProducts200Response.js +10 -9
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +45 -46
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/QuestionDataResponseLineChart.js +39 -39
- package/dist/model/QuestionDataResponseMap.js +16 -16
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +44 -35
- package/dist/model/SchemaProperty.js +40 -38
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +31 -22
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
|
@@ -18,7 +18,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
20
|
* Notehub API
|
|
21
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
21
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
22
22
|
*
|
|
23
23
|
* The version of the OpenAPI document: 1.2.0
|
|
24
24
|
* Contact: engineering@blues.io
|
|
@@ -31,17 +31,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The CreateMonitor model module.
|
|
33
33
|
* @module model/CreateMonitor
|
|
34
|
-
* @version 1.0.
|
|
34
|
+
* @version 1.0.36-beta.2
|
|
35
35
|
*/
|
|
36
36
|
var CreateMonitor = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
38
38
|
* Constructs a new <code>CreateMonitor</code>.
|
|
39
39
|
* @alias module:model/CreateMonitor
|
|
40
40
|
* @implements module:model/Monitor
|
|
41
|
-
* @param name {String}
|
|
42
|
-
* @param description {String}
|
|
43
|
-
* @param notefileFilter {Array.<String>}
|
|
44
|
-
* @param alertRoutes {Array.<module:model/MonitorAlertRoutesInner>}
|
|
41
|
+
* @param name {String}
|
|
42
|
+
* @param description {String}
|
|
43
|
+
* @param notefileFilter {Array.<String>}
|
|
44
|
+
* @param alertRoutes {Array.<module:model/MonitorAlertRoutesInner>}
|
|
45
45
|
*/
|
|
46
46
|
function CreateMonitor(name, description, notefileFilter, alertRoutes) {
|
|
47
47
|
_classCallCheck(this, CreateMonitor);
|
|
@@ -57,10 +57,10 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
57
57
|
return _createClass(CreateMonitor, null, [{
|
|
58
58
|
key: "initialize",
|
|
59
59
|
value: function initialize(obj, name, description, notefileFilter, alertRoutes) {
|
|
60
|
-
obj[
|
|
61
|
-
obj[
|
|
62
|
-
obj[
|
|
63
|
-
obj[
|
|
60
|
+
obj['name'] = name;
|
|
61
|
+
obj['description'] = description;
|
|
62
|
+
obj['notefile_filter'] = notefileFilter;
|
|
63
|
+
obj['alert_routes'] = alertRoutes;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -76,59 +76,59 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
76
76
|
if (data) {
|
|
77
77
|
obj = obj || new CreateMonitor();
|
|
78
78
|
_Monitor["default"].constructFromObject(data, obj);
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty('uid')) {
|
|
80
|
+
obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty('name')) {
|
|
83
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty('description')) {
|
|
86
|
+
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
88
|
+
if (data.hasOwnProperty('source_type')) {
|
|
89
|
+
obj['source_type'] = _ApiClient["default"].convertToType(data['source_type'], 'String');
|
|
90
90
|
}
|
|
91
|
-
if (data.hasOwnProperty(
|
|
92
|
-
obj[
|
|
91
|
+
if (data.hasOwnProperty('disabled')) {
|
|
92
|
+
obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
|
|
93
93
|
}
|
|
94
|
-
if (data.hasOwnProperty(
|
|
95
|
-
obj[
|
|
94
|
+
if (data.hasOwnProperty('alert')) {
|
|
95
|
+
obj['alert'] = _ApiClient["default"].convertToType(data['alert'], 'Boolean');
|
|
96
96
|
}
|
|
97
|
-
if (data.hasOwnProperty(
|
|
98
|
-
obj[
|
|
97
|
+
if (data.hasOwnProperty('notefile_filter')) {
|
|
98
|
+
obj['notefile_filter'] = _ApiClient["default"].convertToType(data['notefile_filter'], ['String']);
|
|
99
99
|
}
|
|
100
|
-
if (data.hasOwnProperty(
|
|
101
|
-
obj[
|
|
100
|
+
if (data.hasOwnProperty('fleet_filter')) {
|
|
101
|
+
obj['fleet_filter'] = _ApiClient["default"].convertToType(data['fleet_filter'], ['String']);
|
|
102
102
|
}
|
|
103
|
-
if (data.hasOwnProperty(
|
|
104
|
-
obj[
|
|
103
|
+
if (data.hasOwnProperty('source_selector')) {
|
|
104
|
+
obj['source_selector'] = _ApiClient["default"].convertToType(data['source_selector'], 'String');
|
|
105
105
|
}
|
|
106
|
-
if (data.hasOwnProperty(
|
|
107
|
-
obj[
|
|
106
|
+
if (data.hasOwnProperty('condition_type')) {
|
|
107
|
+
obj['condition_type'] = _ApiClient["default"].convertToType(data['condition_type'], 'String');
|
|
108
108
|
}
|
|
109
|
-
if (data.hasOwnProperty(
|
|
110
|
-
obj[
|
|
109
|
+
if (data.hasOwnProperty('threshold')) {
|
|
110
|
+
obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
|
|
111
111
|
}
|
|
112
|
-
if (data.hasOwnProperty(
|
|
113
|
-
obj[
|
|
112
|
+
if (data.hasOwnProperty('alert_routes')) {
|
|
113
|
+
obj['alert_routes'] = _ApiClient["default"].convertToType(data['alert_routes'], [_MonitorAlertRoutesInner["default"]]);
|
|
114
114
|
}
|
|
115
|
-
if (data.hasOwnProperty(
|
|
116
|
-
obj[
|
|
115
|
+
if (data.hasOwnProperty('last_routed_at')) {
|
|
116
|
+
obj['last_routed_at'] = _ApiClient["default"].convertToType(data['last_routed_at'], 'String');
|
|
117
117
|
}
|
|
118
|
-
if (data.hasOwnProperty(
|
|
119
|
-
obj[
|
|
118
|
+
if (data.hasOwnProperty('silenced')) {
|
|
119
|
+
obj['silenced'] = _ApiClient["default"].convertToType(data['silenced'], 'Boolean');
|
|
120
120
|
}
|
|
121
|
-
if (data.hasOwnProperty(
|
|
122
|
-
obj[
|
|
121
|
+
if (data.hasOwnProperty('routing_cooldown_period')) {
|
|
122
|
+
obj['routing_cooldown_period'] = _ApiClient["default"].convertToType(data['routing_cooldown_period'], 'String');
|
|
123
123
|
}
|
|
124
|
-
if (data.hasOwnProperty(
|
|
125
|
-
obj[
|
|
124
|
+
if (data.hasOwnProperty('aggregate_function')) {
|
|
125
|
+
obj['aggregate_function'] = _ApiClient["default"].convertToType(data['aggregate_function'], 'String');
|
|
126
126
|
}
|
|
127
|
-
if (data.hasOwnProperty(
|
|
128
|
-
obj[
|
|
127
|
+
if (data.hasOwnProperty('aggregate_window')) {
|
|
128
|
+
obj['aggregate_window'] = _ApiClient["default"].convertToType(data['aggregate_window'], 'String');
|
|
129
129
|
}
|
|
130
|
-
if (data.hasOwnProperty(
|
|
131
|
-
obj[
|
|
130
|
+
if (data.hasOwnProperty('per_device')) {
|
|
131
|
+
obj['per_device'] = _ApiClient["default"].convertToType(data['per_device'], 'Boolean');
|
|
132
132
|
}
|
|
133
133
|
} else if (data === null) {
|
|
134
134
|
return null;
|
|
@@ -160,45 +160,45 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
160
160
|
} finally {
|
|
161
161
|
_iterator.f();
|
|
162
162
|
}
|
|
163
|
-
if (data[
|
|
164
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data[
|
|
163
|
+
if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
|
|
164
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
|
|
165
165
|
}
|
|
166
166
|
// ensure the json data is a string
|
|
167
|
-
if (data[
|
|
168
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data[
|
|
167
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
168
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
169
169
|
}
|
|
170
170
|
// ensure the json data is a string
|
|
171
|
-
if (data[
|
|
172
|
-
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data[
|
|
171
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
172
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
173
173
|
}
|
|
174
174
|
// ensure the json data is a string
|
|
175
|
-
if (data[
|
|
176
|
-
throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data[
|
|
175
|
+
if (data['source_type'] && !(typeof data['source_type'] === 'string' || data['source_type'] instanceof String)) {
|
|
176
|
+
throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data['source_type']);
|
|
177
177
|
}
|
|
178
178
|
// ensure the json data is an array
|
|
179
|
-
if (!Array.isArray(data[
|
|
180
|
-
throw new Error("Expected the field `notefile_filter` to be an array in the JSON data but got " + data[
|
|
179
|
+
if (!Array.isArray(data['notefile_filter'])) {
|
|
180
|
+
throw new Error("Expected the field `notefile_filter` to be an array in the JSON data but got " + data['notefile_filter']);
|
|
181
181
|
}
|
|
182
182
|
// ensure the json data is an array
|
|
183
|
-
if (!Array.isArray(data[
|
|
184
|
-
throw new Error("Expected the field `fleet_filter` to be an array in the JSON data but got " + data[
|
|
183
|
+
if (!Array.isArray(data['fleet_filter'])) {
|
|
184
|
+
throw new Error("Expected the field `fleet_filter` to be an array in the JSON data but got " + data['fleet_filter']);
|
|
185
185
|
}
|
|
186
186
|
// ensure the json data is a string
|
|
187
|
-
if (data[
|
|
188
|
-
throw new Error("Expected the field `source_selector` to be a primitive type in the JSON string but got " + data[
|
|
187
|
+
if (data['source_selector'] && !(typeof data['source_selector'] === 'string' || data['source_selector'] instanceof String)) {
|
|
188
|
+
throw new Error("Expected the field `source_selector` to be a primitive type in the JSON string but got " + data['source_selector']);
|
|
189
189
|
}
|
|
190
190
|
// ensure the json data is a string
|
|
191
|
-
if (data[
|
|
192
|
-
throw new Error("Expected the field `condition_type` to be a primitive type in the JSON string but got " + data[
|
|
191
|
+
if (data['condition_type'] && !(typeof data['condition_type'] === 'string' || data['condition_type'] instanceof String)) {
|
|
192
|
+
throw new Error("Expected the field `condition_type` to be a primitive type in the JSON string but got " + data['condition_type']);
|
|
193
193
|
}
|
|
194
|
-
if (data[
|
|
194
|
+
if (data['alert_routes']) {
|
|
195
195
|
// data not null
|
|
196
196
|
// ensure the json data is an array
|
|
197
|
-
if (!Array.isArray(data[
|
|
198
|
-
throw new Error("Expected the field `alert_routes` to be an array in the JSON data but got " + data[
|
|
197
|
+
if (!Array.isArray(data['alert_routes'])) {
|
|
198
|
+
throw new Error("Expected the field `alert_routes` to be an array in the JSON data but got " + data['alert_routes']);
|
|
199
199
|
}
|
|
200
200
|
// validate the optional field `alert_routes` (array)
|
|
201
|
-
var _iterator2 = _createForOfIteratorHelper(data[
|
|
201
|
+
var _iterator2 = _createForOfIteratorHelper(data['alert_routes']),
|
|
202
202
|
_step2;
|
|
203
203
|
try {
|
|
204
204
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -210,22 +210,23 @@ var CreateMonitor = /*#__PURE__*/function () {
|
|
|
210
210
|
} finally {
|
|
211
211
|
_iterator2.f();
|
|
212
212
|
}
|
|
213
|
+
;
|
|
213
214
|
}
|
|
214
215
|
// ensure the json data is a string
|
|
215
|
-
if (data[
|
|
216
|
-
throw new Error("Expected the field `last_routed_at` to be a primitive type in the JSON string but got " + data[
|
|
216
|
+
if (data['last_routed_at'] && !(typeof data['last_routed_at'] === 'string' || data['last_routed_at'] instanceof String)) {
|
|
217
|
+
throw new Error("Expected the field `last_routed_at` to be a primitive type in the JSON string but got " + data['last_routed_at']);
|
|
217
218
|
}
|
|
218
219
|
// ensure the json data is a string
|
|
219
|
-
if (data[
|
|
220
|
-
throw new Error("Expected the field `routing_cooldown_period` to be a primitive type in the JSON string but got " + data[
|
|
220
|
+
if (data['routing_cooldown_period'] && !(typeof data['routing_cooldown_period'] === 'string' || data['routing_cooldown_period'] instanceof String)) {
|
|
221
|
+
throw new Error("Expected the field `routing_cooldown_period` to be a primitive type in the JSON string but got " + data['routing_cooldown_period']);
|
|
221
222
|
}
|
|
222
223
|
// ensure the json data is a string
|
|
223
|
-
if (data[
|
|
224
|
-
throw new Error("Expected the field `aggregate_function` to be a primitive type in the JSON string but got " + data[
|
|
224
|
+
if (data['aggregate_function'] && !(typeof data['aggregate_function'] === 'string' || data['aggregate_function'] instanceof String)) {
|
|
225
|
+
throw new Error("Expected the field `aggregate_function` to be a primitive type in the JSON string but got " + data['aggregate_function']);
|
|
225
226
|
}
|
|
226
227
|
// ensure the json data is a string
|
|
227
|
-
if (data[
|
|
228
|
-
throw new Error("Expected the field `aggregate_window` to be a primitive type in the JSON string but got " + data[
|
|
228
|
+
if (data['aggregate_window'] && !(typeof data['aggregate_window'] === 'string' || data['aggregate_window'] instanceof String)) {
|
|
229
|
+
throw new Error("Expected the field `aggregate_window` to be a primitive type in the JSON string but got " + data['aggregate_window']);
|
|
229
230
|
}
|
|
230
231
|
return true;
|
|
231
232
|
}
|
|
@@ -236,202 +237,202 @@ CreateMonitor.RequiredProperties = ["name", "description", "notefile_filter", "a
|
|
|
236
237
|
/**
|
|
237
238
|
* @member {String} uid
|
|
238
239
|
*/
|
|
239
|
-
CreateMonitor.prototype[
|
|
240
|
+
CreateMonitor.prototype['uid'] = undefined;
|
|
240
241
|
|
|
241
242
|
/**
|
|
242
243
|
* @member {String} name
|
|
243
244
|
*/
|
|
244
|
-
CreateMonitor.prototype[
|
|
245
|
+
CreateMonitor.prototype['name'] = undefined;
|
|
245
246
|
|
|
246
247
|
/**
|
|
247
248
|
* @member {String} description
|
|
248
249
|
*/
|
|
249
|
-
CreateMonitor.prototype[
|
|
250
|
+
CreateMonitor.prototype['description'] = undefined;
|
|
250
251
|
|
|
251
252
|
/**
|
|
252
253
|
* The type of source to monitor. Currently only \"event\" is supported.
|
|
253
254
|
* @member {module:model/CreateMonitor.SourceTypeEnum} source_type
|
|
254
255
|
*/
|
|
255
|
-
CreateMonitor.prototype[
|
|
256
|
+
CreateMonitor.prototype['source_type'] = undefined;
|
|
256
257
|
|
|
257
258
|
/**
|
|
258
259
|
* If true, the monitor will not be evaluated.
|
|
259
260
|
* @member {Boolean} disabled
|
|
260
261
|
*/
|
|
261
|
-
CreateMonitor.prototype[
|
|
262
|
+
CreateMonitor.prototype['disabled'] = undefined;
|
|
262
263
|
|
|
263
264
|
/**
|
|
264
265
|
* If true, the monitor is in alert state.
|
|
265
266
|
* @member {Boolean} alert
|
|
266
267
|
*/
|
|
267
|
-
CreateMonitor.prototype[
|
|
268
|
+
CreateMonitor.prototype['alert'] = undefined;
|
|
268
269
|
|
|
269
270
|
/**
|
|
270
271
|
* @member {Array.<String>} notefile_filter
|
|
271
272
|
*/
|
|
272
|
-
CreateMonitor.prototype[
|
|
273
|
+
CreateMonitor.prototype['notefile_filter'] = undefined;
|
|
273
274
|
|
|
274
275
|
/**
|
|
275
276
|
* @member {Array.<String>} fleet_filter
|
|
276
277
|
*/
|
|
277
|
-
CreateMonitor.prototype[
|
|
278
|
+
CreateMonitor.prototype['fleet_filter'] = undefined;
|
|
278
279
|
|
|
279
280
|
/**
|
|
280
281
|
* A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value.
|
|
281
282
|
* @member {String} source_selector
|
|
282
283
|
*/
|
|
283
|
-
CreateMonitor.prototype[
|
|
284
|
+
CreateMonitor.prototype['source_selector'] = undefined;
|
|
284
285
|
|
|
285
286
|
/**
|
|
286
287
|
* A comparison operation to apply to the value selected by the source_selector [greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to]
|
|
287
288
|
* @member {module:model/CreateMonitor.ConditionTypeEnum} condition_type
|
|
288
289
|
*/
|
|
289
|
-
CreateMonitor.prototype[
|
|
290
|
+
CreateMonitor.prototype['condition_type'] = undefined;
|
|
290
291
|
|
|
291
292
|
/**
|
|
292
293
|
* The type of condition to apply to the value selected by the source_selector
|
|
293
294
|
* @member {Number} threshold
|
|
294
295
|
*/
|
|
295
|
-
CreateMonitor.prototype[
|
|
296
|
+
CreateMonitor.prototype['threshold'] = undefined;
|
|
296
297
|
|
|
297
298
|
/**
|
|
298
299
|
* @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
|
|
299
300
|
*/
|
|
300
|
-
CreateMonitor.prototype[
|
|
301
|
+
CreateMonitor.prototype['alert_routes'] = undefined;
|
|
301
302
|
|
|
302
303
|
/**
|
|
303
304
|
* The last time the monitor was evaluated and routed.
|
|
304
305
|
* @member {String} last_routed_at
|
|
305
306
|
*/
|
|
306
|
-
CreateMonitor.prototype[
|
|
307
|
+
CreateMonitor.prototype['last_routed_at'] = undefined;
|
|
307
308
|
|
|
308
309
|
/**
|
|
309
310
|
* If true, alerts will be created, but no notifications will be sent.
|
|
310
311
|
* @member {Boolean} silenced
|
|
311
312
|
*/
|
|
312
|
-
CreateMonitor.prototype[
|
|
313
|
+
CreateMonitor.prototype['silenced'] = undefined;
|
|
313
314
|
|
|
314
315
|
/**
|
|
315
316
|
* The time period to wait before routing another event after the monitor | has been triggered. It follows the format of a number followed by a time unit.
|
|
316
317
|
* @member {String} routing_cooldown_period
|
|
317
318
|
*/
|
|
318
|
-
CreateMonitor.prototype[
|
|
319
|
+
CreateMonitor.prototype['routing_cooldown_period'] = undefined;
|
|
319
320
|
|
|
320
321
|
/**
|
|
321
322
|
* Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
|
|
322
323
|
* @member {module:model/CreateMonitor.AggregateFunctionEnum} aggregate_function
|
|
323
324
|
*/
|
|
324
|
-
CreateMonitor.prototype[
|
|
325
|
+
CreateMonitor.prototype['aggregate_function'] = undefined;
|
|
325
326
|
|
|
326
327
|
/**
|
|
327
328
|
* The time window to aggregate the selected values. It follows the format of a number followed by a time unit
|
|
328
329
|
* @member {String} aggregate_window
|
|
329
330
|
*/
|
|
330
|
-
CreateMonitor.prototype[
|
|
331
|
+
CreateMonitor.prototype['aggregate_window'] = undefined;
|
|
331
332
|
|
|
332
333
|
/**
|
|
333
334
|
* Only relevant when using an aggregate_function. If true, the monitor will be evaluated per device, | rather than across the set of selected devices. If true then if a single device matches the specified criteria, | and alert will be created, otherwise the aggregate function will be applied across all devices.
|
|
334
335
|
* @member {Boolean} per_device
|
|
335
336
|
*/
|
|
336
|
-
CreateMonitor.prototype[
|
|
337
|
+
CreateMonitor.prototype['per_device'] = undefined;
|
|
337
338
|
|
|
338
339
|
// Implement Monitor interface:
|
|
339
340
|
/**
|
|
340
341
|
* @member {String} uid
|
|
341
342
|
*/
|
|
342
|
-
_Monitor["default"].prototype[
|
|
343
|
+
_Monitor["default"].prototype['uid'] = undefined;
|
|
343
344
|
/**
|
|
344
345
|
* @member {String} name
|
|
345
346
|
*/
|
|
346
|
-
_Monitor["default"].prototype[
|
|
347
|
+
_Monitor["default"].prototype['name'] = undefined;
|
|
347
348
|
/**
|
|
348
349
|
* @member {String} description
|
|
349
350
|
*/
|
|
350
|
-
_Monitor["default"].prototype[
|
|
351
|
+
_Monitor["default"].prototype['description'] = undefined;
|
|
351
352
|
/**
|
|
352
353
|
* The type of source to monitor. Currently only \"event\" is supported.
|
|
353
354
|
* @member {module:model/Monitor.SourceTypeEnum} source_type
|
|
354
355
|
*/
|
|
355
|
-
_Monitor["default"].prototype[
|
|
356
|
+
_Monitor["default"].prototype['source_type'] = undefined;
|
|
356
357
|
/**
|
|
357
358
|
* If true, the monitor will not be evaluated.
|
|
358
359
|
* @member {Boolean} disabled
|
|
359
360
|
*/
|
|
360
|
-
_Monitor["default"].prototype[
|
|
361
|
+
_Monitor["default"].prototype['disabled'] = undefined;
|
|
361
362
|
/**
|
|
362
363
|
* If true, the monitor is in alert state.
|
|
363
364
|
* @member {Boolean} alert
|
|
364
365
|
*/
|
|
365
|
-
_Monitor["default"].prototype[
|
|
366
|
+
_Monitor["default"].prototype['alert'] = undefined;
|
|
366
367
|
/**
|
|
367
368
|
* @member {Array.<String>} notefile_filter
|
|
368
369
|
*/
|
|
369
|
-
_Monitor["default"].prototype[
|
|
370
|
+
_Monitor["default"].prototype['notefile_filter'] = undefined;
|
|
370
371
|
/**
|
|
371
372
|
* @member {Array.<String>} fleet_filter
|
|
372
373
|
*/
|
|
373
|
-
_Monitor["default"].prototype[
|
|
374
|
+
_Monitor["default"].prototype['fleet_filter'] = undefined;
|
|
374
375
|
/**
|
|
375
376
|
* A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value.
|
|
376
377
|
* @member {String} source_selector
|
|
377
378
|
*/
|
|
378
|
-
_Monitor["default"].prototype[
|
|
379
|
+
_Monitor["default"].prototype['source_selector'] = undefined;
|
|
379
380
|
/**
|
|
380
381
|
* A comparison operation to apply to the value selected by the source_selector [greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to]
|
|
381
382
|
* @member {module:model/Monitor.ConditionTypeEnum} condition_type
|
|
382
383
|
*/
|
|
383
|
-
_Monitor["default"].prototype[
|
|
384
|
+
_Monitor["default"].prototype['condition_type'] = undefined;
|
|
384
385
|
/**
|
|
385
386
|
* The type of condition to apply to the value selected by the source_selector
|
|
386
387
|
* @member {Number} threshold
|
|
387
388
|
*/
|
|
388
|
-
_Monitor["default"].prototype[
|
|
389
|
+
_Monitor["default"].prototype['threshold'] = undefined;
|
|
389
390
|
/**
|
|
390
391
|
* @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
|
|
391
392
|
*/
|
|
392
|
-
_Monitor["default"].prototype[
|
|
393
|
+
_Monitor["default"].prototype['alert_routes'] = undefined;
|
|
393
394
|
/**
|
|
394
395
|
* The last time the monitor was evaluated and routed.
|
|
395
396
|
* @member {String} last_routed_at
|
|
396
397
|
*/
|
|
397
|
-
_Monitor["default"].prototype[
|
|
398
|
+
_Monitor["default"].prototype['last_routed_at'] = undefined;
|
|
398
399
|
/**
|
|
399
400
|
* If true, alerts will be created, but no notifications will be sent.
|
|
400
401
|
* @member {Boolean} silenced
|
|
401
402
|
*/
|
|
402
|
-
_Monitor["default"].prototype[
|
|
403
|
+
_Monitor["default"].prototype['silenced'] = undefined;
|
|
403
404
|
/**
|
|
404
405
|
* The time period to wait before routing another event after the monitor | has been triggered. It follows the format of a number followed by a time unit.
|
|
405
406
|
* @member {String} routing_cooldown_period
|
|
406
407
|
*/
|
|
407
|
-
_Monitor["default"].prototype[
|
|
408
|
+
_Monitor["default"].prototype['routing_cooldown_period'] = undefined;
|
|
408
409
|
/**
|
|
409
410
|
* Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
|
|
410
411
|
* @member {module:model/Monitor.AggregateFunctionEnum} aggregate_function
|
|
411
412
|
*/
|
|
412
|
-
_Monitor["default"].prototype[
|
|
413
|
+
_Monitor["default"].prototype['aggregate_function'] = undefined;
|
|
413
414
|
/**
|
|
414
415
|
* The time window to aggregate the selected values. It follows the format of a number followed by a time unit
|
|
415
416
|
* @member {String} aggregate_window
|
|
416
417
|
*/
|
|
417
|
-
_Monitor["default"].prototype[
|
|
418
|
+
_Monitor["default"].prototype['aggregate_window'] = undefined;
|
|
418
419
|
/**
|
|
419
420
|
* Only relevant when using an aggregate_function. If true, the monitor will be evaluated per device, | rather than across the set of selected devices. If true then if a single device matches the specified criteria, | and alert will be created, otherwise the aggregate function will be applied across all devices.
|
|
420
421
|
* @member {Boolean} per_device
|
|
421
422
|
*/
|
|
422
|
-
_Monitor["default"].prototype[
|
|
423
|
+
_Monitor["default"].prototype['per_device'] = undefined;
|
|
423
424
|
|
|
424
425
|
/**
|
|
425
426
|
* Allowed values for the <code>source_type</code> property.
|
|
426
427
|
* @enum {String}
|
|
427
428
|
* @readonly
|
|
428
429
|
*/
|
|
429
|
-
CreateMonitor[
|
|
430
|
+
CreateMonitor['SourceTypeEnum'] = {
|
|
430
431
|
/**
|
|
431
432
|
* value: "event"
|
|
432
433
|
* @const
|
|
433
434
|
*/
|
|
434
|
-
event: "event"
|
|
435
|
+
"event": "event"
|
|
435
436
|
};
|
|
436
437
|
|
|
437
438
|
/**
|
|
@@ -439,37 +440,37 @@ CreateMonitor["SourceTypeEnum"] = {
|
|
|
439
440
|
* @enum {String}
|
|
440
441
|
* @readonly
|
|
441
442
|
*/
|
|
442
|
-
CreateMonitor[
|
|
443
|
+
CreateMonitor['ConditionTypeEnum'] = {
|
|
443
444
|
/**
|
|
444
445
|
* value: "greater_than"
|
|
445
446
|
* @const
|
|
446
447
|
*/
|
|
447
|
-
greater_than: "greater_than",
|
|
448
|
+
"greater_than": "greater_than",
|
|
448
449
|
/**
|
|
449
450
|
* value: "greater_than_or_equal_to"
|
|
450
451
|
* @const
|
|
451
452
|
*/
|
|
452
|
-
greater_than_or_equal_to: "greater_than_or_equal_to",
|
|
453
|
+
"greater_than_or_equal_to": "greater_than_or_equal_to",
|
|
453
454
|
/**
|
|
454
455
|
* value: "less_than"
|
|
455
456
|
* @const
|
|
456
457
|
*/
|
|
457
|
-
less_than: "less_than",
|
|
458
|
+
"less_than": "less_than",
|
|
458
459
|
/**
|
|
459
460
|
* value: "less_than_or_equal_to"
|
|
460
461
|
* @const
|
|
461
462
|
*/
|
|
462
|
-
less_than_or_equal_to: "less_than_or_equal_to",
|
|
463
|
+
"less_than_or_equal_to": "less_than_or_equal_to",
|
|
463
464
|
/**
|
|
464
465
|
* value: "equal_to"
|
|
465
466
|
* @const
|
|
466
467
|
*/
|
|
467
|
-
equal_to: "equal_to",
|
|
468
|
+
"equal_to": "equal_to",
|
|
468
469
|
/**
|
|
469
470
|
* value: "not_equal_to"
|
|
470
471
|
* @const
|
|
471
472
|
*/
|
|
472
|
-
not_equal_to: "not_equal_to"
|
|
473
|
+
"not_equal_to": "not_equal_to"
|
|
473
474
|
};
|
|
474
475
|
|
|
475
476
|
/**
|
|
@@ -477,31 +478,31 @@ CreateMonitor["ConditionTypeEnum"] = {
|
|
|
477
478
|
* @enum {String}
|
|
478
479
|
* @readonly
|
|
479
480
|
*/
|
|
480
|
-
CreateMonitor[
|
|
481
|
+
CreateMonitor['AggregateFunctionEnum'] = {
|
|
481
482
|
/**
|
|
482
483
|
* value: "none"
|
|
483
484
|
* @const
|
|
484
485
|
*/
|
|
485
|
-
none: "none",
|
|
486
|
+
"none": "none",
|
|
486
487
|
/**
|
|
487
488
|
* value: "sum"
|
|
488
489
|
* @const
|
|
489
490
|
*/
|
|
490
|
-
sum: "sum",
|
|
491
|
+
"sum": "sum",
|
|
491
492
|
/**
|
|
492
493
|
* value: "average"
|
|
493
494
|
* @const
|
|
494
495
|
*/
|
|
495
|
-
average: "average",
|
|
496
|
+
"average": "average",
|
|
496
497
|
/**
|
|
497
498
|
* value: "max"
|
|
498
499
|
* @const
|
|
499
500
|
*/
|
|
500
|
-
max: "max",
|
|
501
|
+
"max": "max",
|
|
501
502
|
/**
|
|
502
503
|
* value: "min"
|
|
503
504
|
* @const
|
|
504
505
|
*/
|
|
505
|
-
min: "min"
|
|
506
|
+
"min": "min"
|
|
506
507
|
};
|
|
507
508
|
var _default = exports["default"] = CreateMonitor;
|