@forge/cli-shared

9.9.0-next.139.9.0-next.14
out/app-logs/view-logs.js
~out/app-logs/view-logs.jsModified
+4−2
Index: package/out/app-logs/view-logs.js
===================================================================
--- package/out/app-logs/view-logs.js
+++ package/out/app-logs/view-logs.js
@@ -20,9 +20,9 @@
         this.globalEdgeClient = globalEdgeClient;
         this.logsClient = logsClient;
         this.statsigService = statsigService;
     }
-    async getAll({ environmentKey, limit, context, containerKey, containerInstance, serviceKey, functionKey, startTime = null, grouped = false }) {
+    async getAll({ environmentKey, limit, context, containerKey, containerInstance, serviceKey, functionKey, placement, startTime = null, grouped = false }) {
         const { id: appId } = await this.getAppConfig();
         const [environmentId, cloudId] = await Promise.all([
             this.appEnvironmentClient.getAppEnvironmentId(appId, environmentKey),
             context ? this.globalEdgeClient.getCloudId(context.site) : undefined
@@ -44,9 +44,10 @@
             const containerDetails = {
                 containerKey,
                 containerInstance,
                 serviceKey,
-                functionKey
+                functionKey,
+                placement
             };
             return this.getLogs(details, containerDetails);
         }
         return this.logsClient.viewAppLogs(details);
@@ -69,8 +70,9 @@
             containers: containerDetails.containerKey ? [containerDetails.containerKey] : [],
             instances: containerDetails.containerInstance ? [containerDetails.containerInstance] : [],
             services: containerDetails.serviceKey ? [containerDetails.serviceKey] : [],
             functionKeys: containerDetails.functionKey ? [containerDetails.functionKey] : [],
+            placements: containerDetails.placement ? [(0, ari_2.placementIdToAri)(containerDetails.placement).toString()] : [],
             offset: 0,
             dateSearchInput,
             queryStartTime: earliestStart.toISOString(),
             maxLimit: details.limit