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