@blues-inc/notehub-js 1.0.37-beta.13 → 1.0.37-beta.15

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 (135) hide show
  1. package/README.md +19 -18
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -64
  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/UsageApi.js +135 -15
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +97 -97
  15. package/dist/model/Alert.js +91 -91
  16. package/dist/model/AlertDataInner.js +10 -10
  17. package/dist/model/AlertNotificationsInner.js +10 -10
  18. package/dist/model/Aws.js +86 -86
  19. package/dist/model/Azure.js +51 -51
  20. package/dist/model/BillingAccount.js +19 -19
  21. package/dist/model/Body.js +1 -1
  22. package/dist/model/CloneProjectRequest.js +25 -25
  23. package/dist/model/Contact.js +19 -19
  24. package/dist/model/CreateFleetRequest.js +1 -1
  25. package/dist/model/CreateMonitor.js +186 -186
  26. package/dist/model/CreateProductRequest.js +30 -30
  27. package/dist/model/CreateProjectRequest.js +20 -20
  28. package/dist/model/CreateUpdateRepository.js +18 -18
  29. package/dist/model/CurrentFirmware.js +12 -12
  30. package/dist/model/DFUEnv.js +1 -1
  31. package/dist/model/DFUState.js +60 -60
  32. package/dist/model/DataField.js +1 -1
  33. package/dist/model/DataSet.js +164 -0
  34. package/dist/model/DataSetField.js +14 -14
  35. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  36. package/dist/model/Device.js +134 -134
  37. package/dist/model/DeviceDfuHistory.js +15 -15
  38. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  39. package/dist/model/DeviceDfuStateMachine.js +14 -14
  40. package/dist/model/DeviceDfuStateMachineNode.js +27 -27
  41. package/dist/model/DeviceDfuStatus.js +15 -15
  42. package/dist/model/{DeviceDfuHistoryCurrent.js → DeviceDfuStatusCurrent.js} +52 -52
  43. package/dist/model/DeviceDfuStatusPage.js +1 -1
  44. package/dist/model/DeviceSession.js +278 -278
  45. package/dist/model/DeviceTowerInfo.js +15 -15
  46. package/dist/model/DeviceUsage.js +36 -36
  47. package/dist/model/DfuActionRequest.js +1 -1
  48. package/dist/model/EmailNotification.js +1 -1
  49. package/dist/model/EnvTreeJsonNode.js +76 -76
  50. package/dist/model/EnvVar.js +9 -9
  51. package/dist/model/EnvironmentVariables.js +1 -1
  52. package/dist/model/Error.js +38 -38
  53. package/dist/model/Event.js +340 -340
  54. package/dist/model/Firmware.js +45 -45
  55. package/dist/model/FirmwareInfo.js +71 -71
  56. package/dist/model/Fleet.js +31 -31
  57. package/dist/model/GetAlerts200Response.js +1 -1
  58. package/dist/model/GetBillingAccounts200Response.js +1 -1
  59. package/dist/model/{GetDeviceEnvironmentVariablesByPin200Response.js → GetDeviceEnvironmentVariables200Response.js} +30 -30
  60. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  61. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
  62. package/dist/model/GetDeviceLatest200Response.js +1 -1
  63. package/dist/model/GetDevicePublicKey200Response.js +18 -18
  64. package/dist/model/GetDeviceSessions200Response.js +14 -14
  65. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  66. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  67. package/dist/model/GetProjectDevices200Response.js +1 -1
  68. package/dist/model/GetProjectEvents200Response.js +1 -1
  69. package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
  70. package/dist/model/{GetDeviceFleets200Response.js → GetProjectFleets200Response.js} +20 -20
  71. package/dist/model/GetProjectMembers200Response.js +1 -1
  72. package/dist/model/GetProjectProducts200Response.js +1 -1
  73. package/dist/model/GetProjects200Response.js +1 -1
  74. package/dist/model/GetWebhooks200Response.js +1 -1
  75. package/dist/model/Google.js +35 -35
  76. package/dist/model/HandleNoteChanges200Response.js +10 -10
  77. package/dist/model/HandleNoteGet200Response.js +1 -1
  78. package/dist/model/HandleNoteSignal200Response.js +1 -1
  79. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  80. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  81. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  82. package/dist/model/Http.js +43 -43
  83. package/dist/model/{AwsFilter.js → HttpFilter.js} +32 -32
  84. package/dist/model/{AwsTransform.js → HttpTransform.js} +21 -21
  85. package/dist/model/Location.js +38 -38
  86. package/dist/model/Login200Response.js +1 -1
  87. package/dist/model/LoginRequest.js +12 -12
  88. package/dist/model/Monitor.js +135 -135
  89. package/dist/model/MonitorAlertRoutesInner.js +12 -12
  90. package/dist/model/Mqtt.js +91 -91
  91. package/dist/model/Note.js +1 -1
  92. package/dist/model/NotefileSchema.js +1 -1
  93. package/dist/model/NotehubRoute.js +30 -30
  94. package/dist/model/NotehubRouteSchema.js +80 -80
  95. package/dist/model/PersonalAccessToken.js +37 -37
  96. package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
  97. package/dist/model/PersonalAccessTokenInfo.js +13 -13
  98. package/dist/model/PersonalAccessTokenSecret.js +14 -14
  99. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  100. package/dist/model/Product.js +29 -29
  101. package/dist/model/Project.js +35 -35
  102. package/dist/model/ProjectMember.js +19 -19
  103. package/dist/model/Proxy.js +21 -21
  104. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  105. package/dist/model/QuestionDataResponseLineChart.js +204 -0
  106. package/dist/model/{OAuth2Error.js → QuestionDataResponseMap.js} +42 -65
  107. package/dist/model/Radresponder.js +28 -28
  108. package/dist/model/Repository.js +22 -22
  109. package/dist/model/RouteLog.js +28 -28
  110. package/dist/model/SchemaProperty.js +36 -34
  111. package/dist/model/SimUsage.js +20 -20
  112. package/dist/model/Slack.js +71 -71
  113. package/dist/model/SlackBearerNotification.js +14 -14
  114. package/dist/model/SlackWebHookNotification.js +14 -14
  115. package/dist/model/Snowflake.js +57 -57
  116. package/dist/model/{SlackTransform.js → SnowflakeTransform.js} +19 -19
  117. package/dist/model/Thingworx.js +36 -36
  118. package/dist/model/TowerLocation.js +58 -58
  119. package/dist/model/Twilio.js +46 -46
  120. package/dist/model/UpdateFleetRequest.js +14 -14
  121. package/dist/model/UploadMetadata.js +68 -68
  122. package/dist/model/{AnalyticsEventsData.js → UsageEventsData.js} +42 -28
  123. package/dist/model/{AnalyticsEventsResponse.js → UsageEventsResponse.js} +25 -25
  124. package/dist/model/{AnalyticsRouteLogsData.js → UsageRouteLogsData.js} +43 -29
  125. package/dist/model/{AnalyticsSessionsResponse.js → UsageRouteLogsResponse.js} +25 -25
  126. package/dist/model/{AnalyticsSessionsData.js → UsageSessionsData.js} +37 -33
  127. package/dist/model/{AnalyticsRouteLogsResponse.js → UsageSessionsResponse.js} +25 -25
  128. package/dist/model/UserDbRoute.js +26 -26
  129. package/dist/model/UserDfuStateMachine.js +14 -14
  130. package/dist/model/UserDfuStateMachineStatus.js +9 -9
  131. package/dist/model/UserFirmwareInfo.js +1 -1
  132. package/dist/model/WebhookSettings.js +1 -1
  133. package/package.json +1 -1
  134. package/dist/model/OAuth2TokenResponse.js +0 -154
  135. package/dist/model/UsageData.js +0 -136
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The Monitor model module.
32
32
  * @module model/Monitor
33
- * @version 1.0.37-beta.13
33
+ * @version 1.0.37-beta.15
34
34
  */
35
35
  var Monitor = /*#__PURE__*/function () {
36
36
  /**
@@ -63,59 +63,59 @@ var Monitor = /*#__PURE__*/function () {
63
63
  value: function constructFromObject(data, obj) {
64
64
  if (data) {
65
65
  obj = obj || new Monitor();
66
- if (data.hasOwnProperty('aggregate_function')) {
67
- obj['aggregate_function'] = _ApiClient["default"].convertToType(data['aggregate_function'], 'String');
68
- }
69
- if (data.hasOwnProperty('aggregate_window')) {
70
- obj['aggregate_window'] = _ApiClient["default"].convertToType(data['aggregate_window'], 'String');
71
- }
72
- if (data.hasOwnProperty('alert')) {
73
- obj['alert'] = _ApiClient["default"].convertToType(data['alert'], 'Boolean');
74
- }
75
- if (data.hasOwnProperty('alert_routes')) {
76
- obj['alert_routes'] = _ApiClient["default"].convertToType(data['alert_routes'], [_MonitorAlertRoutesInner["default"]]);
66
+ if (data.hasOwnProperty('uid')) {
67
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
77
68
  }
78
- if (data.hasOwnProperty('condition_type')) {
79
- obj['condition_type'] = _ApiClient["default"].convertToType(data['condition_type'], 'String');
69
+ if (data.hasOwnProperty('name')) {
70
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
80
71
  }
81
72
  if (data.hasOwnProperty('description')) {
82
73
  obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
83
74
  }
75
+ if (data.hasOwnProperty('source_type')) {
76
+ obj['source_type'] = _ApiClient["default"].convertToType(data['source_type'], 'String');
77
+ }
84
78
  if (data.hasOwnProperty('disabled')) {
85
79
  obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
86
80
  }
81
+ if (data.hasOwnProperty('alert')) {
82
+ obj['alert'] = _ApiClient["default"].convertToType(data['alert'], 'Boolean');
83
+ }
84
+ if (data.hasOwnProperty('notefile_filter')) {
85
+ obj['notefile_filter'] = _ApiClient["default"].convertToType(data['notefile_filter'], ['String']);
86
+ }
87
87
  if (data.hasOwnProperty('fleet_filter')) {
88
88
  obj['fleet_filter'] = _ApiClient["default"].convertToType(data['fleet_filter'], ['String']);
89
89
  }
90
- if (data.hasOwnProperty('last_routed_at')) {
91
- obj['last_routed_at'] = _ApiClient["default"].convertToType(data['last_routed_at'], 'String');
90
+ if (data.hasOwnProperty('source_selector')) {
91
+ obj['source_selector'] = _ApiClient["default"].convertToType(data['source_selector'], 'String');
92
92
  }
93
- if (data.hasOwnProperty('name')) {
94
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
93
+ if (data.hasOwnProperty('condition_type')) {
94
+ obj['condition_type'] = _ApiClient["default"].convertToType(data['condition_type'], 'String');
95
95
  }
96
- if (data.hasOwnProperty('notefile_filter')) {
97
- obj['notefile_filter'] = _ApiClient["default"].convertToType(data['notefile_filter'], ['String']);
96
+ if (data.hasOwnProperty('threshold')) {
97
+ obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
98
98
  }
99
- if (data.hasOwnProperty('per_device')) {
100
- obj['per_device'] = _ApiClient["default"].convertToType(data['per_device'], 'Boolean');
99
+ if (data.hasOwnProperty('alert_routes')) {
100
+ obj['alert_routes'] = _ApiClient["default"].convertToType(data['alert_routes'], [_MonitorAlertRoutesInner["default"]]);
101
101
  }
102
- if (data.hasOwnProperty('routing_cooldown_period')) {
103
- obj['routing_cooldown_period'] = _ApiClient["default"].convertToType(data['routing_cooldown_period'], 'String');
102
+ if (data.hasOwnProperty('last_routed_at')) {
103
+ obj['last_routed_at'] = _ApiClient["default"].convertToType(data['last_routed_at'], 'String');
104
104
  }
105
105
  if (data.hasOwnProperty('silenced')) {
106
106
  obj['silenced'] = _ApiClient["default"].convertToType(data['silenced'], 'Boolean');
107
107
  }
108
- if (data.hasOwnProperty('source_selector')) {
109
- obj['source_selector'] = _ApiClient["default"].convertToType(data['source_selector'], 'String');
108
+ if (data.hasOwnProperty('routing_cooldown_period')) {
109
+ obj['routing_cooldown_period'] = _ApiClient["default"].convertToType(data['routing_cooldown_period'], 'String');
110
110
  }
111
- if (data.hasOwnProperty('source_type')) {
112
- obj['source_type'] = _ApiClient["default"].convertToType(data['source_type'], 'String');
111
+ if (data.hasOwnProperty('aggregate_function')) {
112
+ obj['aggregate_function'] = _ApiClient["default"].convertToType(data['aggregate_function'], 'String');
113
113
  }
114
- if (data.hasOwnProperty('threshold')) {
115
- obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
114
+ if (data.hasOwnProperty('aggregate_window')) {
115
+ obj['aggregate_window'] = _ApiClient["default"].convertToType(data['aggregate_window'], 'String');
116
116
  }
117
- if (data.hasOwnProperty('uid')) {
118
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
117
+ if (data.hasOwnProperty('per_device')) {
118
+ obj['per_device'] = _ApiClient["default"].convertToType(data['per_device'], 'Boolean');
119
119
  }
120
120
  } else if (data === null) {
121
121
  return null;
@@ -132,12 +132,36 @@ var Monitor = /*#__PURE__*/function () {
132
132
  key: "validateJSON",
133
133
  value: function validateJSON(data) {
134
134
  // ensure the json data is a string
135
- if (data['aggregate_function'] && !(typeof data['aggregate_function'] === 'string' || data['aggregate_function'] instanceof String)) {
136
- throw new Error("Expected the field `aggregate_function` to be a primitive type in the JSON string but got " + data['aggregate_function']);
135
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
136
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
137
137
  }
138
138
  // ensure the json data is a string
139
- if (data['aggregate_window'] && !(typeof data['aggregate_window'] === 'string' || data['aggregate_window'] instanceof String)) {
140
- throw new Error("Expected the field `aggregate_window` to be a primitive type in the JSON string but got " + data['aggregate_window']);
139
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
140
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
141
+ }
142
+ // ensure the json data is a string
143
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
144
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
145
+ }
146
+ // ensure the json data is a string
147
+ if (data['source_type'] && !(typeof data['source_type'] === 'string' || data['source_type'] instanceof String)) {
148
+ throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data['source_type']);
149
+ }
150
+ // ensure the json data is an array
151
+ if (!Array.isArray(data['notefile_filter'])) {
152
+ throw new Error("Expected the field `notefile_filter` to be an array in the JSON data but got " + data['notefile_filter']);
153
+ }
154
+ // ensure the json data is an array
155
+ if (!Array.isArray(data['fleet_filter'])) {
156
+ throw new Error("Expected the field `fleet_filter` to be an array in the JSON data but got " + data['fleet_filter']);
157
+ }
158
+ // ensure the json data is a string
159
+ if (data['source_selector'] && !(typeof data['source_selector'] === 'string' || data['source_selector'] instanceof String)) {
160
+ throw new Error("Expected the field `source_selector` to be a primitive type in the JSON string but got " + data['source_selector']);
161
+ }
162
+ // ensure the json data is a string
163
+ if (data['condition_type'] && !(typeof data['condition_type'] === 'string' || data['condition_type'] instanceof String)) {
164
+ throw new Error("Expected the field `condition_type` to be a primitive type in the JSON string but got " + data['condition_type']);
141
165
  }
142
166
  if (data['alert_routes']) {
143
167
  // data not null
@@ -161,88 +185,62 @@ var Monitor = /*#__PURE__*/function () {
161
185
  ;
162
186
  }
163
187
  // ensure the json data is a string
164
- if (data['condition_type'] && !(typeof data['condition_type'] === 'string' || data['condition_type'] instanceof String)) {
165
- throw new Error("Expected the field `condition_type` to be a primitive type in the JSON string but got " + data['condition_type']);
166
- }
167
- // ensure the json data is a string
168
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
169
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
170
- }
171
- // ensure the json data is an array
172
- if (!Array.isArray(data['fleet_filter'])) {
173
- throw new Error("Expected the field `fleet_filter` to be an array in the JSON data but got " + data['fleet_filter']);
174
- }
175
- // ensure the json data is a string
176
188
  if (data['last_routed_at'] && !(typeof data['last_routed_at'] === 'string' || data['last_routed_at'] instanceof String)) {
177
189
  throw new Error("Expected the field `last_routed_at` to be a primitive type in the JSON string but got " + data['last_routed_at']);
178
190
  }
179
191
  // ensure the json data is a string
180
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
181
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
182
- }
183
- // ensure the json data is an array
184
- if (!Array.isArray(data['notefile_filter'])) {
185
- throw new Error("Expected the field `notefile_filter` to be an array in the JSON data but got " + data['notefile_filter']);
186
- }
187
- // ensure the json data is a string
188
192
  if (data['routing_cooldown_period'] && !(typeof data['routing_cooldown_period'] === 'string' || data['routing_cooldown_period'] instanceof String)) {
189
193
  throw new Error("Expected the field `routing_cooldown_period` to be a primitive type in the JSON string but got " + data['routing_cooldown_period']);
190
194
  }
191
195
  // ensure the json data is a string
192
- if (data['source_selector'] && !(typeof data['source_selector'] === 'string' || data['source_selector'] instanceof String)) {
193
- throw new Error("Expected the field `source_selector` to be a primitive type in the JSON string but got " + data['source_selector']);
194
- }
195
- // ensure the json data is a string
196
- if (data['source_type'] && !(typeof data['source_type'] === 'string' || data['source_type'] instanceof String)) {
197
- throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data['source_type']);
196
+ if (data['aggregate_function'] && !(typeof data['aggregate_function'] === 'string' || data['aggregate_function'] instanceof String)) {
197
+ throw new Error("Expected the field `aggregate_function` to be a primitive type in the JSON string but got " + data['aggregate_function']);
198
198
  }
199
199
  // ensure the json data is a string
200
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
201
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
200
+ if (data['aggregate_window'] && !(typeof data['aggregate_window'] === 'string' || data['aggregate_window'] instanceof String)) {
201
+ throw new Error("Expected the field `aggregate_window` to be a primitive type in the JSON string but got " + data['aggregate_window']);
202
202
  }
203
203
  return true;
204
204
  }
205
205
  }]);
206
206
  }();
207
207
  /**
208
- * Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
209
- * @member {module:model/Monitor.AggregateFunctionEnum} aggregate_function
208
+ * @member {String} uid
210
209
  */
211
- Monitor.prototype['aggregate_function'] = undefined;
210
+ Monitor.prototype['uid'] = undefined;
212
211
 
213
212
  /**
214
- * The time window to aggregate the selected values. It follows the format of a number followed by a time unit
215
- * @member {String} aggregate_window
213
+ * @member {String} name
216
214
  */
217
- Monitor.prototype['aggregate_window'] = undefined;
215
+ Monitor.prototype['name'] = undefined;
218
216
 
219
217
  /**
220
- * If true, the monitor is in alert state.
221
- * @member {Boolean} alert
218
+ * @member {String} description
222
219
  */
223
- Monitor.prototype['alert'] = undefined;
220
+ Monitor.prototype['description'] = undefined;
224
221
 
225
222
  /**
226
- * @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
223
+ * The type of source to monitor. Currently only \"event\" is supported.
224
+ * @member {module:model/Monitor.SourceTypeEnum} source_type
227
225
  */
228
- Monitor.prototype['alert_routes'] = undefined;
226
+ Monitor.prototype['source_type'] = undefined;
229
227
 
230
228
  /**
231
- * 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]
232
- * @member {module:model/Monitor.ConditionTypeEnum} condition_type
229
+ * If true, the monitor will not be evaluated.
230
+ * @member {Boolean} disabled
233
231
  */
234
- Monitor.prototype['condition_type'] = undefined;
232
+ Monitor.prototype['disabled'] = undefined;
235
233
 
236
234
  /**
237
- * @member {String} description
235
+ * If true, the monitor is in alert state.
236
+ * @member {Boolean} alert
238
237
  */
239
- Monitor.prototype['description'] = undefined;
238
+ Monitor.prototype['alert'] = undefined;
240
239
 
241
240
  /**
242
- * If true, the monitor will not be evaluated.
243
- * @member {Boolean} disabled
241
+ * @member {Array.<String>} notefile_filter
244
242
  */
245
- Monitor.prototype['disabled'] = undefined;
243
+ Monitor.prototype['notefile_filter'] = undefined;
246
244
 
247
245
  /**
248
246
  * @member {Array.<String>} fleet_filter
@@ -250,32 +248,33 @@ Monitor.prototype['disabled'] = undefined;
250
248
  Monitor.prototype['fleet_filter'] = undefined;
251
249
 
252
250
  /**
253
- * The last time the monitor was evaluated and routed.
254
- * @member {String} last_routed_at
251
+ * A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value.
252
+ * @member {String} source_selector
255
253
  */
256
- Monitor.prototype['last_routed_at'] = undefined;
254
+ Monitor.prototype['source_selector'] = undefined;
257
255
 
258
256
  /**
259
- * @member {String} name
257
+ * 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]
258
+ * @member {module:model/Monitor.ConditionTypeEnum} condition_type
260
259
  */
261
- Monitor.prototype['name'] = undefined;
260
+ Monitor.prototype['condition_type'] = undefined;
262
261
 
263
262
  /**
264
- * @member {Array.<String>} notefile_filter
263
+ * The type of condition to apply to the value selected by the source_selector
264
+ * @member {Number} threshold
265
265
  */
266
- Monitor.prototype['notefile_filter'] = undefined;
266
+ Monitor.prototype['threshold'] = undefined;
267
267
 
268
268
  /**
269
- * 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.
270
- * @member {Boolean} per_device
269
+ * @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
271
270
  */
272
- Monitor.prototype['per_device'] = undefined;
271
+ Monitor.prototype['alert_routes'] = undefined;
273
272
 
274
273
  /**
275
- * 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.
276
- * @member {String} routing_cooldown_period
274
+ * The last time the monitor was evaluated and routed.
275
+ * @member {String} last_routed_at
277
276
  */
278
- Monitor.prototype['routing_cooldown_period'] = undefined;
277
+ Monitor.prototype['last_routed_at'] = undefined;
279
278
 
280
279
  /**
281
280
  * If true, alerts will be created, but no notifications will be sent.
@@ -284,59 +283,40 @@ Monitor.prototype['routing_cooldown_period'] = undefined;
284
283
  Monitor.prototype['silenced'] = undefined;
285
284
 
286
285
  /**
287
- * A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value.
288
- * @member {String} source_selector
286
+ * 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.
287
+ * @member {String} routing_cooldown_period
289
288
  */
290
- Monitor.prototype['source_selector'] = undefined;
289
+ Monitor.prototype['routing_cooldown_period'] = undefined;
291
290
 
292
291
  /**
293
- * The type of source to monitor. Currently only \"event\" is supported.
294
- * @member {module:model/Monitor.SourceTypeEnum} source_type
292
+ * Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
293
+ * @member {module:model/Monitor.AggregateFunctionEnum} aggregate_function
295
294
  */
296
- Monitor.prototype['source_type'] = undefined;
295
+ Monitor.prototype['aggregate_function'] = undefined;
297
296
 
298
297
  /**
299
- * The type of condition to apply to the value selected by the source_selector
300
- * @member {Number} threshold
298
+ * The time window to aggregate the selected values. It follows the format of a number followed by a time unit
299
+ * @member {String} aggregate_window
301
300
  */
302
- Monitor.prototype['threshold'] = undefined;
301
+ Monitor.prototype['aggregate_window'] = undefined;
303
302
 
304
303
  /**
305
- * @member {String} uid
304
+ * 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.
305
+ * @member {Boolean} per_device
306
306
  */
307
- Monitor.prototype['uid'] = undefined;
307
+ Monitor.prototype['per_device'] = undefined;
308
308
 
309
309
  /**
310
- * Allowed values for the <code>aggregate_function</code> property.
310
+ * Allowed values for the <code>source_type</code> property.
311
311
  * @enum {String}
312
312
  * @readonly
313
313
  */
314
- Monitor['AggregateFunctionEnum'] = {
315
- /**
316
- * value: "none"
317
- * @const
318
- */
319
- "none": "none",
320
- /**
321
- * value: "sum"
322
- * @const
323
- */
324
- "sum": "sum",
325
- /**
326
- * value: "average"
327
- * @const
328
- */
329
- "average": "average",
330
- /**
331
- * value: "max"
332
- * @const
333
- */
334
- "max": "max",
314
+ Monitor['SourceTypeEnum'] = {
335
315
  /**
336
- * value: "min"
316
+ * value: "event"
337
317
  * @const
338
318
  */
339
- "min": "min"
319
+ "event": "event"
340
320
  };
341
321
 
342
322
  /**
@@ -378,15 +358,35 @@ Monitor['ConditionTypeEnum'] = {
378
358
  };
379
359
 
380
360
  /**
381
- * Allowed values for the <code>source_type</code> property.
361
+ * Allowed values for the <code>aggregate_function</code> property.
382
362
  * @enum {String}
383
363
  * @readonly
384
364
  */
385
- Monitor['SourceTypeEnum'] = {
365
+ Monitor['AggregateFunctionEnum'] = {
386
366
  /**
387
- * value: "event"
367
+ * value: "none"
388
368
  * @const
389
369
  */
390
- "event": "event"
370
+ "none": "none",
371
+ /**
372
+ * value: "sum"
373
+ * @const
374
+ */
375
+ "sum": "sum",
376
+ /**
377
+ * value: "average"
378
+ * @const
379
+ */
380
+ "average": "average",
381
+ /**
382
+ * value: "max"
383
+ * @const
384
+ */
385
+ "max": "max",
386
+ /**
387
+ * value: "min"
388
+ * @const
389
+ */
390
+ "min": "min"
391
391
  };
392
392
  var _default = exports["default"] = Monitor;
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The MonitorAlertRoutesInner model module.
33
33
  * @module model/MonitorAlertRoutesInner
34
- * @version 1.0.37-beta.13
34
+ * @version 1.0.37-beta.15
35
35
  */
36
36
  var MonitorAlertRoutesInner = /*#__PURE__*/function () {
37
37
  /**
@@ -145,8 +145,8 @@ var MonitorAlertRoutesInner = /*#__PURE__*/function () {
145
145
  }]);
146
146
  }();
147
147
  /**
148
- * text or blocks
149
- * @member {module:model/MonitorAlertRoutesInner.MessageTypeEnum} message_type
148
+ * The URL of the Slack webhook.
149
+ * @member {String} url
150
150
  */
151
151
  _MonitorAlertRoutesInner = MonitorAlertRoutesInner;
152
152
  /**
@@ -157,6 +157,12 @@ _MonitorAlertRoutesInner = MonitorAlertRoutesInner;
157
157
  _defineProperty(MonitorAlertRoutesInner, "fromJSON", function (json_string) {
158
158
  return _MonitorAlertRoutesInner.constructFromObject(JSON.parse(json_string));
159
159
  });
160
+ MonitorAlertRoutesInner.prototype['url'] = undefined;
161
+
162
+ /**
163
+ * text or blocks
164
+ * @member {module:model/MonitorAlertRoutesInner.MessageTypeEnum} message_type
165
+ */
160
166
  MonitorAlertRoutesInner.prototype['message_type'] = undefined;
161
167
 
162
168
  /**
@@ -166,10 +172,10 @@ MonitorAlertRoutesInner.prototype['message_type'] = undefined;
166
172
  MonitorAlertRoutesInner.prototype['text'] = undefined;
167
173
 
168
174
  /**
169
- * The URL of the Slack webhook.
170
- * @member {String} url
175
+ * The bearer token for the Slack app.
176
+ * @member {String} token
171
177
  */
172
- MonitorAlertRoutesInner.prototype['url'] = undefined;
178
+ MonitorAlertRoutesInner.prototype['token'] = undefined;
173
179
 
174
180
  /**
175
181
  * The channel to send the message to.
@@ -177,12 +183,6 @@ MonitorAlertRoutesInner.prototype['url'] = undefined;
177
183
  */
178
184
  MonitorAlertRoutesInner.prototype['channel'] = undefined;
179
185
 
180
- /**
181
- * The bearer token for the Slack app.
182
- * @member {String} token
183
- */
184
- MonitorAlertRoutesInner.prototype['token'] = undefined;
185
-
186
186
  /**
187
187
  * Email Address
188
188
  * @member {String} email