@edgeiq/edgeiq-api-js 1.11.11 → 1.11.12
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/dist/devices/index.js +2 -2
- package/package.json +1 -1
package/dist/devices/index.js
CHANGED
|
@@ -688,7 +688,7 @@ export const Devices = class extends BaseModelClass {
|
|
|
688
688
|
try {
|
|
689
689
|
this.logAction('Getting device uptime');
|
|
690
690
|
const axios = EdgeIQAPI.getAxios();
|
|
691
|
-
const result = yield axios.get(`${Endpoints.device}/${id}/uptime?
|
|
691
|
+
const result = yield axios.get(`${Endpoints.device}/${id}/uptime?created_at_gte=${start}&created_at_lte=${end}`);
|
|
692
692
|
return result === null || result === void 0 ? void 0 : result.data;
|
|
693
693
|
}
|
|
694
694
|
catch (error) {
|
|
@@ -704,7 +704,7 @@ export const Devices = class extends BaseModelClass {
|
|
|
704
704
|
try {
|
|
705
705
|
this.logAction('Getting device uptime');
|
|
706
706
|
const axios = EdgeIQAPI.getAxios();
|
|
707
|
-
const result = yield axios.get(`${Endpoints.device}/${id}/uptime_history?
|
|
707
|
+
const result = yield axios.get(`${Endpoints.device}/${id}/uptime_history?created_at_gte=${start}&created_at_lte=${end}`);
|
|
708
708
|
return result === null || result === void 0 ? void 0 : result.data;
|
|
709
709
|
}
|
|
710
710
|
catch (error) {
|