@blues-inc/notehub-js 7.0.0-beta.1 → 7.0.0-beta.11
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 +9 -5
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +9 -9
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/DescriptionApi.js +9 -9
- package/dist/api/DeviceApi.js +195 -195
- package/dist/api/EventApi.js +33 -33
- package/dist/api/ExternalDevicesApi.js +13 -13
- package/dist/api/JobsApi.js +19 -19
- package/dist/api/MonitorApi.js +11 -11
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/ProjectApi.js +185 -185
- package/dist/api/RouteApi.js +25 -25
- package/dist/api/SkillsApi.js +9 -9
- package/dist/api/UsageApi.js +17 -17
- package/dist/api/WebhookApi.js +29 -29
- package/dist/index.js +28 -0
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -3
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +2 -14
- package/dist/model/AzureRoute.js +1 -8
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +1 -2
- package/dist/model/BillingAccount.js +3 -5
- package/dist/model/BlynkRoute.js +1 -6
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -5
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateProjectSecretRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CreatedRepository.js +1 -27
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -2
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +1 -2
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -7
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +2 -3
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -3
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -3
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +1 -33
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -7
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +6 -17
- package/dist/model/EnvVar.js +1 -5
- package/dist/model/EnvironmentVariables.js +2 -3
- package/dist/model/Error.js +1 -4
- package/dist/model/Event.js +435 -9
- package/dist/model/Filter.js +5 -5
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- 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 +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- 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 +2 -3
- 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 -6
- package/dist/model/HealthLog.js +1 -1
- package/dist/model/HttpRoute.js +2 -7
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +1 -1
- package/dist/model/JobDefinitionReportOptions.js +1 -2
- package/dist/model/JobDefinitionSelect.js +1 -2
- 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 +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -14
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -3
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +2 -2
- package/dist/model/NotehubRouteSummary.js +1 -1
- 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 +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProjectSecret.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -6
- package/dist/model/QubitroRoute.js +1 -7
- package/dist/model/RadRoute.js +1 -9
- package/dist/model/Repository.js +1 -1
- package/dist/model/RepositoryListResponse.js +2 -3
- package/dist/model/RepositoryRecord.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +2 -2
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +5 -5
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -16
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +4 -7
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +5 -9
- package/dist/model/SkillSummary.js +4 -7
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.js +2 -3
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -9
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -9
- package/dist/model/SnowpipeStreamingRoute.js +1 -12
- package/dist/model/ThingworxRoute.js +1 -6
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/Triangulation.js +170 -0
- package/dist/model/TriangulationCellTower.js +160 -0
- package/dist/model/TriangulationGps.js +111 -0
- package/dist/model/TriangulationWifiAccessPoint.js +138 -0
- package/dist/model/TwilioNotification.js +1 -1
- package/dist/model/TwilioRoute.js +1 -9
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +1 -1
- package/dist/model/UpdateProjectSecretRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +2 -3
- package/dist/model/UsageData.js +3 -7
- package/dist/model/UsageEventsData.js +2 -5
- package/dist/model/UsageEventsResponse.js +2 -3
- package/dist/model/UsageRouteLogsData.js +5 -9
- package/dist/model/UsageSessionsData.js +5 -11
- 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 +1 -1
- package/package.json +1 -1
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 7.0.0-beta.
|
|
32
|
+
* @version 7.0.0-beta.11
|
|
33
33
|
*/
|
|
34
34
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -47,15 +47,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
/**
|
|
48
48
|
* List events in a project
|
|
49
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.
|
|
50
|
-
* @param {String} projectOrProductUID
|
|
50
|
+
* @param {String} projectOrProductUID
|
|
51
51
|
* @param {Object} opts Optional parameters
|
|
52
|
-
* @param {Number} opts.pageSize
|
|
53
|
-
* @param {Number} opts.pageNum
|
|
54
|
-
* @param {String} opts.cursor
|
|
55
|
-
* @param {Array.<String>} opts.deviceUID
|
|
52
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
53
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
54
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
55
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
56
56
|
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly. Repeat for more than one.
|
|
57
|
-
* @param {module:model/String} opts.sortBy
|
|
58
|
-
* @param {module:model/String} opts.sortOrder
|
|
57
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
58
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
59
59
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
60
60
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
61
61
|
* @param {module:model/String} opts.dateType Which time `startDate` and `endDate` filter on. - `captured`: when the Notecard created the event - `uploaded`: when Notehub received it (default to 'captured')
|
|
@@ -113,15 +113,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
113
|
/**
|
|
114
114
|
* List events in a project
|
|
115
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.
|
|
116
|
-
* @param {String} projectOrProductUID
|
|
116
|
+
* @param {String} projectOrProductUID
|
|
117
117
|
* @param {Object} opts Optional parameters
|
|
118
|
-
* @param {Number} opts.pageSize
|
|
119
|
-
* @param {Number} opts.pageNum
|
|
120
|
-
* @param {String} opts.cursor
|
|
121
|
-
* @param {Array.<String>} opts.deviceUID
|
|
118
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
119
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
120
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
121
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
122
122
|
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly. Repeat for more than one.
|
|
123
|
-
* @param {module:model/String} opts.sortBy
|
|
124
|
-
* @param {module:model/String} opts.sortOrder
|
|
123
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
124
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
125
125
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
126
126
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
127
127
|
* @param {module:model/String} opts.dateType Which time `startDate` and `endDate` filter on. - `captured`: when the Notecard created the event - `uploaded`: when Notehub received it (default to 'captured')
|
|
@@ -146,16 +146,16 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
146
146
|
/**
|
|
147
147
|
* List events in a fleet
|
|
148
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.
|
|
149
|
-
* @param {String} projectOrProductUID
|
|
150
|
-
* @param {String} fleetUID
|
|
149
|
+
* @param {String} projectOrProductUID
|
|
150
|
+
* @param {String} fleetUID
|
|
151
151
|
* @param {Object} opts Optional parameters
|
|
152
|
-
* @param {Number} opts.pageSize
|
|
153
|
-
* @param {Number} opts.pageNum
|
|
154
|
-
* @param {String} opts.cursor
|
|
155
|
-
* @param {Array.<String>} opts.deviceUID
|
|
152
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
153
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
154
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
155
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
156
156
|
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly. Repeat for more than one.
|
|
157
|
-
* @param {module:model/String} opts.sortBy
|
|
158
|
-
* @param {module:model/String} opts.sortOrder
|
|
157
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
158
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
159
159
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
160
160
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
161
161
|
* @param {module:model/String} opts.dateType Which time `startDate` and `endDate` filter on. - `captured`: when the Notecard created the event - `uploaded`: when Notehub received it (default to 'captured')
|
|
@@ -216,16 +216,16 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
216
216
|
/**
|
|
217
217
|
* List events in a fleet
|
|
218
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.
|
|
219
|
-
* @param {String} projectOrProductUID
|
|
220
|
-
* @param {String} fleetUID
|
|
219
|
+
* @param {String} projectOrProductUID
|
|
220
|
+
* @param {String} fleetUID
|
|
221
221
|
* @param {Object} opts Optional parameters
|
|
222
|
-
* @param {Number} opts.pageSize
|
|
223
|
-
* @param {Number} opts.pageNum
|
|
224
|
-
* @param {String} opts.cursor
|
|
225
|
-
* @param {Array.<String>} opts.deviceUID
|
|
222
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
223
|
+
* @param {Number} opts.pageNum (default to 1)
|
|
224
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
225
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
226
226
|
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly. Repeat for more than one.
|
|
227
|
-
* @param {module:model/String} opts.sortBy
|
|
228
|
-
* @param {module:model/String} opts.sortOrder
|
|
227
|
+
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
228
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
229
229
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
230
230
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
231
231
|
* @param {module:model/String} opts.dateType Which time `startDate` and `endDate` filter on. - `captured`: when the Notecard created the event - `uploaded`: when Notehub received it (default to 'captured')
|
|
@@ -249,7 +249,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
249
249
|
/**
|
|
250
250
|
* Get an event's route logs
|
|
251
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.
|
|
252
|
-
* @param {String} projectOrProductUID
|
|
252
|
+
* @param {String} projectOrProductUID
|
|
253
253
|
* @param {String} eventUID EventUID, e.g. `4506f411-dea6-44a0-9743-1130f57d7747`.
|
|
254
254
|
* @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
255
|
*/
|
|
@@ -282,7 +282,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
282
282
|
/**
|
|
283
283
|
* Get an event's route logs
|
|
284
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.
|
|
285
|
-
* @param {String} projectOrProductUID
|
|
285
|
+
* @param {String} projectOrProductUID
|
|
286
286
|
* @param {String} eventUID EventUID, e.g. `4506f411-dea6-44a0-9743-1130f57d7747`.
|
|
287
287
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
288
288
|
*/
|
|
@@ -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 7.0.0-beta.
|
|
32
|
+
* @version 7.0.0-beta.11
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -47,8 +47,8 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
/**
|
|
48
48
|
* Add an event from an external device
|
|
49
49
|
* Add an event from a device that isn't a Notecard, adding the device to the project if it's new. The DeviceUID is lower-cased and gets `dev:ext:` unless it has its own sub-prefix, so `dev:123` becomes `dev:ext:123`. Notehub sets `when` to the current time and adds `.qo` to a `file` with no extension. Requires the Owner or Developer role.
|
|
50
|
-
* @param {String} productUID
|
|
51
|
-
* @param {String} deviceUID
|
|
50
|
+
* @param {String} productUID
|
|
51
|
+
* @param {String} deviceUID
|
|
52
52
|
* @param {module:model/Event} event The event. `file`, `body` and `payload` are the usual fields.
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
54
54
|
*/
|
|
@@ -85,8 +85,8 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
85
85
|
/**
|
|
86
86
|
* Add an event from an external device
|
|
87
87
|
* Add an event from a device that isn't a Notecard, adding the device to the project if it's new. The DeviceUID is lower-cased and gets `dev:ext:` unless it has its own sub-prefix, so `dev:123` becomes `dev:ext:123`. Notehub sets `when` to the current time and adds `.qo` to a `file` with no extension. Requires the Owner or Developer role.
|
|
88
|
-
* @param {String} productUID
|
|
89
|
-
* @param {String} deviceUID
|
|
88
|
+
* @param {String} productUID
|
|
89
|
+
* @param {String} deviceUID
|
|
90
90
|
* @param {module:model/Event} event The event. `file`, `body` and `payload` are the usual fields.
|
|
91
91
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
92
92
|
*/
|
|
@@ -101,8 +101,8 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
101
101
|
/**
|
|
102
102
|
* Close an external device's session
|
|
103
103
|
* Close an external device's session, if one is open, adding the device if it's new. The DeviceUID gets `dev:ext:` as in `CreateEventExtDevice`. Requires the Owner or Developer role.
|
|
104
|
-
* @param {String} productUID
|
|
105
|
-
* @param {String} deviceUID
|
|
104
|
+
* @param {String} productUID
|
|
105
|
+
* @param {String} deviceUID
|
|
106
106
|
* @param {module:model/DeviceSession} deviceSession Session fields, such as `why_session_opened` or `why_session_closed`.
|
|
107
107
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
108
108
|
*/
|
|
@@ -139,8 +139,8 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
139
139
|
/**
|
|
140
140
|
* Close an external device's session
|
|
141
141
|
* Close an external device's session, if one is open, adding the device if it's new. The DeviceUID gets `dev:ext:` as in `CreateEventExtDevice`. Requires the Owner or Developer role.
|
|
142
|
-
* @param {String} productUID
|
|
143
|
-
* @param {String} deviceUID
|
|
142
|
+
* @param {String} productUID
|
|
143
|
+
* @param {String} deviceUID
|
|
144
144
|
* @param {module:model/DeviceSession} deviceSession Session fields, such as `why_session_opened` or `why_session_closed`.
|
|
145
145
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
146
146
|
*/
|
|
@@ -155,8 +155,8 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
155
155
|
/**
|
|
156
156
|
* Open an external device's session
|
|
157
157
|
* Open a session for an external device, adding the device if it's new. An open session is closed first, with `why_session_closed` as the reason. The DeviceUID gets `dev:ext:` as in `CreateEventExtDevice`. Requires the Owner or Developer role. Returns 500 if webhooks are disabled for the project.
|
|
158
|
-
* @param {String} productUID
|
|
159
|
-
* @param {String} deviceUID
|
|
158
|
+
* @param {String} productUID
|
|
159
|
+
* @param {String} deviceUID
|
|
160
160
|
* @param {module:model/DeviceSession} deviceSession Session fields, such as `why_session_opened` or `why_session_closed`.
|
|
161
161
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
162
162
|
*/
|
|
@@ -193,8 +193,8 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
193
193
|
/**
|
|
194
194
|
* Open an external device's session
|
|
195
195
|
* Open a session for an external device, adding the device if it's new. An open session is closed first, with `why_session_closed` as the reason. The DeviceUID gets `dev:ext:` as in `CreateEventExtDevice`. Requires the Owner or Developer role. Returns 500 if webhooks are disabled for the project.
|
|
196
|
-
* @param {String} productUID
|
|
197
|
-
* @param {String} deviceUID
|
|
196
|
+
* @param {String} productUID
|
|
197
|
+
* @param {String} deviceUID
|
|
198
198
|
* @param {module:model/DeviceSession} deviceSession Session fields, such as `why_session_opened` or `why_session_closed`.
|
|
199
199
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
200
200
|
*/
|
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 7.0.0-beta.
|
|
39
|
+
* @version 7.0.0-beta.11
|
|
40
40
|
*/
|
|
41
41
|
var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
42
42
|
/**
|
|
@@ -54,7 +54,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
54
54
|
/**
|
|
55
55
|
* Cancel a job run
|
|
56
56
|
* Ask a running job to stop. `successful` is false if the run couldn't be cancelled. Requires the Owner or Developer role. Returns 404 if the run doesn't exist.
|
|
57
|
-
* @param {String} projectOrProductUID
|
|
57
|
+
* @param {String} projectOrProductUID
|
|
58
58
|
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
59
59
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CancelJobRun200Response} and HTTP response
|
|
60
60
|
*/
|
|
@@ -87,7 +87,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
87
87
|
/**
|
|
88
88
|
* Cancel a job run
|
|
89
89
|
* Ask a running job to stop. `successful` is false if the run couldn't be cancelled. Requires the Owner or Developer role. Returns 404 if the run doesn't exist.
|
|
90
|
-
* @param {String} projectOrProductUID
|
|
90
|
+
* @param {String} projectOrProductUID
|
|
91
91
|
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
92
92
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CancelJobRun200Response}
|
|
93
93
|
*/
|
|
@@ -102,7 +102,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
102
102
|
/**
|
|
103
103
|
* Create a batch job
|
|
104
104
|
* Create a batch job from a definition that selects devices and the changes to make to them. It doesn't run until `RunJob`. Each call creates a new job with its own UID; names needn't be unique. Requires the Owner or Developer role. Returns 400 without a `name`; an invalid definition returns 500.
|
|
105
|
-
* @param {String} projectOrProductUID
|
|
105
|
+
* @param {String} projectOrProductUID
|
|
106
106
|
* @param {String} name Job name, shown in lists. It doesn't have to be unique.
|
|
107
107
|
* @param {module:model/JobDefinition} jobDefinition The batch job definition
|
|
108
108
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateJob201Response} and HTTP response
|
|
@@ -141,7 +141,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
141
141
|
/**
|
|
142
142
|
* Create a batch job
|
|
143
143
|
* Create a batch job from a definition that selects devices and the changes to make to them. It doesn't run until `RunJob`. Each call creates a new job with its own UID; names needn't be unique. Requires the Owner or Developer role. Returns 400 without a `name`; an invalid definition returns 500.
|
|
144
|
-
* @param {String} projectOrProductUID
|
|
144
|
+
* @param {String} projectOrProductUID
|
|
145
145
|
* @param {String} name Job name, shown in lists. It doesn't have to be unique.
|
|
146
146
|
* @param {module:model/JobDefinition} jobDefinition The batch job definition
|
|
147
147
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateJob201Response}
|
|
@@ -157,7 +157,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
157
157
|
/**
|
|
158
158
|
* Delete a batch job
|
|
159
159
|
* Delete a batch job. Requires the Owner or Developer role. Returns 404 if the job doesn't exist.
|
|
160
|
-
* @param {String} projectOrProductUID
|
|
160
|
+
* @param {String} projectOrProductUID
|
|
161
161
|
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
162
162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteJob200Response} and HTTP response
|
|
163
163
|
*/
|
|
@@ -190,7 +190,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
190
190
|
/**
|
|
191
191
|
* Delete a batch job
|
|
192
192
|
* Delete a batch job. Requires the Owner or Developer role. Returns 404 if the job doesn't exist.
|
|
193
|
-
* @param {String} projectOrProductUID
|
|
193
|
+
* @param {String} projectOrProductUID
|
|
194
194
|
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
195
195
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteJob200Response}
|
|
196
196
|
*/
|
|
@@ -205,7 +205,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
205
205
|
/**
|
|
206
206
|
* Delete a job run
|
|
207
207
|
* Delete a job run and its results. Deleting a run that doesn't exist also succeeds. Requires the Owner or Developer role.
|
|
208
|
-
* @param {String} projectOrProductUID
|
|
208
|
+
* @param {String} projectOrProductUID
|
|
209
209
|
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
210
210
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
211
211
|
*/
|
|
@@ -238,7 +238,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
238
238
|
/**
|
|
239
239
|
* Delete a job run
|
|
240
240
|
* Delete a job run and its results. Deleting a run that doesn't exist also succeeds. Requires the Owner or Developer role.
|
|
241
|
-
* @param {String} projectOrProductUID
|
|
241
|
+
* @param {String} projectOrProductUID
|
|
242
242
|
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
243
243
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
244
244
|
*/
|
|
@@ -253,7 +253,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
253
253
|
/**
|
|
254
254
|
* Get a batch job
|
|
255
255
|
* Get one batch job's definition and its latest run's status. Returns 404 if the job doesn't exist.
|
|
256
|
-
* @param {String} projectOrProductUID
|
|
256
|
+
* @param {String} projectOrProductUID
|
|
257
257
|
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
258
258
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobDetail} and HTTP response
|
|
259
259
|
*/
|
|
@@ -286,7 +286,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
286
286
|
/**
|
|
287
287
|
* Get a batch job
|
|
288
288
|
* Get one batch job's definition and its latest run's status. Returns 404 if the job doesn't exist.
|
|
289
|
-
* @param {String} projectOrProductUID
|
|
289
|
+
* @param {String} projectOrProductUID
|
|
290
290
|
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
291
291
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobDetail}
|
|
292
292
|
*/
|
|
@@ -301,7 +301,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
301
301
|
/**
|
|
302
302
|
* Get a job run
|
|
303
303
|
* Get a job run's status and, with `view=detail`, its full results. Returns 404 if the run doesn't exist.
|
|
304
|
-
* @param {String} projectOrProductUID
|
|
304
|
+
* @param {String} projectOrProductUID
|
|
305
305
|
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
306
306
|
* @param {Object} opts Optional parameters
|
|
307
307
|
* @param {module:model/String} opts.view Controls the level of detail returned: 'summary' returns metadata only, 'detail' returns the full result payload (default to 'summary')
|
|
@@ -339,7 +339,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
339
339
|
/**
|
|
340
340
|
* Get a job run
|
|
341
341
|
* Get a job run's status and, with `view=detail`, its full results. Returns 404 if the run doesn't exist.
|
|
342
|
-
* @param {String} projectOrProductUID
|
|
342
|
+
* @param {String} projectOrProductUID
|
|
343
343
|
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
344
344
|
* @param {Object} opts Optional parameters
|
|
345
345
|
* @param {module:model/String} opts.view Controls the level of detail returned: 'summary' returns metadata only, 'detail' returns the full result payload (default to 'summary')
|
|
@@ -356,7 +356,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
356
356
|
/**
|
|
357
357
|
* List a job's runs
|
|
358
358
|
* List a batch job's runs, optionally filtered by status or dry-run flag. Returns 404 if the job doesn't exist.
|
|
359
|
-
* @param {String} projectOrProductUID
|
|
359
|
+
* @param {String} projectOrProductUID
|
|
360
360
|
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
361
361
|
* @param {Object} opts Optional parameters
|
|
362
362
|
* @param {String} opts.status Return only runs with this status.
|
|
@@ -396,7 +396,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
396
396
|
/**
|
|
397
397
|
* List a job's runs
|
|
398
398
|
* List a batch job's runs, optionally filtered by status or dry-run flag. Returns 404 if the job doesn't exist.
|
|
399
|
-
* @param {String} projectOrProductUID
|
|
399
|
+
* @param {String} projectOrProductUID
|
|
400
400
|
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
401
401
|
* @param {Object} opts Optional parameters
|
|
402
402
|
* @param {String} opts.status Return only runs with this status.
|
|
@@ -414,7 +414,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
414
414
|
/**
|
|
415
415
|
* List batch jobs
|
|
416
416
|
* List a project's batch jobs with their latest run's status. A batch job applies changes, such as environment variables, to a selected set of devices.
|
|
417
|
-
* @param {String} projectOrProductUID
|
|
417
|
+
* @param {String} projectOrProductUID
|
|
418
418
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetJobs200Response} and HTTP response
|
|
419
419
|
*/
|
|
420
420
|
}, {
|
|
@@ -441,7 +441,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
441
441
|
/**
|
|
442
442
|
* List batch jobs
|
|
443
443
|
* List a project's batch jobs with their latest run's status. A batch job applies changes, such as environment variables, to a selected set of devices.
|
|
444
|
-
* @param {String} projectOrProductUID
|
|
444
|
+
* @param {String} projectOrProductUID
|
|
445
445
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetJobs200Response}
|
|
446
446
|
*/
|
|
447
447
|
}, {
|
|
@@ -455,7 +455,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
455
455
|
/**
|
|
456
456
|
* Run a batch job
|
|
457
457
|
* Start a run of a batch job and return its run UID. The run continues in the background, and `GetJobRun` shows its progress. With `dry_run=true`, it reports what would change without changing anything. Requires the Owner or Developer role. Returns 404 if the job doesn't exist.
|
|
458
|
-
* @param {String} projectOrProductUID
|
|
458
|
+
* @param {String} projectOrProductUID
|
|
459
459
|
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
460
460
|
* @param {Object} opts Optional parameters
|
|
461
461
|
* @param {Boolean} opts.dryRun If true, report what the job would change without changing anything. (default to false)
|
|
@@ -493,7 +493,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
493
493
|
/**
|
|
494
494
|
* Run a batch job
|
|
495
495
|
* Start a run of a batch job and return its run UID. The run continues in the background, and `GetJobRun` shows its progress. With `dry_run=true`, it reports what would change without changing anything. Requires the Owner or Developer role. Returns 404 if the job doesn't exist.
|
|
496
|
-
* @param {String} projectOrProductUID
|
|
496
|
+
* @param {String} projectOrProductUID
|
|
497
497
|
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
498
498
|
* @param {Object} opts Optional parameters
|
|
499
499
|
* @param {Boolean} opts.dryRun If true, report what the job would change without changing anything. (default to false)
|
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 7.0.0-beta.
|
|
32
|
+
* @version 7.0.0-beta.11
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -47,7 +47,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
47
47
|
/**
|
|
48
48
|
* Create a monitor
|
|
49
49
|
* Create a monitor that raises an alert and notifies email, Slack or Twilio 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.
|
|
50
|
-
* @param {String} projectOrProductUID
|
|
50
|
+
* @param {String} projectOrProductUID
|
|
51
51
|
* @param {module:model/CreateMonitor} createMonitor Body or payload of monitor to be created
|
|
52
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
53
53
|
*/
|
|
@@ -79,7 +79,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
79
79
|
/**
|
|
80
80
|
* Create a monitor
|
|
81
81
|
* Create a monitor that raises an alert and notifies email, Slack or Twilio 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.
|
|
82
|
-
* @param {String} projectOrProductUID
|
|
82
|
+
* @param {String} projectOrProductUID
|
|
83
83
|
* @param {module:model/CreateMonitor} createMonitor Body or payload of monitor to be created
|
|
84
84
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
85
85
|
*/
|
|
@@ -94,7 +94,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
94
94
|
/**
|
|
95
95
|
* Delete a monitor
|
|
96
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.
|
|
97
|
-
* @param {String} projectOrProductUID
|
|
97
|
+
* @param {String} projectOrProductUID
|
|
98
98
|
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
99
99
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
100
100
|
*/
|
|
@@ -127,7 +127,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
127
127
|
/**
|
|
128
128
|
* Delete a monitor
|
|
129
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.
|
|
130
|
-
* @param {String} projectOrProductUID
|
|
130
|
+
* @param {String} projectOrProductUID
|
|
131
131
|
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
132
132
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
133
133
|
*/
|
|
@@ -142,7 +142,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
142
142
|
/**
|
|
143
143
|
* Get a monitor
|
|
144
144
|
* Get one monitor's settings and whether it's in alert. Slack and Twilio credentials in `alert_routes` come back as `(omitted)`. Returns 404 if the monitor never existed; a deleted monitor is still returned.
|
|
145
|
-
* @param {String} projectOrProductUID
|
|
145
|
+
* @param {String} projectOrProductUID
|
|
146
146
|
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
147
147
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
148
148
|
*/
|
|
@@ -175,7 +175,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
175
|
/**
|
|
176
176
|
* Get a monitor
|
|
177
177
|
* Get one monitor's settings and whether it's in alert. Slack and Twilio credentials in `alert_routes` come back as `(omitted)`. Returns 404 if the monitor never existed; a deleted monitor is still returned.
|
|
178
|
-
* @param {String} projectOrProductUID
|
|
178
|
+
* @param {String} projectOrProductUID
|
|
179
179
|
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
180
180
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
181
181
|
*/
|
|
@@ -190,7 +190,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
190
190
|
/**
|
|
191
191
|
* List monitors
|
|
192
192
|
* List a project's monitors with their settings and whether each is in alert. For the alerts they've raised, use `GetAlerts`.
|
|
193
|
-
* @param {String} projectOrProductUID
|
|
193
|
+
* @param {String} projectOrProductUID
|
|
194
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
|
|
195
195
|
*/
|
|
196
196
|
}, {
|
|
@@ -217,7 +217,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
217
217
|
/**
|
|
218
218
|
* List monitors
|
|
219
219
|
* List a project's monitors with their settings and whether each is in alert. For the alerts they've raised, use `GetAlerts`.
|
|
220
|
-
* @param {String} projectOrProductUID
|
|
220
|
+
* @param {String} projectOrProductUID
|
|
221
221
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Monitor>}
|
|
222
222
|
*/
|
|
223
223
|
}, {
|
|
@@ -231,7 +231,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
231
231
|
/**
|
|
232
232
|
* Update a monitor
|
|
233
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 and Twilio credentials left as `(omitted)` are kept. Requires the Owner or Developer role. Returns 403 if the plan doesn't allow a new `source_type`.
|
|
234
|
-
* @param {String} projectOrProductUID
|
|
234
|
+
* @param {String} projectOrProductUID
|
|
235
235
|
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
236
236
|
* @param {module:model/Monitor} monitor Body or payload of monitor to be created
|
|
237
237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
@@ -269,7 +269,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
269
269
|
/**
|
|
270
270
|
* Update a monitor
|
|
271
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 and Twilio credentials left as `(omitted)` are kept. Requires the Owner or Developer role. Returns 403 if the plan doesn't allow a new `source_type`.
|
|
272
|
-
* @param {String} projectOrProductUID
|
|
272
|
+
* @param {String} projectOrProductUID
|
|
273
273
|
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
274
274
|
* @param {module:model/Monitor} monitor Body or payload of monitor to be created
|
|
275
275
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
@@ -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 7.0.0-beta.
|
|
33
|
+
* @version 7.0.0-beta.11
|
|
34
34
|
*/
|
|
35
35
|
var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|