@blues-inc/notehub-js 1.0.37-beta.7 → 1.0.37-beta.8

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