@blues-inc/notehub-js 6.7.0-beta.71 → 6.7.0-beta.73
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 +111 -112
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +7 -5
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/DescriptionApi.js +33 -49
- package/dist/api/DeviceApi.js +115 -177
- package/dist/api/EventApi.js +45 -51
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +27 -17
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/ProjectApi.js +149 -237
- package/dist/api/RouteApi.js +35 -47
- package/dist/api/SkillsApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +45 -67
- package/dist/index.js +0 -7
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +11 -6
- package/dist/model/AlertDataInner.js +9 -4
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -2
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +2 -3
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +3 -4
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +37 -25
- package/dist/model/CreateProductRequest.js +6 -7
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +5 -5
- package/dist/model/CreateUpdateRepository.js +1 -2
- package/dist/model/CreatedRepository.js +5 -5
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +4 -4
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/DescriptionRecord.js +6 -6
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +8 -27
- package/dist/model/DeviceDfuHistory.js +1 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -2
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +2 -2
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -6
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +2 -2
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +10 -11
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetApiUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
- package/dist/model/GetDevicePlans200Response.js +1 -2
- package/dist/model/GetDevicePublicKey200Response.js +3 -5
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -3
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetOrganization200Response.js +1 -1
- package/dist/model/GetOrganization200ResponsePlan.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200Response.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200ResponseDataInner.js +1 -1
- package/dist/model/GetOrganizations200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +4 -7
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +1 -1
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +1 -1
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +7 -13
- package/dist/model/Monitor.js +18 -12
- package/dist/model/MonitorAlertRoutesInner.js +4 -4
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -2
- package/dist/model/NotefileSchema.js +3 -5
- package/dist/model/NotehubRoute.js +3 -7
- package/dist/model/NotehubRouteSummary.js +1 -6
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +1 -1
- package/dist/model/Product.js +4 -8
- package/dist/model/Project.js +4 -7
- package/dist/model/ProjectMember.js +4 -5
- package/dist/model/ProjectSecret.js +7 -7
- package/dist/model/ProvisionDeviceRequest.js +5 -5
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +3 -3
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +9 -9
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +4 -6
- package/dist/model/SignalDevice200Response.js +2 -2
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +1 -1
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +1 -1
- package/dist/model/SkillSummary.js +1 -1
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.js +1 -1
- package/dist/model/SlackBearerNotification.js +3 -3
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +3 -3
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +6 -7
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +3 -3
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +4 -4
- package/package.json +1 -1
- package/dist/model/RepositoryRecord.js +0 -119
package/dist/api/EventApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* Event service.
|
|
31
31
|
* @module api/EventApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.73
|
|
33
33
|
*/
|
|
34
34
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -45,28 +45,27 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
* List a project's events, filtered by device, notefile, date, fleet, session and more. Use `cursor` to read events in the order Notehub stored them and to poll for new ones. Set `format=csv` for CSV. For one fleet, use `GetFleetEvents`. Paginated. Returns 403 if the organization is suspended, and 500 if the query times out; narrow the filters and retry.
|
|
48
|
+
* Get Events of a Project
|
|
50
49
|
* @param {String} projectOrProductUID
|
|
51
50
|
* @param {Object} opts Optional parameters
|
|
52
51
|
* @param {Number} opts.pageSize (default to 1000)
|
|
53
52
|
* @param {Number} opts.pageNum (default to 1)
|
|
54
53
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
55
54
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
56
|
-
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly.
|
|
55
|
+
* @param {Array.<String>} opts.sensorUID A SensorUID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
57
56
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
58
57
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
59
58
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
60
59
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
61
|
-
* @param {module:model/String} opts.dateType Which
|
|
62
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
63
|
-
* @param {String} opts.files
|
|
64
|
-
* @param {module:model/String} opts.format Response format
|
|
65
|
-
* @param {Array.<String>} opts.serialNumber
|
|
60
|
+
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
61
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
62
|
+
* @param {String} opts.files
|
|
63
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
64
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
66
65
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
67
|
-
* @param {Array.<String>} opts.sessionUID
|
|
68
|
-
* @param {Array.<String>} opts.eventUID
|
|
69
|
-
* @param {String} opts.selectFields Comma-separated
|
|
66
|
+
* @param {Array.<String>} opts.sessionUID Filter by SessionUID
|
|
67
|
+
* @param {Array.<String>} opts.eventUID Filter by EventUID
|
|
68
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
70
69
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEvents200Response} and HTTP response
|
|
71
70
|
*/
|
|
72
71
|
return _createClass(EventApi, [{
|
|
@@ -111,28 +110,27 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
/**
|
|
114
|
-
*
|
|
115
|
-
* List a project's events, filtered by device, notefile, date, fleet, session and more. Use `cursor` to read events in the order Notehub stored them and to poll for new ones. Set `format=csv` for CSV. For one fleet, use `GetFleetEvents`. Paginated. Returns 403 if the organization is suspended, and 500 if the query times out; narrow the filters and retry.
|
|
113
|
+
* Get Events of a Project
|
|
116
114
|
* @param {String} projectOrProductUID
|
|
117
115
|
* @param {Object} opts Optional parameters
|
|
118
116
|
* @param {Number} opts.pageSize (default to 1000)
|
|
119
117
|
* @param {Number} opts.pageNum (default to 1)
|
|
120
118
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
121
119
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
122
|
-
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly.
|
|
120
|
+
* @param {Array.<String>} opts.sensorUID A SensorUID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
123
121
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
124
122
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
125
123
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
126
124
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
127
|
-
* @param {module:model/String} opts.dateType Which
|
|
128
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
129
|
-
* @param {String} opts.files
|
|
130
|
-
* @param {module:model/String} opts.format Response format
|
|
131
|
-
* @param {Array.<String>} opts.serialNumber
|
|
125
|
+
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
126
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
127
|
+
* @param {String} opts.files
|
|
128
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
129
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
132
130
|
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
133
|
-
* @param {Array.<String>} opts.sessionUID
|
|
134
|
-
* @param {Array.<String>} opts.eventUID
|
|
135
|
-
* @param {String} opts.selectFields Comma-separated
|
|
131
|
+
* @param {Array.<String>} opts.sessionUID Filter by SessionUID
|
|
132
|
+
* @param {Array.<String>} opts.eventUID Filter by EventUID
|
|
133
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
136
134
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEvents200Response}
|
|
137
135
|
*/
|
|
138
136
|
}, {
|
|
@@ -144,8 +142,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
144
142
|
}
|
|
145
143
|
|
|
146
144
|
/**
|
|
147
|
-
*
|
|
148
|
-
* List the events from one fleet, with the same filters, `cursor` and CSV output as `GetEvents`. Paginated. Returns 403 if the organization is suspended, and 500 if the query times out; narrow the filters and retry.
|
|
145
|
+
* Get Events of a Fleet
|
|
149
146
|
* @param {String} projectOrProductUID
|
|
150
147
|
* @param {String} fleetUID
|
|
151
148
|
* @param {Object} opts Optional parameters
|
|
@@ -153,19 +150,19 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
153
150
|
* @param {Number} opts.pageNum (default to 1)
|
|
154
151
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
155
152
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
156
|
-
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly.
|
|
153
|
+
* @param {Array.<String>} opts.sensorUID A SensorUID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
157
154
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
158
155
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
159
156
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
160
157
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
161
|
-
* @param {module:model/String} opts.dateType Which
|
|
162
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
163
|
-
* @param {String} opts.files
|
|
164
|
-
* @param {module:model/String} opts.format Response format
|
|
165
|
-
* @param {Array.<String>} opts.serialNumber
|
|
166
|
-
* @param {Array.<String>} opts.sessionUID
|
|
167
|
-
* @param {Array.<String>} opts.eventUID
|
|
168
|
-
* @param {String} opts.selectFields Comma-separated
|
|
158
|
+
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
159
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
160
|
+
* @param {String} opts.files
|
|
161
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
162
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
163
|
+
* @param {Array.<String>} opts.sessionUID Filter by SessionUID
|
|
164
|
+
* @param {Array.<String>} opts.eventUID Filter by EventUID
|
|
165
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
169
166
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEvents200Response} and HTTP response
|
|
170
167
|
*/
|
|
171
168
|
}, {
|
|
@@ -214,8 +211,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
214
211
|
}
|
|
215
212
|
|
|
216
213
|
/**
|
|
217
|
-
*
|
|
218
|
-
* List the events from one fleet, with the same filters, `cursor` and CSV output as `GetEvents`. Paginated. Returns 403 if the organization is suspended, and 500 if the query times out; narrow the filters and retry.
|
|
214
|
+
* Get Events of a Fleet
|
|
219
215
|
* @param {String} projectOrProductUID
|
|
220
216
|
* @param {String} fleetUID
|
|
221
217
|
* @param {Object} opts Optional parameters
|
|
@@ -223,19 +219,19 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
223
219
|
* @param {Number} opts.pageNum (default to 1)
|
|
224
220
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
225
221
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
226
|
-
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly.
|
|
222
|
+
* @param {Array.<String>} opts.sensorUID A SensorUID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
227
223
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
228
224
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
229
225
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
230
226
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
231
|
-
* @param {module:model/String} opts.dateType Which
|
|
232
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
233
|
-
* @param {String} opts.files
|
|
234
|
-
* @param {module:model/String} opts.format Response format
|
|
235
|
-
* @param {Array.<String>} opts.serialNumber
|
|
236
|
-
* @param {Array.<String>} opts.sessionUID
|
|
237
|
-
* @param {Array.<String>} opts.eventUID
|
|
238
|
-
* @param {String} opts.selectFields Comma-separated
|
|
227
|
+
* @param {module:model/String} opts.dateType Which date to filter on, either 'captured' or 'uploaded'. This will apply to the startDate and endDate parameters (default to 'captured')
|
|
228
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
229
|
+
* @param {String} opts.files
|
|
230
|
+
* @param {module:model/String} opts.format Response format (JSON or CSV) (default to 'json')
|
|
231
|
+
* @param {Array.<String>} opts.serialNumber Filter by Serial Number
|
|
232
|
+
* @param {Array.<String>} opts.sessionUID Filter by SessionUID
|
|
233
|
+
* @param {Array.<String>} opts.eventUID Filter by EventUID
|
|
234
|
+
* @param {String} opts.selectFields Comma-separated list of fields to select from JSON payload (e.g., \"field1,field2.subfield,field3\"), this will reflect the columns in the CSV output.
|
|
239
235
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEvents200Response}
|
|
240
236
|
*/
|
|
241
237
|
}, {
|
|
@@ -247,10 +243,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
247
243
|
}
|
|
248
244
|
|
|
249
245
|
/**
|
|
250
|
-
* Get
|
|
251
|
-
* Get the log of every attempt to send one event to each route, with the response status, body and duration. For a route's logs across events, use `GetRouteLogsByRoute`. Returns 404 if the event doesn't exist.
|
|
246
|
+
* Get Route Logs by EventUID
|
|
252
247
|
* @param {String} projectOrProductUID
|
|
253
|
-
* @param {String} eventUID
|
|
248
|
+
* @param {String} eventUID
|
|
254
249
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
|
|
255
250
|
*/
|
|
256
251
|
}, {
|
|
@@ -280,10 +275,9 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
280
275
|
}
|
|
281
276
|
|
|
282
277
|
/**
|
|
283
|
-
* Get
|
|
284
|
-
* Get the log of every attempt to send one event to each route, with the response status, body and duration. For a route's logs across events, use `GetRouteLogsByRoute`. Returns 404 if the event doesn't exist.
|
|
278
|
+
* Get Route Logs by EventUID
|
|
285
279
|
* @param {String} projectOrProductUID
|
|
286
|
-
* @param {String} eventUID
|
|
280
|
+
* @param {String} eventUID
|
|
287
281
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
288
282
|
*/
|
|
289
283
|
}, {
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.73
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/JobsApi.js
CHANGED
|
@@ -36,7 +36,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
36
36
|
/**
|
|
37
37
|
* Jobs service.
|
|
38
38
|
* @module api/JobsApi
|
|
39
|
-
* @version 6.7.0-beta.
|
|
39
|
+
* @version 6.7.0-beta.73
|
|
40
40
|
*/
|
|
41
41
|
var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
42
42
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.73
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -45,7 +45,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Create a
|
|
48
|
+
* Create a monitor
|
|
49
|
+
* Create a monitor that raises an alert and notifies email or Slack when its condition holds. It can watch an event value (`event`, the default), devices going quiet (`heartbeat`), or data usage (`usage`). Requires the Owner or Developer role. Returns 403 if the project's plan doesn't allow the monitor, and 400 for invalid settings.
|
|
49
50
|
* @param {String} projectOrProductUID
|
|
50
51
|
* @param {module:model/CreateMonitor} createMonitor Body or payload of monitor to be created
|
|
51
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
@@ -76,7 +77,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
/**
|
|
79
|
-
* Create a
|
|
80
|
+
* Create a monitor
|
|
81
|
+
* Create a monitor that raises an alert and notifies email or Slack when its condition holds. It can watch an event value (`event`, the default), devices going quiet (`heartbeat`), or data usage (`usage`). Requires the Owner or Developer role. Returns 403 if the project's plan doesn't allow the monitor, and 400 for invalid settings.
|
|
80
82
|
* @param {String} projectOrProductUID
|
|
81
83
|
* @param {module:model/CreateMonitor} createMonitor Body or payload of monitor to be created
|
|
82
84
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
@@ -90,9 +92,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
/**
|
|
93
|
-
* Delete
|
|
95
|
+
* Delete a monitor
|
|
96
|
+
* Delete a monitor so it stops raising alerts. Returns an empty monitor object. To pause it instead, set `disabled` with `UpdateMonitor`. Requires the Owner or Developer role. Returns 404 if the monitor never existed; deleting it again succeeds.
|
|
94
97
|
* @param {String} projectOrProductUID
|
|
95
|
-
* @param {String} monitorUID
|
|
98
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
96
99
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
97
100
|
*/
|
|
98
101
|
}, {
|
|
@@ -122,9 +125,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
/**
|
|
125
|
-
* Delete
|
|
128
|
+
* Delete a monitor
|
|
129
|
+
* Delete a monitor so it stops raising alerts. Returns an empty monitor object. To pause it instead, set `disabled` with `UpdateMonitor`. Requires the Owner or Developer role. Returns 404 if the monitor never existed; deleting it again succeeds.
|
|
126
130
|
* @param {String} projectOrProductUID
|
|
127
|
-
* @param {String} monitorUID
|
|
131
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
128
132
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
129
133
|
*/
|
|
130
134
|
}, {
|
|
@@ -136,9 +140,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
136
140
|
}
|
|
137
141
|
|
|
138
142
|
/**
|
|
139
|
-
* Get
|
|
143
|
+
* Get a monitor
|
|
144
|
+
* Get one monitor's settings and whether it's in alert. Slack credentials in `alert_routes` come back as `(omitted)`. Returns 404 if the monitor never existed; a deleted monitor is still returned.
|
|
140
145
|
* @param {String} projectOrProductUID
|
|
141
|
-
* @param {String} monitorUID
|
|
146
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
142
147
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
143
148
|
*/
|
|
144
149
|
}, {
|
|
@@ -168,9 +173,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
168
173
|
}
|
|
169
174
|
|
|
170
175
|
/**
|
|
171
|
-
* Get
|
|
176
|
+
* Get a monitor
|
|
177
|
+
* Get one monitor's settings and whether it's in alert. Slack credentials in `alert_routes` come back as `(omitted)`. Returns 404 if the monitor never existed; a deleted monitor is still returned.
|
|
172
178
|
* @param {String} projectOrProductUID
|
|
173
|
-
* @param {String} monitorUID
|
|
179
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
174
180
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
175
181
|
*/
|
|
176
182
|
}, {
|
|
@@ -182,7 +188,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
/**
|
|
185
|
-
*
|
|
191
|
+
* List monitors
|
|
192
|
+
* List a project's monitors with their settings and whether each is in alert. For the alerts they've raised, use `GetAlerts`.
|
|
186
193
|
* @param {String} projectOrProductUID
|
|
187
194
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Monitor>} and HTTP response
|
|
188
195
|
*/
|
|
@@ -208,7 +215,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
208
215
|
}
|
|
209
216
|
|
|
210
217
|
/**
|
|
211
|
-
*
|
|
218
|
+
* List monitors
|
|
219
|
+
* List a project's monitors with their settings and whether each is in alert. For the alerts they've raised, use `GetAlerts`.
|
|
212
220
|
* @param {String} projectOrProductUID
|
|
213
221
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Monitor>}
|
|
214
222
|
*/
|
|
@@ -221,9 +229,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
221
229
|
}
|
|
222
230
|
|
|
223
231
|
/**
|
|
224
|
-
* Update
|
|
232
|
+
* Update a monitor
|
|
233
|
+
* Replace a monitor's settings with the whole monitor, as `GetMonitor` returns it. Omitted fields are cleared or reset, except `source_type`, `fleet_filter`, `notefile_filter`, `condition_type`, `aggregate_window` and `alert_routes`. Slack credentials left as `(omitted)` are kept. Requires the Owner or Developer role. Returns 403 if the plan doesn't allow a new `source_type`.
|
|
225
234
|
* @param {String} projectOrProductUID
|
|
226
|
-
* @param {String} monitorUID
|
|
235
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
227
236
|
* @param {module:model/Monitor} monitor Body or payload of monitor to be created
|
|
228
237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
229
238
|
*/
|
|
@@ -258,9 +267,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
258
267
|
}
|
|
259
268
|
|
|
260
269
|
/**
|
|
261
|
-
* Update
|
|
270
|
+
* Update a monitor
|
|
271
|
+
* Replace a monitor's settings with the whole monitor, as `GetMonitor` returns it. Omitted fields are cleared or reset, except `source_type`, `fleet_filter`, `notefile_filter`, `condition_type`, `aggregate_window` and `alert_routes`. Slack credentials left as `(omitted)` are kept. Requires the Owner or Developer role. Returns 403 if the plan doesn't allow a new `source_type`.
|
|
262
272
|
* @param {String} projectOrProductUID
|
|
263
|
-
* @param {String} monitorUID
|
|
273
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
264
274
|
* @param {module:model/Monitor} monitor Body or payload of monitor to be created
|
|
265
275
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
266
276
|
*/
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* Organization service.
|
|
32
32
|
* @module api/OrganizationApi
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.73
|
|
34
34
|
*/
|
|
35
35
|
var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|